dataservices-api/client/templates/30_plproxy_functions.erb

7 lines
349 B
Plaintext
Raw Normal View History

CREATE OR REPLACE FUNCTION <%= GEOCODER_CLIENT_SCHEMA %>._<%= name %> (username text, organization_name text, <%= params_with_type_and_default %>)
RETURNS <%= return_type %> AS $$
2015-11-18 22:14:08 +08:00
CONNECT <%= GEOCODER_CLIENT_SCHEMA %>._server_conn_str();
SELECT cdb_geocoder_server.<%= name %> (username, organization_name, <%= params %>);
2015-11-18 22:14:08 +08:00
$$ LANGUAGE plproxy;