mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Fix array_to_string description and add default value example
This commit is contained in:
parent
8e8f4a5ea7
commit
399bbf1a00
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "array_to_string",
|
"name": "array_to_string",
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"description": "Concatenates array elements into a string separated by a delimiter using and optional string for empty values.",
|
"description": "Concatenates array elements into a string separated by a delimiter and using optional string for empty values.",
|
||||||
"arguments": [
|
"arguments": [
|
||||||
{"arg":"array", "description":"the input array"},
|
{"arg":"array", "description":"the input array"},
|
||||||
{"arg":"delimiter","optional":true,"default":"','","description":"the string delimiter used to separate concatenated array elements"},
|
{"arg":"delimiter","optional":true,"default":"','","description":"the string delimiter used to separate concatenated array elements"},
|
||||||
{"arg":"empty_value","optional":true,"default":"''","description":"the optional string to use as replacement for empty (zero length) matches"}],
|
{"arg":"empty_value","optional":true,"default":"''","description":"the optional string to use as replacement for empty (zero length) matches"}],
|
||||||
"examples": [ { "expression":"array_to_string(array('1','2','3'),',')", "returns":"'1,2,3'"},
|
"examples": [ { "expression":"array_to_string(array('1','2','3'))", "returns":"'1,2,3'"},
|
||||||
|
{ "expression":"array_to_string(array(1,2,3),'-')", "returns":"'1-2-3'"},
|
||||||
{ "expression":"array_to_string(array('1','','3'),',','0')", "returns":"'1,0,3'"}
|
{ "expression":"array_to_string(array('1','','3'),',','0')", "returns":"'1,0,3'"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user