tps/functions/srce_edit.pgsql
2018-02-08 17:40:23 -05:00

16 lines
217 B
PL/PgSQL

CREATE OR REPLACE FUNCTION tps.srce_set(_name text, _defn jsonb) RETURNS jsonb
AS $f$
BEGIN
/*
1. determine if insert or update
2. if update, determine if conflicts exists
3. do merge
*/
END;
$f$
LANGUAGE plpgsql