22 lines
629 B
Plaintext
22 lines
629 B
Plaintext
|
-- Create a conf table
|
||
|
SELECT cdb_geocoder_server._config_set('cds', '{"Manolo Escobar": {"El Limonero":"En stock", "Viva el vino":"Sin stock"}}');
|
||
|
_config_set
|
||
|
-------------
|
||
|
|
||
|
(1 row)
|
||
|
|
||
|
-- Test key retrieval
|
||
|
SELECT cdb_geocoder_server._config_get('cds');
|
||
|
_config_get
|
||
|
----------------------------------------------------------------------------
|
||
|
{"Manolo Escobar": {"El Limonero":"En stock", "Viva el vino":"Sin stock"}}
|
||
|
(1 row)
|
||
|
|
||
|
-- Test returns NULL if key doesn't exist
|
||
|
SELECT cdb_geocoder_server._config_get('no existe');
|
||
|
_config_get
|
||
|
-------------
|
||
|
|
||
|
(1 row)
|
||
|
|