Skip to content

Commit

Permalink
enhancement(fct_setfeaturedelete): add example to execute the functio…
Browse files Browse the repository at this point in the history
…n massively
  • Loading branch information
albertbofill committed Aug 28, 2024
1 parent bdd0ac0 commit 8bd2d7c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion utils/fct/gw_fct_setfeaturedelete.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RETURNS json AS
$BODY$

/*
-- MODE 1: individual
SELECT SCHEMA_NAME.gw_fct_setfeaturedelete($${
"client":{"device":4, "infoType":1, "lang":"ES"},
"form":{},"feature":{"type":"NODE"},
Expand All @@ -24,11 +25,15 @@ SELECT SCHEMA_NAME.gw_fct_setfeaturedelete($${
"form":{},"feature":{"type":"CONNEC"},
"data":{"feature_id":"3244"}}$$);
SELECT SCHEMA_NAME.gw_fct_setfeaturedelete($${
"client":{"device":4, "infoType":1, "lang":"ES"},
"form":{},"feature":{"type":"ARC"},"data":{"feature_id":"2002"}}$$);
-- MODE 2: massive usign pure SQL
SELECT SCHEMA_NAME.gw_fct_setfeaturedelete(CONCAT('
{"client":{"device":4, "infoType":1, "lang":"ES"},
"form":{},"feature":{"type":"NODE"},"data":{"feature_id":"',node_id,'"}}')::json) FROM ... WHERE...;
-- fid: 152
*/
Expand Down

0 comments on commit 8bd2d7c

Please sign in to comment.