Skip to content
Permalink
Browse files

Improve function help for sqlite_fetch_and_increment

  • Loading branch information
m-kuhn committed Dec 21, 2018
1 parent 49d8060 commit b4bc0720304dffd8b9064a22ace122e29a4f8b29
Showing with 2 additions and 2 deletions.
  1. +2 −2 resources/function_help/json/sqlite_fetch_and_increment
@@ -8,9 +8,9 @@
{"arg":"id_field", "description":"Name of the field that contains the current value"},
{"arg":"filter_attribute", "description":"Name the field that contains a unique identifier for this sequence. Must have a UNIQUE index."},
{"arg":"filter_value", "description":"Name of the sequence to use."},
{"arg":"default_values", "description":"Map with default values for additional columns on the table. The values need to be fully quoted. Functions are allowed."}
{"arg":"default_values", "description":"Map with default values for additional columns on the table. The values need to be fully quoted. Functions are allowed.", "optional": true}
],
"examples": [
{ "expression":"sqlite_fetch_and_increment(layer_property(@layer, 'path'), 'sequence_table', 'last_unique_id', 'sequence_id', 'global', map('last_change','date(''now'')','user',@user_account_name))", "returns":"0"}
{ "expression":"sqlite_fetch_and_increment(layer_property(@layer, 'path'), 'sequence_table', 'last_unique_id', 'sequence_id', 'global', map('last_change','date(''now'')','user','''' || @user_account_name || ''''))", "returns":"0"}
]
}

0 comments on commit b4bc072

Please sign in to comment.
You can’t perform that action at this time.