dataservices-api/server/extension/sql/10_config_test.sql
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

9 lines
314 B
SQL

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