Skip to content

Commit 10d05ed

Browse files
author
Yvon Vieville
committed
add some more...
1 parent ffdcfde commit 10d05ed

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

src/language/snippets/scalars.code-snippets

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,5 +1077,85 @@
10771077
"prefix": "zoned",
10781078
"body": "zoned(${1:expression}, ${2:precision?}, ${3:scale?}, ${4:decimal-character})",
10791079
"description": "The ZONED function returns a zoned decimal representation."
1080+
},
1081+
"decfloat_format": {
1082+
"prefix": "decfloat_format",
1083+
"body": "decfloat_format(${1:string-expression}, ${2:format-string?})",
1084+
"description": "The DECFLOAT_FORMAT function returns a DECFLOAT(34) value that is based on the interpretation of the input string using the specified format."
1085+
},
1086+
"get_xml_file": {
1087+
"prefix": "get_xml_file",
1088+
"body": "get_xml_file(${1:string-expression})",
1089+
"description": "The GET_XML_FILE function returns the data from a source stream file or a source physical file."
1090+
},
1091+
"greatest": {
1092+
"prefix": "greatest",
1093+
"body": "greatest(${1:expression}, ${2:precision?+})",
1094+
"description": "The GREATEST scalar function returns the maximum value in a set of values."
1095+
},
1096+
"hextoraw": {
1097+
"prefix": "hextoraw",
1098+
"body": "hextoraw(${1:expression}, ${2:format-string?})",
1099+
"description": "The HEXTORAW function returns a binary string representation of a character string that has been formatted using a format-string."
1100+
},
1101+
"http_delete": {
1102+
"prefix": "http_delete",
1103+
"body": "http_delete(${1:url}, ${2:options?})",
1104+
"description": "The HTTP_DELETE scalar function deletes a text-based resource from the specified URL through an HTTP DELETE request."
1105+
},
1106+
"http_get": {
1107+
"prefix": "http_get",
1108+
"body": "http_get(${1:url}, ${2:options?})",
1109+
"description": "The HTTP_GET scalar function retrieves a text-based resource from the specified URL through an HTTP GET request."
1110+
},
1111+
"http_post": {
1112+
"prefix": "http_post",
1113+
"body": "http_post(${1:url}, ${2:request-message}, ${3:options?})",
1114+
"description": "The HTTP_POST scalar function updates a text-based resource under the specified URL through an HTTP POST request."
1115+
},
1116+
"http_put": {
1117+
"prefix": "http_put",
1118+
"body": "http_put(${1:url}, ${2:request-message}, ${3:options?})",
1119+
"description": "The HTTP_PUT scalar function retrieves a text-based resource from the specified URL through an HTTP PUT request."
1120+
},
1121+
"interpret": {
1122+
"prefix": "interpret",
1123+
"body": "interpret(${1:expression} AS ${2:data-type})",
1124+
"description": "The INTERPRET function returns the first operand interpreted as the specified data-type."
1125+
},
1126+
"instr": {
1127+
"prefix": "instr",
1128+
"body": "instr(${1:source-string}, ${2:search-string}, ${3:start?}, ${4:instance?})",
1129+
"description": "The INSTR function returns the starting position of a string (called the search-string) within another string (called the source-string)."
1130+
},
1131+
"json_array": {
1132+
"prefix": "json_array",
1133+
"body": "json_array(${1:json-expression})",
1134+
"description": "The JSON_ARRAY function generates a JSON array either by explicitly listing the array elements or by using a query."
1135+
},
1136+
"json_object": {
1137+
"prefix": "json_object",
1138+
"body": "json_object( KEY ${1:key-name-expression+} VALUE ${2:json-expression+})",
1139+
"description": "The JSON_OBJECT function generates a JSON object using the specified key:value pairs."
1140+
},
1141+
"json_query": {
1142+
"prefix": "json_query",
1143+
"body": "json_query(${1:json-expression}, ${2:sql-json-path-expression})",
1144+
"description": "The JSON_QUERY function returns an SQL/JSON value from the specified JSON text by using an SQL/JSON path expression."
1145+
},
1146+
"json_to_bson": {
1147+
"prefix": "json_to_bson",
1148+
"body": "json_to_bson(${1:json-expression})",
1149+
"description": "The JSON_TO_BSON function converts a string containing formatted JSON data to a binary string containing the data formatted as BSON."
1150+
},
1151+
"json_value": {
1152+
"prefix": "json_value",
1153+
"body": "json_value(${1:json-expression}, ${2:sql-json-path-expression})",
1154+
"description": "The JSON_VALUE function returns an SQL scalar value from a JSON text by using an SQL/JSON path expression."
1155+
},
1156+
"least": {
1157+
"prefix": "least",
1158+
"body": "least(${1:expression}, ${2:expression?+})",
1159+
"description": "The LEAST scalar function returns the minimum value in a set of values."
10801160
}
10811161
}

0 commit comments

Comments
 (0)