dataservices-api/server/extension/expected/10_config_test.out
Rafa de la Torre b45aba4278 Config table and functions for server extension
Pretty much as done in cartodb and client extensions.
2015-11-12 13:02:51 +01:00

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)