@arcgis/coding-components 4.31.0-next.117 → 4.31.0-next.120
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +38 -38
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ar.json +184 -184
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.bg.json +300 -300
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.bs.json +184 -184
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ca.json +306 -306
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.cs.json +184 -184
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.da.json +99 -99
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.de.json +99 -99
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.el.json +184 -184
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.en.json +4 -4
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.es.json +306 -306
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.et.json +99 -99
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.fi.json +271 -271
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.fr.json +306 -306
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.he.json +271 -271
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.hr.json +184 -184
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.hu.json +300 -300
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.id.json +184 -184
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.it.json +99 -99
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ja.json +184 -184
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ko.json +300 -300
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.lt.json +300 -300
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.lv.json +99 -99
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.nl.json +99 -99
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.no.json +99 -99
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.pl.json +306 -306
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.pt-BR.json +300 -300
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.pt-PT.json +300 -300
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ro.json +99 -99
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ru.json +306 -306
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.sk.json +99 -99
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.sl.json +300 -300
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.sr.json +306 -306
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.sv.json +99 -99
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.th.json +184 -184
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.tr.json +271 -271
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.uk.json +306 -306
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.vi.json +306 -306
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.zh-CN.json +271 -271
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.zh-HK.json +271 -271
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.zh-TW.json +271 -271
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-f4192303.js → p-1ed6d5d2.js} +2 -2
- package/dist/arcgis-coding-components/{p-7510add7.js → p-268ef762.js} +2 -2
- package/dist/arcgis-coding-components/{p-465435e1.entry.js → p-31ab280f.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-1ad930cc.entry.js → p-392424d7.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-8d0b03d6.js → p-3d70584f.js} +2 -2
- package/dist/arcgis-coding-components/{p-7f7da482.js → p-5bd2ea82.js} +2 -2
- package/dist/arcgis-coding-components/{p-93a3652f.js → p-661f1809.js} +2 -2
- package/dist/arcgis-coding-components/{p-ca5cde7d.js → p-6f0aedeb.js} +2 -2
- package/dist/arcgis-coding-components/{p-df7f4e90.js → p-701b064f.js} +2 -2
- package/dist/arcgis-coding-components/{p-128a0aee.js → p-8c6acbe3.js} +3 -3
- package/dist/arcgis-coding-components/{p-9d9b509b.js → p-a64345ec.js} +1 -1
- package/dist/arcgis-coding-components/{p-1a9f475d.js → p-ab0c7293.js} +1 -1
- package/dist/arcgis-coding-components/{p-68b7973f.js → p-b2478059.js} +1 -1
- package/dist/arcgis-coding-components/{p-f793651c.js → p-c3a77297.js} +2 -2
- package/dist/arcgis-coding-components/{p-60b0ff5a.js → p-d2cb652a.js} +2 -2
- package/dist/arcgis-coding-components/{p-524b5196.js → p-d8f35b42.js} +2 -2
- package/dist/arcgis-coding-components/{p-a09a2995.js → p-f3067adc.js} +10 -10
- package/dist/arcgis-coding-components/{p-8c9338b6.entry.js → p-fefa16f8.entry.js} +2 -2
- package/dist/cjs/{app-globals-ef1b44a9.js → app-globals-a5ca2733.js} +1 -1
- package/dist/cjs/{arcade-defaults-4d3a6776.js → arcade-defaults-750df323.js} +3 -3
- package/dist/cjs/{arcade-mode-9f1102b2.js → arcade-mode-7276b964.js} +3 -3
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +7 -7
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
- package/dist/cjs/{css-d1b6a768.js → css-5dcbf2f9.js} +1 -1
- package/dist/cjs/{cssMode-a52f34b0.js → cssMode-28dff329.js} +3 -3
- package/dist/cjs/{html-a8fd5819.js → html-7686bcbd.js} +3 -3
- package/dist/cjs/{htmlMode-38e44197.js → htmlMode-dc221611.js} +3 -3
- package/dist/cjs/{index-9ee06dbb.js → index-6fdabe00.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-4b0f387a.js → javascript-6815876d.js} +4 -4
- package/dist/cjs/{jsonMode-f9197c41.js → jsonMode-25d764f8.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{sql-expr-defaults-28864bc0.js → sql-expr-defaults-c27030fd.js} +17 -17
- package/dist/cjs/{sql-expr-mode-ff0b079a.js → sql-expr-mode-e3c04515.js} +3 -3
- package/dist/cjs/{tsMode-5edab23c.js → tsMode-d397f757.js} +3 -3
- package/dist/cjs/{typescript-6aeb5725.js → typescript-e1976545.js} +3 -3
- package/dist/cjs/{useT9n-5f495adc.js → useT9n-2bcb3300.js} +3 -3
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +1 -1
- package/dist/components/arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +1 -1
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/arcgis-editor-variables.js +1 -1
- package/dist/components/arcgis-language-api-panel.js +1 -1
- package/dist/components/arcgis-sql-expression-editor.js +1 -1
- package/dist/components/arcgis-sql-expression-fields.js +1 -1
- package/dist/components/chunk-UFIZBDFE.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/editor-variables.js +1 -1
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/language-api-panel.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/sql-expr-defaults.js +8 -8
- package/dist/components/sql-expr-mode.js +1 -1
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-091b87ba.js → app-globals-248cbe6a.js} +1 -1
- package/dist/esm/{arcade-defaults-413bb46c.js → arcade-defaults-6ff6dcc1.js} +3 -3
- package/dist/esm/{arcade-mode-9c21be34.js → arcade-mode-07971823.js} +3 -3
- package/dist/esm/arcgis-arcade-editor_6.entry.js +7 -7
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
- package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
- package/dist/esm/{css-930b25a7.js → css-d4d8c34f.js} +1 -1
- package/dist/esm/{cssMode-c8059805.js → cssMode-28616dad.js} +3 -3
- package/dist/esm/{html-aa299729.js → html-95a59c55.js} +3 -3
- package/dist/esm/{htmlMode-e383146f.js → htmlMode-b90373e1.js} +3 -3
- package/dist/esm/{index-5c929d0c.js → index-d20d28ef.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-1aec637d.js → javascript-c47641c7.js} +4 -4
- package/dist/esm/{jsonMode-deabe739.js → jsonMode-5006bcad.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{sql-expr-defaults-e24aed0a.js → sql-expr-defaults-239b0c66.js} +17 -17
- package/dist/esm/{sql-expr-mode-b6e67897.js → sql-expr-mode-7ce7ae5c.js} +3 -3
- package/dist/esm/{tsMode-e5eb14a5.js → tsMode-b7619b7d.js} +3 -3
- package/dist/esm/{typescript-29f4259e.js → typescript-d2a6bc05.js} +3 -3
- package/dist/esm/{useT9n-0e6a80f8.js → useT9n-f1cdb123.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/package.json +12 -12
|
@@ -1,70 +1,93 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"id": "
|
|
4
|
-
"title": "
|
|
3
|
+
"id": "string_functions",
|
|
4
|
+
"title": "字串函數",
|
|
5
5
|
"items": [
|
|
6
6
|
{
|
|
7
7
|
"type": "function",
|
|
8
|
-
"name": "
|
|
9
|
-
"bundle": "
|
|
10
|
-
"description": "
|
|
11
|
-
"examples": "\n#####
|
|
8
|
+
"name": "char_length",
|
|
9
|
+
"bundle": "string",
|
|
10
|
+
"description": "以整數形式傳回文字字串中的字元數。",
|
|
11
|
+
"examples": "\n##### 範例\n\n傳回 11\n\n```sql\nCHAR_LENGTH('Nova Scotia')\n```\n\n",
|
|
12
12
|
"completion": {
|
|
13
|
-
"label": "
|
|
14
|
-
"detail": "
|
|
15
|
-
"insertText": "
|
|
13
|
+
"label": "CHAR_LENGTH",
|
|
14
|
+
"detail": "CHAR_LENGTH(string) -> Number",
|
|
15
|
+
"insertText": "CHAR_LENGTH(${1:string_})$0",
|
|
16
16
|
"insertTextMode": 2,
|
|
17
17
|
"insertTextFormat": 2,
|
|
18
18
|
"kind": 3,
|
|
19
19
|
"documentation": {
|
|
20
20
|
"kind": "markdown",
|
|
21
|
-
"value": "
|
|
21
|
+
"value": "以整數形式傳回文字字串中的字元數。\n\n**參數**\n\n- **string**: 要傳回其長度的文字字串。\n\n**返回值**: Number"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"parametersInfo": {
|
|
25
|
-
"min":
|
|
26
|
-
"max":
|
|
25
|
+
"min": 1,
|
|
26
|
+
"max": 1
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"type": "function",
|
|
31
|
-
"name": "
|
|
32
|
-
"bundle": "
|
|
33
|
-
"description": "
|
|
34
|
-
"examples": "\n#####
|
|
31
|
+
"name": "coalesce",
|
|
32
|
+
"bundle": "string",
|
|
33
|
+
"description": "傳回清單中第一個不為 `NULL` 的值。 傳遞到函數中的所有值必須是相同的類型,而 `NULL` 值除外。",
|
|
34
|
+
"examples": "\n##### 範例\n\n傳回 'Green goldfish'\n\n```sql\nCOALESCE(null, null, 'Green goldfish', null, 'Purple cow')\n```\n\n傳回 -21\n\n```sql\nCOALESCE(null, -21, 33, null)\n```\n\n",
|
|
35
35
|
"completion": {
|
|
36
|
-
"label": "
|
|
37
|
-
"detail": "
|
|
38
|
-
"insertText": "
|
|
36
|
+
"label": "COALESCE",
|
|
37
|
+
"detail": "COALESCE(value1, valueN) -> String,Number,Datetime",
|
|
38
|
+
"insertText": "COALESCE(${1:value1_}, ${2:valueN_})$0",
|
|
39
39
|
"insertTextMode": 2,
|
|
40
40
|
"insertTextFormat": 2,
|
|
41
41
|
"kind": 3,
|
|
42
42
|
"documentation": {
|
|
43
43
|
"kind": "markdown",
|
|
44
|
-
"value": "試
|
|
44
|
+
"value": "傳回清單中第一個不為 `NULL` 的值。 傳遞到函數中的所有值必須是相同的類型,而 `NULL` 值除外。\n\n**參數**\n\n- **value1**: 試_The first value in the list_____________________________驗.\n- **valueN**: 試_The subsequent value(s) in the list___________________驗.\n\n**返回值**: String,Number,Datetime"
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"parametersInfo": {
|
|
48
|
-
"min":
|
|
49
|
-
"max":
|
|
48
|
+
"min": 2,
|
|
49
|
+
"max": -1
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"type": "function",
|
|
54
|
-
"name": "
|
|
55
|
-
"bundle": "
|
|
56
|
-
"description": "
|
|
57
|
-
"examples": "\n#####
|
|
54
|
+
"name": "concat",
|
|
55
|
+
"bundle": "string",
|
|
56
|
+
"description": "將兩個字串連接在一起。",
|
|
57
|
+
"examples": "\n##### 範例\n\n傳回 'Maple syrup'\n\n```sql\nCONCAT('Maple ', 'syrup')\n```\n\n",
|
|
58
58
|
"completion": {
|
|
59
|
-
"label": "
|
|
60
|
-
"detail": "
|
|
61
|
-
"insertText": "
|
|
59
|
+
"label": "CONCAT",
|
|
60
|
+
"detail": "CONCAT(string1, string2) -> String",
|
|
61
|
+
"insertText": "CONCAT(${1:string1_}, ${2:string2_})$0",
|
|
62
|
+
"insertTextMode": 2,
|
|
63
|
+
"insertTextFormat": 2,
|
|
64
|
+
"kind": 3,
|
|
65
|
+
"documentation": {
|
|
66
|
+
"kind": "markdown",
|
|
67
|
+
"value": "將兩個字串連接在一起。\n\n**參數**\n\n- **string1**: 第一個文字字串。\n- **string2**: 要串流至第一個文字字串的文字字串。\n\n**返回值**: String"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"parametersInfo": {
|
|
71
|
+
"min": 2,
|
|
72
|
+
"max": 2
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "function",
|
|
77
|
+
"name": "current_user",
|
|
78
|
+
"bundle": "string",
|
|
79
|
+
"description": "傳回目前登入入口網站的使用者的使用者名稱。",
|
|
80
|
+
"examples": "\n##### 範例\n\n傳回目前登入入口網站的使用者的使用者名稱。\n\n```sql\nCURRENT_USER\n```\n\n",
|
|
81
|
+
"completion": {
|
|
82
|
+
"label": "CURRENT_USER",
|
|
83
|
+
"detail": "CURRENT_USER -> String",
|
|
84
|
+
"insertText": "CURRENT_USER",
|
|
62
85
|
"insertTextMode": 2,
|
|
63
86
|
"insertTextFormat": 2,
|
|
64
87
|
"kind": 3,
|
|
65
88
|
"documentation": {
|
|
66
89
|
"kind": "markdown",
|
|
67
|
-
"value": "
|
|
90
|
+
"value": "傳回目前登入入口網站的使用者的使用者名稱。\n\n**返回值**: String"
|
|
68
91
|
}
|
|
69
92
|
},
|
|
70
93
|
"parametersInfo": {
|
|
@@ -74,39 +97,156 @@
|
|
|
74
97
|
},
|
|
75
98
|
{
|
|
76
99
|
"type": "function",
|
|
77
|
-
"name": "
|
|
78
|
-
"bundle": "
|
|
79
|
-
"description": "
|
|
80
|
-
"examples": "\n#####
|
|
100
|
+
"name": "lower",
|
|
101
|
+
"bundle": "string",
|
|
102
|
+
"description": "將文字字串中的所有字元轉換成小寫。",
|
|
103
|
+
"examples": "\n##### 範例\n\n傳回 'hello world'\n\n```sql\nLOWER('HELLO WORLD')\n```\n\n",
|
|
81
104
|
"completion": {
|
|
82
|
-
"label": "
|
|
83
|
-
"detail": "
|
|
84
|
-
"insertText": "
|
|
105
|
+
"label": "LOWER",
|
|
106
|
+
"detail": "LOWER(string) -> String",
|
|
107
|
+
"insertText": "LOWER(${1:string_})$0",
|
|
108
|
+
"insertTextMode": 2,
|
|
109
|
+
"insertTextFormat": 2,
|
|
110
|
+
"kind": 3,
|
|
111
|
+
"documentation": {
|
|
112
|
+
"kind": "markdown",
|
|
113
|
+
"value": "將文字字串中的所有字元轉換成小寫。\n\n**參數**\n\n- **string**: 要轉換成小寫的文字字串。\n\n**返回值**: String"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"parametersInfo": {
|
|
117
|
+
"min": 1,
|
|
118
|
+
"max": 1
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"type": "function",
|
|
123
|
+
"name": "position",
|
|
124
|
+
"bundle": "string",
|
|
125
|
+
"description": "傳回其他文字字串中第一個出現的子字串。 若找不到子字串則傳回 0。",
|
|
126
|
+
"examples": "\n##### 範例\n\n傳回 6\n\n```sql\nPOSITION('com' IN 'esri.com')\n```\n\n傳回 9\n\n```sql\nPOSITION('sum' IN 'Lorem ipsum')\n```\n\n",
|
|
127
|
+
"completion": {
|
|
128
|
+
"label": "POSITION",
|
|
129
|
+
"detail": "POSITION(substring, string) -> Number",
|
|
130
|
+
"insertText": "POSITION(${1:substring_} IN ${2:string_})$0",
|
|
85
131
|
"insertTextMode": 2,
|
|
86
132
|
"insertTextFormat": 2,
|
|
87
133
|
"kind": 3,
|
|
88
134
|
"documentation": {
|
|
89
135
|
"kind": "markdown",
|
|
90
|
-
"value": "
|
|
136
|
+
"value": "傳回其他文字字串中第一個出現的子字串。 若找不到子字串則傳回 0。\n\n**參數**\n\n- **substring**: 要搜尋的文字字串。\n- **string**: 將搜尋子字串的字串。\n\n**返回值**: Number"
|
|
91
137
|
}
|
|
92
138
|
},
|
|
93
139
|
"parametersInfo": {
|
|
94
140
|
"min": 2,
|
|
95
141
|
"max": 2
|
|
96
142
|
}
|
|
143
|
+
},
|
|
144
|
+
[
|
|
145
|
+
{
|
|
146
|
+
"type": "function",
|
|
147
|
+
"name": "substring",
|
|
148
|
+
"bundle": "string",
|
|
149
|
+
"description": "傳回文字字串中的起點到指定的字串長度之間的字元子集。",
|
|
150
|
+
"examples": "\n##### 範例\n\n傳回 'City'\n\n```sql\nSUBSTRING('New York City', 10, 4)\n```\n\n",
|
|
151
|
+
"completion": {
|
|
152
|
+
"label": "SUBSTRING",
|
|
153
|
+
"detail": "SUBSTRING(string, start, length) -> String",
|
|
154
|
+
"insertText": "SUBSTRING(${1:string_}, ${2:start_}, ${3:length_})$0",
|
|
155
|
+
"insertTextMode": 2,
|
|
156
|
+
"insertTextFormat": 2,
|
|
157
|
+
"kind": 3,
|
|
158
|
+
"documentation": {
|
|
159
|
+
"kind": "markdown",
|
|
160
|
+
"value": "傳回文字字串中的起點到指定的字串長度之間的字元子集。\n\n**參數**\n\n- **string**: 要從中擷取的文字字串。\n- **start**: 指定傳回字元開始位置的整數值。\n- **length**: 要擷取的字元數目。\n\n**返回值**: String"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"parametersInfo": {
|
|
164
|
+
"min": 3,
|
|
165
|
+
"max": 3
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"type": "function",
|
|
170
|
+
"name": "substring",
|
|
171
|
+
"bundle": "string",
|
|
172
|
+
"description": "傳回文字字串中的起點到指定的字串長度之間的字元子集。",
|
|
173
|
+
"examples": "\n##### 範例\n\n傳回 'City'\n\n```sql\nSUBSTRING('New York City' FROM 10 FOR 4)\n```\n\n傳回 'New York'\n\n```sql\nSUBSTRING('New York City' FROM 1 FOR 8)\n```\n\n",
|
|
174
|
+
"completion": {
|
|
175
|
+
"label": "SUBSTRING",
|
|
176
|
+
"detail": "SUBSTRING(string, start, length) -> String",
|
|
177
|
+
"insertText": "SUBSTRING(${1:string_} FROM ${2:start_} FOR ${3:length_})$0",
|
|
178
|
+
"insertTextMode": 2,
|
|
179
|
+
"insertTextFormat": 2,
|
|
180
|
+
"kind": 3,
|
|
181
|
+
"documentation": {
|
|
182
|
+
"kind": "markdown",
|
|
183
|
+
"value": "傳回文字字串中的起點到指定的字串長度之間的字元子集。\n\n**參數**\n\n- **string**: 要從中擷取的文字字串。\n- **start**: 指定傳回字元開始位置的整數值。\n- **length**: 要擷取的字元數目。\n\n**返回值**: String"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"parametersInfo": {
|
|
187
|
+
"min": 3,
|
|
188
|
+
"max": 3
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
{
|
|
193
|
+
"type": "function",
|
|
194
|
+
"name": "trim",
|
|
195
|
+
"bundle": "string",
|
|
196
|
+
"description": "傳回文字字串,其中所有前導和/或尾隨空格或其他指定字元已被移除。 LEADING 將修剪文字字串的前導側,TRAILING 將修剪文字字串的尾隨側,而 BOTH 將修剪文字字串的兩側。",
|
|
197
|
+
"examples": "\n##### 範例\n\n傳回 'myFunc'\n\n```sql\nTRIM(LEADING 't' FROM 'tMyFunc')\n```\n\n傳回 ' hello world'\n\n```sql\nTRIM(TRAILING ' ' FROM ' hello world ')\n```\n\n傳回 'hello world'\n\n```sql\nTRIM(BOTH ' ' FROM ' hello world ')\n```\n\n",
|
|
198
|
+
"completion": {
|
|
199
|
+
"label": "TRIM",
|
|
200
|
+
"detail": "TRIM(side, character, string) -> String",
|
|
201
|
+
"insertText": "TRIM(${1:side_} ${2:character_} FROM ${3:string_})$0",
|
|
202
|
+
"insertTextMode": 2,
|
|
203
|
+
"insertTextFormat": 2,
|
|
204
|
+
"kind": 3,
|
|
205
|
+
"documentation": {
|
|
206
|
+
"kind": "markdown",
|
|
207
|
+
"value": "傳回文字字串,其中所有前導和/或尾隨空格或其他指定字元已被移除。 LEADING 將修剪文字字串的前導側,TRAILING 將修剪文字字串的尾隨側,而 BOTH 將修剪文字字串的兩側。\n\n**參數**\n\n- **side**: 將移除文字字串中空格或字元的一側。 可能值: `LEADING`、`TRAILING`、`BOTH`。\n- **character**: 將從文字字串中裁剪的字元。\n- **string**: 要裁剪的文字字串。\n\n**返回值**: String"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"parametersInfo": {
|
|
211
|
+
"min": 3,
|
|
212
|
+
"max": 3
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"type": "function",
|
|
217
|
+
"name": "upper",
|
|
218
|
+
"bundle": "string",
|
|
219
|
+
"description": "將文字字串中的所有字元轉換成大寫。",
|
|
220
|
+
"examples": "\n##### 範例\n\n傳回 'QUICK RED FOX'\n\n```sql\nUPPER('quick red fox')\n```\n\n",
|
|
221
|
+
"completion": {
|
|
222
|
+
"label": "UPPER",
|
|
223
|
+
"detail": "UPPER(string) -> String",
|
|
224
|
+
"insertText": "UPPER(${1:string_})$0",
|
|
225
|
+
"insertTextMode": 2,
|
|
226
|
+
"insertTextFormat": 2,
|
|
227
|
+
"kind": 3,
|
|
228
|
+
"documentation": {
|
|
229
|
+
"kind": "markdown",
|
|
230
|
+
"value": "將文字字串中的所有字元轉換成大寫。\n\n**參數**\n\n- **string**: 要轉換成大寫的字串。\n\n**返回值**: String"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"parametersInfo": {
|
|
234
|
+
"min": 1,
|
|
235
|
+
"max": 1
|
|
236
|
+
}
|
|
97
237
|
}
|
|
98
238
|
]
|
|
99
239
|
},
|
|
100
240
|
{
|
|
101
241
|
"id": "numeric_functions",
|
|
102
|
-
"title": "
|
|
242
|
+
"title": "數值函數",
|
|
103
243
|
"items": [
|
|
104
244
|
{
|
|
105
245
|
"type": "function",
|
|
106
246
|
"name": "abs",
|
|
107
247
|
"bundle": "numeric",
|
|
108
|
-
"description": "
|
|
109
|
-
"examples": "\n#####
|
|
248
|
+
"description": "傳回 number 的絕對值。",
|
|
249
|
+
"examples": "\n##### 範例\n\n傳回 2\n\n```sql\nABS(-2)\n```\n\n",
|
|
110
250
|
"completion": {
|
|
111
251
|
"label": "ABS",
|
|
112
252
|
"detail": "ABS(number) -> Number",
|
|
@@ -116,7 +256,7 @@
|
|
|
116
256
|
"kind": 3,
|
|
117
257
|
"documentation": {
|
|
118
258
|
"kind": "markdown",
|
|
119
|
-
"value": "
|
|
259
|
+
"value": "傳回 number 的絕對值。\n\n**參數**\n\n- **number**: 用來執行運算的一個數字。\n\n**返回值**: Number"
|
|
120
260
|
}
|
|
121
261
|
},
|
|
122
262
|
"parametersInfo": {
|
|
@@ -128,8 +268,8 @@
|
|
|
128
268
|
"type": "function",
|
|
129
269
|
"name": "acos",
|
|
130
270
|
"bundle": "numeric",
|
|
131
|
-
"description": "
|
|
132
|
-
"examples": "\n#####
|
|
271
|
+
"description": "傳回數字的反餘弦值。",
|
|
272
|
+
"examples": "\n##### 範例\n\n傳回 1.26610367\n\n```sql\nACOS(0.3)\n```\n\n",
|
|
133
273
|
"completion": {
|
|
134
274
|
"label": "ACOS",
|
|
135
275
|
"detail": "ACOS(number) -> Number",
|
|
@@ -139,7 +279,7 @@
|
|
|
139
279
|
"kind": 3,
|
|
140
280
|
"documentation": {
|
|
141
281
|
"kind": "markdown",
|
|
142
|
-
"value": "
|
|
282
|
+
"value": "傳回數字的反餘弦值。\n\n**參數**\n\n- **number**: 用來執行運算的一個數字 (-1 到 1 之間)。\n\n**返回值**: Number"
|
|
143
283
|
}
|
|
144
284
|
},
|
|
145
285
|
"parametersInfo": {
|
|
@@ -151,8 +291,8 @@
|
|
|
151
291
|
"type": "function",
|
|
152
292
|
"name": "asin",
|
|
153
293
|
"bundle": "numeric",
|
|
154
|
-
"description": "
|
|
155
|
-
"examples": "\n#####
|
|
294
|
+
"description": "傳回數字的反正弦值。",
|
|
295
|
+
"examples": "\n##### 範例\n\n傳回 0.30469265\n\n```sql\nASIN(0.3)\n```\n\n",
|
|
156
296
|
"completion": {
|
|
157
297
|
"label": "ASIN",
|
|
158
298
|
"detail": "ASIN(number) -> Number",
|
|
@@ -162,7 +302,7 @@
|
|
|
162
302
|
"kind": 3,
|
|
163
303
|
"documentation": {
|
|
164
304
|
"kind": "markdown",
|
|
165
|
-
"value": "
|
|
305
|
+
"value": "傳回數字的反正弦值。\n\n**參數**\n\n- **number**: 用來執行運算的一個數字 (-1 到 1 之間)。\n\n**返回值**: Number"
|
|
166
306
|
}
|
|
167
307
|
},
|
|
168
308
|
"parametersInfo": {
|
|
@@ -174,8 +314,8 @@
|
|
|
174
314
|
"type": "function",
|
|
175
315
|
"name": "atan",
|
|
176
316
|
"bundle": "numeric",
|
|
177
|
-
"description": "
|
|
178
|
-
"examples": "\n#####
|
|
317
|
+
"description": "傳回數字的反正切值。",
|
|
318
|
+
"examples": "\n##### 範例\n\n傳回 0.78539816\n\n```sql\nATAN(1)\n```\n\n",
|
|
179
319
|
"completion": {
|
|
180
320
|
"label": "ATAN",
|
|
181
321
|
"detail": "ATAN(number) -> Number",
|
|
@@ -185,7 +325,7 @@
|
|
|
185
325
|
"kind": 3,
|
|
186
326
|
"documentation": {
|
|
187
327
|
"kind": "markdown",
|
|
188
|
-
"value": "
|
|
328
|
+
"value": "傳回數字的反正切值。\n\n**參數**\n\n- **number**: 用來執行運算的一個數字。\n\n**返回值**: Number"
|
|
189
329
|
}
|
|
190
330
|
},
|
|
191
331
|
"parametersInfo": {
|
|
@@ -197,8 +337,8 @@
|
|
|
197
337
|
"type": "function",
|
|
198
338
|
"name": "cast",
|
|
199
339
|
"bundle": "numeric",
|
|
200
|
-
"description": "
|
|
201
|
-
"examples": "\n#####
|
|
340
|
+
"description": "將值從一種資料類型轉換為另一種資料類型。 dataType 參數將確定值轉換為什麼類型。 FLOAT 將值轉換為雙精度,INTEGER 將值轉換為整數等等。",
|
|
341
|
+
"examples": "\n##### 範例\n\n傳回 2\n\n```sql\nCAST(2.34 AS INTEGER)\n```\n\n傳回 '1:00 PM'\n\n```sql\nCAST('13:00' AS TIME)\n```\n\n試_Returns '50'_____________驗\n\n```sql\nCAST(50 AS VARCHAR(20))\n```\n\n",
|
|
202
342
|
"completion": {
|
|
203
343
|
"label": "CAST",
|
|
204
344
|
"detail": "CAST(value, dataType) -> Number,Datetime,String",
|
|
@@ -208,7 +348,7 @@
|
|
|
208
348
|
"kind": 3,
|
|
209
349
|
"documentation": {
|
|
210
350
|
"kind": "markdown",
|
|
211
|
-
"value": "
|
|
351
|
+
"value": "將值從一種資料類型轉換為另一種資料類型。 dataType 參數將確定值轉換為什麼類型。 FLOAT 將值轉換為雙精度,INTEGER 將值轉換為整數等等。\n\n**參數**\n\n- **value**: 要轉換成其他資料類型的值。\n- **dataType**: 要將值轉換成的資料類型。 可能值: `DATE`、`FLOAT`、`INTEGER`、`REAL`、`SMALLINT`、`TIME`、`TIMESTAMP`、`VARCHAR`。\n\n**返回值**: Number,Datetime,String"
|
|
212
352
|
}
|
|
213
353
|
},
|
|
214
354
|
"parametersInfo": {
|
|
@@ -220,8 +360,8 @@
|
|
|
220
360
|
"type": "function",
|
|
221
361
|
"name": "ceiling",
|
|
222
362
|
"bundle": "numeric",
|
|
223
|
-
"description": "
|
|
224
|
-
"examples": "\n#####
|
|
363
|
+
"description": "傳回大於或等於 number 的最小整數。",
|
|
364
|
+
"examples": "\n##### 範例\n\n傳回 235\n\n```sql\nCEILING(234.042)\n```\n\n",
|
|
225
365
|
"completion": {
|
|
226
366
|
"label": "CEILING",
|
|
227
367
|
"detail": "CEILING(number) -> Number",
|
|
@@ -231,7 +371,7 @@
|
|
|
231
371
|
"kind": 3,
|
|
232
372
|
"documentation": {
|
|
233
373
|
"kind": "markdown",
|
|
234
|
-
"value": "
|
|
374
|
+
"value": "傳回大於或等於 number 的最小整數。\n\n**參數**\n\n- **number**: 要向上捨去的數字。\n\n**返回值**: Number"
|
|
235
375
|
}
|
|
236
376
|
},
|
|
237
377
|
"parametersInfo": {
|
|
@@ -243,8 +383,8 @@
|
|
|
243
383
|
"type": "function",
|
|
244
384
|
"name": "cos",
|
|
245
385
|
"bundle": "numeric",
|
|
246
|
-
"description": "
|
|
247
|
-
"examples": "\n#####
|
|
386
|
+
"description": "傳回 number (假設其為以弧度為單位的角) 的三角餘弦值。",
|
|
387
|
+
"examples": "\n##### 範例\n\n傳回 -0.41614684\n\n```sql\nCOS(2)\n```\n\n",
|
|
248
388
|
"completion": {
|
|
249
389
|
"label": "COS",
|
|
250
390
|
"detail": "COS(number) -> Number",
|
|
@@ -254,7 +394,7 @@
|
|
|
254
394
|
"kind": 3,
|
|
255
395
|
"documentation": {
|
|
256
396
|
"kind": "markdown",
|
|
257
|
-
"value": "
|
|
397
|
+
"value": "傳回 number (假設其為以弧度為單位的角) 的三角餘弦值。\n\n**參數**\n\n- **number**: 用來執行運算的弧度角度。\n\n**返回值**: Number"
|
|
258
398
|
}
|
|
259
399
|
},
|
|
260
400
|
"parametersInfo": {
|
|
@@ -266,8 +406,8 @@
|
|
|
266
406
|
"type": "function",
|
|
267
407
|
"name": "floor",
|
|
268
408
|
"bundle": "numeric",
|
|
269
|
-
"description": "
|
|
270
|
-
"examples": "\n#####
|
|
409
|
+
"description": "傳回小於或等於 number 的最大整數。",
|
|
410
|
+
"examples": "\n##### 範例\n\n傳回 12\n\n```sql\nFLOOR(12.9942)\n```\n\n",
|
|
271
411
|
"completion": {
|
|
272
412
|
"label": "FLOOR",
|
|
273
413
|
"detail": "FLOOR(number) -> Number",
|
|
@@ -277,7 +417,7 @@
|
|
|
277
417
|
"kind": 3,
|
|
278
418
|
"documentation": {
|
|
279
419
|
"kind": "markdown",
|
|
280
|
-
"value": "
|
|
420
|
+
"value": "傳回小於或等於 number 的最大整數。\n\n**參數**\n\n- **number**: 要向下捨去的數字。\n\n**返回值**: Number"
|
|
281
421
|
}
|
|
282
422
|
},
|
|
283
423
|
"parametersInfo": {
|
|
@@ -289,8 +429,8 @@
|
|
|
289
429
|
"type": "function",
|
|
290
430
|
"name": "log",
|
|
291
431
|
"bundle": "numeric",
|
|
292
|
-
"description": "
|
|
293
|
-
"examples": "\n#####
|
|
432
|
+
"description": "傳回 number 的自然對數 (基數 e)。",
|
|
433
|
+
"examples": "\n##### 範例\n\n傳回 2.302585\n\n```sql\nLOG(10)\n```\n\n",
|
|
294
434
|
"completion": {
|
|
295
435
|
"label": "LOG",
|
|
296
436
|
"detail": "LOG(number) -> Number",
|
|
@@ -300,7 +440,7 @@
|
|
|
300
440
|
"kind": 3,
|
|
301
441
|
"documentation": {
|
|
302
442
|
"kind": "markdown",
|
|
303
|
-
"value": "
|
|
443
|
+
"value": "傳回 number 的自然對數 (基數 e)。\n\n**參數**\n\n- **number**: 用來執行運算的一個大於 0 的數字。\n\n**返回值**: Number"
|
|
304
444
|
}
|
|
305
445
|
},
|
|
306
446
|
"parametersInfo": {
|
|
@@ -312,8 +452,8 @@
|
|
|
312
452
|
"type": "function",
|
|
313
453
|
"name": "log10",
|
|
314
454
|
"bundle": "numeric",
|
|
315
|
-
"description": "
|
|
316
|
-
"examples": "\n#####
|
|
455
|
+
"description": "傳回數字的基數 10 對數。",
|
|
456
|
+
"examples": "\n##### 範例\n\n傳回 0.301030\n\n```sql\nLOG10(2)\n```\n\n",
|
|
317
457
|
"completion": {
|
|
318
458
|
"label": "LOG10",
|
|
319
459
|
"detail": "LOG10(number) -> Number",
|
|
@@ -323,7 +463,7 @@
|
|
|
323
463
|
"kind": 3,
|
|
324
464
|
"documentation": {
|
|
325
465
|
"kind": "markdown",
|
|
326
|
-
"value": "
|
|
466
|
+
"value": "傳回數字的基數 10 對數。\n\n**參數**\n\n- **number**: 要對其執行大於 0 的運算的數字。\n\n**返回值**: Number"
|
|
327
467
|
}
|
|
328
468
|
},
|
|
329
469
|
"parametersInfo": {
|
|
@@ -335,8 +475,8 @@
|
|
|
335
475
|
"type": "function",
|
|
336
476
|
"name": "mod",
|
|
337
477
|
"bundle": "numeric",
|
|
338
|
-
"description": "
|
|
339
|
-
"examples": "\n#####
|
|
478
|
+
"description": "傳回被除數除以除數後的餘數。 被除數和除數都必須是整數。",
|
|
479
|
+
"examples": "\n##### 範例\n\n傳回 2\n\n```sql\nMOD(18, 4)\n```\n\n",
|
|
340
480
|
"completion": {
|
|
341
481
|
"label": "MOD",
|
|
342
482
|
"detail": "MOD(x, y) -> Number",
|
|
@@ -346,7 +486,7 @@
|
|
|
346
486
|
"kind": 3,
|
|
347
487
|
"documentation": {
|
|
348
488
|
"kind": "markdown",
|
|
349
|
-
"value": "
|
|
489
|
+
"value": "傳回被除數除以除數後的餘數。 被除數和除數都必須是整數。\n\n**參數**\n\n- **x**: 代表被除數的數字。\n- **y**: 代表除數的數字。\n\n**返回值**: Number"
|
|
350
490
|
}
|
|
351
491
|
},
|
|
352
492
|
"parametersInfo": {
|
|
@@ -358,8 +498,8 @@
|
|
|
358
498
|
"type": "function",
|
|
359
499
|
"name": "nullif",
|
|
360
500
|
"bundle": "numeric",
|
|
361
|
-
"description": "試_Returns `NULL` if expression1 is equal to expression2. NULLIF is commonly used to prevent divide-by-zero errors by setting expression2 to
|
|
362
|
-
"examples": "\n#####
|
|
501
|
+
"description": "試_Returns `NULL` if expression1 is equal to expression2, otherwise returns expression1. Values for expression1 and expression2 must be the same type. NULLIF is commonly used to prevent divide-by-zero errors by setting expression2 to 0______________________________________________________________________________________________________________________驗.",
|
|
502
|
+
"examples": "\n##### 範例\n\n傳回 `null`\n\n```sql\nNULLIF('Monday', 'Monday')\n```\n\n傳回 32\n\n```sql\nNULLIF(32, 0)\n```\n\n如果 POP18 等於 0 則傳回 `null`;否則傳回 TOTALPOP / POP18 的值。\n\n```sql\nTOTALPOP / NULLIF(POP18, 0)\n```\n\n",
|
|
363
503
|
"completion": {
|
|
364
504
|
"label": "NULLIF",
|
|
365
505
|
"detail": "NULLIF(expression1, expression2) -> Number,String,Datetime",
|
|
@@ -369,7 +509,7 @@
|
|
|
369
509
|
"kind": 3,
|
|
370
510
|
"documentation": {
|
|
371
511
|
"kind": "markdown",
|
|
372
|
-
"value": "試_Returns `NULL` if expression1 is equal to expression2. NULLIF is commonly used to prevent divide-by-zero errors by setting expression2 to
|
|
512
|
+
"value": "試_Returns `NULL` if expression1 is equal to expression2, otherwise returns expression1. Values for expression1 and expression2 must be the same type. NULLIF is commonly used to prevent divide-by-zero errors by setting expression2 to 0______________________________________________________________________________________________________________________驗.\n\n**參數**\n\n- **expression1**: 用來執行運算的值。\n- **expression2**: 用來執行運算的值。\n\n**返回值**: Number,String,Datetime"
|
|
373
513
|
}
|
|
374
514
|
},
|
|
375
515
|
"parametersInfo": {
|
|
@@ -381,8 +521,8 @@
|
|
|
381
521
|
"type": "function",
|
|
382
522
|
"name": "power",
|
|
383
523
|
"bundle": "numeric",
|
|
384
|
-
"description": "
|
|
385
|
-
"examples": "\n#####
|
|
524
|
+
"description": "傳回以 number 為底,指定指數的冪值。",
|
|
525
|
+
"examples": "\n##### 範例\n\n傳回 8\n\n```sql\nPOWER(2, 3)\n```\n\n",
|
|
386
526
|
"completion": {
|
|
387
527
|
"label": "POWER",
|
|
388
528
|
"detail": "POWER(x, y) -> Number",
|
|
@@ -392,7 +532,7 @@
|
|
|
392
532
|
"kind": 3,
|
|
393
533
|
"documentation": {
|
|
394
534
|
"kind": "markdown",
|
|
395
|
-
"value": "
|
|
535
|
+
"value": "傳回以 number 為底,指定指數的冪值。\n\n**參數**\n\n- **x**: 用來執行運算的數字。\n- **y**: 指數,表示其本身乘以數字的倍數。\n\n**返回值**: Number"
|
|
396
536
|
}
|
|
397
537
|
},
|
|
398
538
|
"parametersInfo": {
|
|
@@ -404,8 +544,8 @@
|
|
|
404
544
|
"type": "function",
|
|
405
545
|
"name": "round",
|
|
406
546
|
"bundle": "numeric",
|
|
407
|
-
"description": "
|
|
408
|
-
"examples": "\n#####
|
|
547
|
+
"description": "將 number 捨入到指定長度。",
|
|
548
|
+
"examples": "\n##### 範例\n\n傳回 3.98\n\n```sql\nROUND(3.98024, 2)\n```\n\n傳回 200\n\n```sql\nROUND(192.1, -2)\n```\n\n",
|
|
409
549
|
"completion": {
|
|
410
550
|
"label": "ROUND",
|
|
411
551
|
"detail": "ROUND(number, length) -> Number",
|
|
@@ -415,7 +555,7 @@
|
|
|
415
555
|
"kind": 3,
|
|
416
556
|
"documentation": {
|
|
417
557
|
"kind": "markdown",
|
|
418
|
-
"value": "
|
|
558
|
+
"value": "將 number 捨入到指定長度。\n\n**參數**\n\n- **number**: 要捨去的數字。\n- **length**: 要將數字捨去到的小數位數。 正長度將數字捨去到指定的小數位數。 負長度會將數字捨去到小數點左側。\n\n**返回值**: Number"
|
|
419
559
|
}
|
|
420
560
|
},
|
|
421
561
|
"parametersInfo": {
|
|
@@ -427,8 +567,8 @@
|
|
|
427
567
|
"type": "function",
|
|
428
568
|
"name": "sign",
|
|
429
569
|
"bundle": "numeric",
|
|
430
|
-
"description": "
|
|
431
|
-
"examples": "\n#####
|
|
570
|
+
"description": "傳回給定數字的正負號。 負數將傳回 -1。 正數將傳回 1。",
|
|
571
|
+
"examples": "\n##### 範例\n\n傳回 -1\n\n```sql\nSIGN(-132)\n```\n\n傳回 0\n\n```sql\nSIGN(0)\n```\n\n傳回 1\n\n```sql\nSIGN(42)\n```\n\n",
|
|
432
572
|
"completion": {
|
|
433
573
|
"label": "SIGN",
|
|
434
574
|
"detail": "SIGN(number) -> Number",
|
|
@@ -438,7 +578,7 @@
|
|
|
438
578
|
"kind": 3,
|
|
439
579
|
"documentation": {
|
|
440
580
|
"kind": "markdown",
|
|
441
|
-
"value": "
|
|
581
|
+
"value": "傳回給定數字的正負號。 負數將傳回 -1。 正數將傳回 1。\n\n**參數**\n\n- **number**: 用來執行運算的一個數字。\n\n**返回值**: Number"
|
|
442
582
|
}
|
|
443
583
|
},
|
|
444
584
|
"parametersInfo": {
|
|
@@ -450,8 +590,8 @@
|
|
|
450
590
|
"type": "function",
|
|
451
591
|
"name": "sin",
|
|
452
592
|
"bundle": "numeric",
|
|
453
|
-
"description": "
|
|
454
|
-
"examples": "\n#####
|
|
593
|
+
"description": "傳回 number (假設其為以弧度為單位的角) 的三角正弦值。",
|
|
594
|
+
"examples": "\n##### 範例\n\n傳回 0.84147098\n\n```sql\nSIN(1)\n```\n\n",
|
|
455
595
|
"completion": {
|
|
456
596
|
"label": "SIN",
|
|
457
597
|
"detail": "SIN(number) -> Number",
|
|
@@ -461,7 +601,7 @@
|
|
|
461
601
|
"kind": 3,
|
|
462
602
|
"documentation": {
|
|
463
603
|
"kind": "markdown",
|
|
464
|
-
"value": "
|
|
604
|
+
"value": "傳回 number (假設其為以弧度為單位的角) 的三角正弦值。\n\n**參數**\n\n- **number**: 用來執行運算的弧度角度。\n\n**返回值**: Number"
|
|
465
605
|
}
|
|
466
606
|
},
|
|
467
607
|
"parametersInfo": {
|
|
@@ -473,8 +613,8 @@
|
|
|
473
613
|
"type": "function",
|
|
474
614
|
"name": "tan",
|
|
475
615
|
"bundle": "numeric",
|
|
476
|
-
"description": "
|
|
477
|
-
"examples": "\n#####
|
|
616
|
+
"description": "傳回 number (假設其為以弧度為單位的角) 的正切值。",
|
|
617
|
+
"examples": "\n##### 範例\n\n傳回 2.57215162\n\n```sql\nTAN(1.2)\n```\n\n",
|
|
478
618
|
"completion": {
|
|
479
619
|
"label": "TAN",
|
|
480
620
|
"detail": "TAN(number) -> Number",
|
|
@@ -484,7 +624,7 @@
|
|
|
484
624
|
"kind": 3,
|
|
485
625
|
"documentation": {
|
|
486
626
|
"kind": "markdown",
|
|
487
|
-
"value": "
|
|
627
|
+
"value": "傳回 number (假設其為以弧度為單位的角) 的正切值。\n\n**參數**\n\n- **number**: 用來執行運算的弧度角度。\n\n**返回值**: Number"
|
|
488
628
|
}
|
|
489
629
|
},
|
|
490
630
|
"parametersInfo": {
|
|
@@ -496,8 +636,8 @@
|
|
|
496
636
|
"type": "function",
|
|
497
637
|
"name": "truncate",
|
|
498
638
|
"bundle": "numeric",
|
|
499
|
-
"description": "
|
|
500
|
-
"examples": "\n#####
|
|
639
|
+
"description": "傳回截斷的數字。",
|
|
640
|
+
"examples": "\n##### 範例\n\n傳回 91.3\n\n```sql\nTRUNCATE(91.367, 1)\n```\n\n傳回 124\n\n```sql\nTRUNCATE(124.45, 0)\n```\n\n傳回 1900\n\n```sql\nTRUNCATE(1982.83, -2)\n```\n\n",
|
|
501
641
|
"completion": {
|
|
502
642
|
"label": "TRUNCATE",
|
|
503
643
|
"detail": "TRUNCATE(number, decimals) -> Number",
|
|
@@ -507,7 +647,7 @@
|
|
|
507
647
|
"kind": 3,
|
|
508
648
|
"documentation": {
|
|
509
649
|
"kind": "markdown",
|
|
510
|
-
"value": "
|
|
650
|
+
"value": "傳回截斷的數字。\n\n**參數**\n\n- **number**: 要截斷的數字。\n- **decimals**: 正值會將數字截斷至指定的小數位數。 負值將數字截斷到小數點左側。\n\n**返回值**: Number"
|
|
511
651
|
}
|
|
512
652
|
},
|
|
513
653
|
"parametersInfo": {
|
|
@@ -518,94 +658,48 @@
|
|
|
518
658
|
]
|
|
519
659
|
},
|
|
520
660
|
{
|
|
521
|
-
"id": "
|
|
522
|
-
"title": "
|
|
661
|
+
"id": "date_functions",
|
|
662
|
+
"title": "日期函數",
|
|
523
663
|
"items": [
|
|
524
664
|
{
|
|
525
665
|
"type": "function",
|
|
526
|
-
"name": "
|
|
527
|
-
"bundle": "
|
|
528
|
-
"description": "
|
|
529
|
-
"examples": "\n#####
|
|
530
|
-
"completion": {
|
|
531
|
-
"label": "CHAR_LENGTH",
|
|
532
|
-
"detail": "CHAR_LENGTH(string) -> Number",
|
|
533
|
-
"insertText": "CHAR_LENGTH(${1:string_})$0",
|
|
534
|
-
"insertTextMode": 2,
|
|
535
|
-
"insertTextFormat": 2,
|
|
536
|
-
"kind": 3,
|
|
537
|
-
"documentation": {
|
|
538
|
-
"kind": "markdown",
|
|
539
|
-
"value": "試_Returns the number of characters in the text string as an integer__________________________________驗.\n\n**試_Parameter___________________驗**\n\n- **string**: 試_The text string to return the length of_____________________驗.\n\n**試_Return value_____________驗**: Number"
|
|
540
|
-
}
|
|
541
|
-
},
|
|
542
|
-
"parametersInfo": {
|
|
543
|
-
"min": 1,
|
|
544
|
-
"max": 1
|
|
545
|
-
}
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
"type": "function",
|
|
549
|
-
"name": "coalesce",
|
|
550
|
-
"bundle": "string",
|
|
551
|
-
"description": "試_Returns the first value in the list that is not `NULL`. All values passed into the function must be the same type, with the exception of `NULL` values_____________________________________________________________________________驗.",
|
|
552
|
-
"examples": "\n##### 試_Examples_________________驗\n\n試_Returns 'Green goldfish'_________________________驗\n\n```sql\nCOALESCE(null, null, 'Green goldfish', null, 'Purple cow')\n```\n\n試_Returns -21____________驗\n\n```sql\nCOALESCE(null, -21, 33, null)\n```\n\n",
|
|
553
|
-
"completion": {
|
|
554
|
-
"label": "COALESCE",
|
|
555
|
-
"detail": "COALESCE(value1, valueN) -> String,Number,Datetime",
|
|
556
|
-
"insertText": "COALESCE(${1:value1_}, ${2:valueN_})$0",
|
|
557
|
-
"insertTextMode": 2,
|
|
558
|
-
"insertTextFormat": 2,
|
|
559
|
-
"kind": 3,
|
|
560
|
-
"documentation": {
|
|
561
|
-
"kind": "markdown",
|
|
562
|
-
"value": "試_Returns the first value in the list that is not `NULL`. All values passed into the function must be the same type, with the exception of `NULL` values_____________________________________________________________________________驗.\n\n**試_Parameters_____________________驗**\n\n- **value1**: 試_The first value________________驗\n- **valueN**: 試_N value_______________驗\n\n**試_Return value_____________驗**: String,Number,Datetime"
|
|
563
|
-
}
|
|
564
|
-
},
|
|
565
|
-
"parametersInfo": {
|
|
566
|
-
"min": 2,
|
|
567
|
-
"max": -1
|
|
568
|
-
}
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
"type": "function",
|
|
572
|
-
"name": "concat",
|
|
573
|
-
"bundle": "string",
|
|
574
|
-
"description": "試_Concatenates two strings together__________________驗.",
|
|
575
|
-
"examples": "\n##### 試_Example_______________驗\n\n試_Returns 'Maple syrup'______________________驗\n\n```sql\nCONCAT('Maple ', 'syrup')\n```\n\n",
|
|
666
|
+
"name": "current_date",
|
|
667
|
+
"bundle": "date",
|
|
668
|
+
"description": "以 UTC 傳回當前日期。",
|
|
669
|
+
"examples": "\n##### 範例\n\n以 UTC 傳回當前日期。\n\n```sql\nCURRENT_DATE\n```\n\n",
|
|
576
670
|
"completion": {
|
|
577
|
-
"label": "
|
|
578
|
-
"detail": "
|
|
579
|
-
"insertText": "
|
|
671
|
+
"label": "CURRENT_DATE",
|
|
672
|
+
"detail": "CURRENT_DATE -> Datetime",
|
|
673
|
+
"insertText": "CURRENT_DATE",
|
|
580
674
|
"insertTextMode": 2,
|
|
581
675
|
"insertTextFormat": 2,
|
|
582
676
|
"kind": 3,
|
|
583
677
|
"documentation": {
|
|
584
678
|
"kind": "markdown",
|
|
585
|
-
"value": "
|
|
679
|
+
"value": "以 UTC 傳回當前日期。\n\n**返回值**: Datetime"
|
|
586
680
|
}
|
|
587
681
|
},
|
|
588
682
|
"parametersInfo": {
|
|
589
|
-
"min":
|
|
590
|
-
"max":
|
|
683
|
+
"min": 0,
|
|
684
|
+
"max": 0
|
|
591
685
|
}
|
|
592
686
|
},
|
|
593
687
|
{
|
|
594
688
|
"type": "function",
|
|
595
|
-
"name": "
|
|
596
|
-
"bundle": "
|
|
597
|
-
"description": "
|
|
598
|
-
"examples": "\n#####
|
|
689
|
+
"name": "current_time",
|
|
690
|
+
"bundle": "date",
|
|
691
|
+
"description": "傳回當前 UTC 日期和時間 (以小時、分鐘和秒為單位)。",
|
|
692
|
+
"examples": "\n##### 範例\n\n傳回當前 UTC 日期和時間 (以小時、分鐘和秒為單位)。\n\n```sql\nCURRENT_TIME\n```\n\n",
|
|
599
693
|
"completion": {
|
|
600
|
-
"label": "
|
|
601
|
-
"detail": "
|
|
602
|
-
"insertText": "
|
|
694
|
+
"label": "CURRENT_TIME",
|
|
695
|
+
"detail": "CURRENT_TIME -> Datetime",
|
|
696
|
+
"insertText": "CURRENT_TIME",
|
|
603
697
|
"insertTextMode": 2,
|
|
604
698
|
"insertTextFormat": 2,
|
|
605
699
|
"kind": 3,
|
|
606
700
|
"documentation": {
|
|
607
701
|
"kind": "markdown",
|
|
608
|
-
"value": "
|
|
702
|
+
"value": "傳回當前 UTC 日期和時間 (以小時、分鐘和秒為單位)。\n\n**返回值**: Datetime"
|
|
609
703
|
}
|
|
610
704
|
},
|
|
611
705
|
"parametersInfo": {
|
|
@@ -615,143 +709,49 @@
|
|
|
615
709
|
},
|
|
616
710
|
{
|
|
617
711
|
"type": "function",
|
|
618
|
-
"name": "
|
|
619
|
-
"bundle": "
|
|
620
|
-
"description": "
|
|
621
|
-
"examples": "\n#####
|
|
712
|
+
"name": "current_timestamp",
|
|
713
|
+
"bundle": "date",
|
|
714
|
+
"description": "傳回當前 UTC 日期和時間 (以小時、分鐘、秒和毫秒為單位)。",
|
|
715
|
+
"examples": "\n##### 範例\n\n傳回當前 UTC 日期和時間 (以小時、分鐘、秒和毫秒為單位)。\n\n```sql\nCURRENT_TIMESTAMP\n```\n\n",
|
|
622
716
|
"completion": {
|
|
623
|
-
"label": "
|
|
624
|
-
"detail": "
|
|
625
|
-
"insertText": "
|
|
717
|
+
"label": "CURRENT_TIMESTAMP",
|
|
718
|
+
"detail": "CURRENT_TIMESTAMP -> Datetime",
|
|
719
|
+
"insertText": "CURRENT_TIMESTAMP",
|
|
626
720
|
"insertTextMode": 2,
|
|
627
721
|
"insertTextFormat": 2,
|
|
628
722
|
"kind": 3,
|
|
629
723
|
"documentation": {
|
|
630
724
|
"kind": "markdown",
|
|
631
|
-
"value": "
|
|
725
|
+
"value": "傳回當前 UTC 日期和時間 (以小時、分鐘、秒和毫秒為單位)。\n\n**返回值**: Datetime"
|
|
632
726
|
}
|
|
633
727
|
},
|
|
634
728
|
"parametersInfo": {
|
|
635
|
-
"min":
|
|
636
|
-
"max":
|
|
729
|
+
"min": 0,
|
|
730
|
+
"max": 0
|
|
637
731
|
}
|
|
638
732
|
},
|
|
639
733
|
{
|
|
640
734
|
"type": "function",
|
|
641
|
-
"name": "
|
|
642
|
-
"bundle": "
|
|
643
|
-
"description": "
|
|
644
|
-
"examples": "\n#####
|
|
735
|
+
"name": "extract",
|
|
736
|
+
"bundle": "date",
|
|
737
|
+
"description": "傳回日期時間的單一部分,例如,年、月、日、小時、分或秒。",
|
|
738
|
+
"examples": "\n##### 範例\n\n傳回 12\n\n```sql\nEXTRACT(MONTH FROM DATE '2016-12-21')\n```\n\n傳回 21\n\n```sql\nEXTRACT(DAY FROM TIMESTAMP '2016-12-21 12:00:00')\n```\n\n傳回 30\n\n```sql\nEXTRACT(SECOND FROM TIME '10:50:30')\n```\n\n",
|
|
645
739
|
"completion": {
|
|
646
|
-
"label": "
|
|
647
|
-
"detail": "
|
|
648
|
-
"insertText": "
|
|
740
|
+
"label": "EXTRACT",
|
|
741
|
+
"detail": "EXTRACT(part, datetime) -> Number",
|
|
742
|
+
"insertText": "EXTRACT(${1:part_} FROM ${2:datetime_})$0",
|
|
649
743
|
"insertTextMode": 2,
|
|
650
744
|
"insertTextFormat": 2,
|
|
651
745
|
"kind": 3,
|
|
652
746
|
"documentation": {
|
|
653
747
|
"kind": "markdown",
|
|
654
|
-
"value": "
|
|
748
|
+
"value": "傳回日期時間的單一部分,例如,年、月、日、小時、分或秒。\n\n**參數**\n\n- **part**: 要從日期中擷取的組件。 可能值: `YEAR`、`MONTH`、`DAY`、`HOUR`、`MINUTE`、`SECOND`。\n- **datetime**: 要從中擷取組件的日期。\n\n**返回值**: Number"
|
|
655
749
|
}
|
|
656
750
|
},
|
|
657
751
|
"parametersInfo": {
|
|
658
752
|
"min": 2,
|
|
659
753
|
"max": 2
|
|
660
754
|
}
|
|
661
|
-
},
|
|
662
|
-
[
|
|
663
|
-
{
|
|
664
|
-
"type": "function",
|
|
665
|
-
"name": "substring",
|
|
666
|
-
"bundle": "string",
|
|
667
|
-
"description": "試_Returns a subset of characters in a text string from a starting point to the specified string length____________________________________________________驗.",
|
|
668
|
-
"examples": "\n##### 試_Example_______________驗\n\n試_Returns 'City'_______________驗\n\n```sql\nSUBSTRING('New York City', 10, 4)\n```\n\n",
|
|
669
|
-
"completion": {
|
|
670
|
-
"label": "SUBSTRING",
|
|
671
|
-
"detail": "SUBSTRING(string, start, length) -> String",
|
|
672
|
-
"insertText": "SUBSTRING(${1:string_}, ${2:start_}, ${3:length_})$0",
|
|
673
|
-
"insertTextMode": 2,
|
|
674
|
-
"insertTextFormat": 2,
|
|
675
|
-
"kind": 3,
|
|
676
|
-
"documentation": {
|
|
677
|
-
"kind": "markdown",
|
|
678
|
-
"value": "試_Returns a subset of characters in a text string from a starting point to the specified string length____________________________________________________驗.\n\n**試_Parameters_____________________驗**\n\n- **string**: 試_The text string to extract from_________________驗.\n- **start**: 試_The integer value that specifies where the returned characters will start______________________________________驗.\n- **length**: 試_The number of characters to extract___________________驗.\n\n**試_Return value_____________驗**: String"
|
|
679
|
-
}
|
|
680
|
-
},
|
|
681
|
-
"parametersInfo": {
|
|
682
|
-
"min": 3,
|
|
683
|
-
"max": 3
|
|
684
|
-
}
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
"type": "function",
|
|
688
|
-
"name": "substring",
|
|
689
|
-
"bundle": "string",
|
|
690
|
-
"description": "試_Returns a subset of characters in a text string from a starting point to the specified string length____________________________________________________驗.",
|
|
691
|
-
"examples": "\n##### 試_Examples_________________驗\n\n試_Returns 'City'_______________驗\n\n```sql\nSUBSTRING('New York City' FROM 10 FOR 4)\n```\n\n試_Returns 'New York'___________________驗\n\n```sql\nSUBSTRING('New York City' FROM 1 FOR 8)\n```\n\n",
|
|
692
|
-
"completion": {
|
|
693
|
-
"label": "SUBSTRING",
|
|
694
|
-
"detail": "SUBSTRING(string, start, length) -> String",
|
|
695
|
-
"insertText": "SUBSTRING(${1:string_} FROM ${2:start_} FOR ${3:length_})$0",
|
|
696
|
-
"insertTextMode": 2,
|
|
697
|
-
"insertTextFormat": 2,
|
|
698
|
-
"kind": 3,
|
|
699
|
-
"documentation": {
|
|
700
|
-
"kind": "markdown",
|
|
701
|
-
"value": "試_Returns a subset of characters in a text string from a starting point to the specified string length____________________________________________________驗.\n\n**試_Parameters_____________________驗**\n\n- **string**: 試_The text string to extract from_________________驗.\n- **start**: 試_The integer value that specifies where the returned characters will start______________________________________驗.\n- **length**: 試_The number of characters to extract___________________驗.\n\n**試_Return value_____________驗**: String"
|
|
702
|
-
}
|
|
703
|
-
},
|
|
704
|
-
"parametersInfo": {
|
|
705
|
-
"min": 3,
|
|
706
|
-
"max": 3
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
],
|
|
710
|
-
{
|
|
711
|
-
"type": "function",
|
|
712
|
-
"name": "trim",
|
|
713
|
-
"bundle": "string",
|
|
714
|
-
"description": "試_Returns a text string where all of the leading and/or trailing spaces or other specified characters have been removed. LEADING will trim the leading side of the text string, TRAILING will trim the trailing side of the text string, while BOTH will trim both sides of the text string______________________________________________________________________________________________________________________________________________驗.",
|
|
715
|
-
"examples": "\n##### 試_Examples_________________驗\n\n試_Returns 'myFunc'_________________驗\n\n```sql\nTRIM(LEADING 't' FROM 'tMyFunc')\n```\n\n試_Returns ' hello world'________________________驗\n\n```sql\nTRIM(TRAILING ' ' FROM ' hello world ')\n```\n\n試_Returns 'hello world'______________________驗\n\n```sql\nTRIM(BOTH ' ' FROM ' hello world ')\n```\n\n",
|
|
716
|
-
"completion": {
|
|
717
|
-
"label": "TRIM",
|
|
718
|
-
"detail": "TRIM(side, character, string) -> String",
|
|
719
|
-
"insertText": "TRIM(${1:side_} ${2:character_} FROM ${3:string_})$0",
|
|
720
|
-
"insertTextMode": 2,
|
|
721
|
-
"insertTextFormat": 2,
|
|
722
|
-
"kind": 3,
|
|
723
|
-
"documentation": {
|
|
724
|
-
"kind": "markdown",
|
|
725
|
-
"value": "試_Returns a text string where all of the leading and/or trailing spaces or other specified characters have been removed. LEADING will trim the leading side of the text string, TRAILING will trim the trailing side of the text string, while BOTH will trim both sides of the text string______________________________________________________________________________________________________________________________________________驗.\n\n**試_Parameters_____________________驗**\n\n- **side**: 試_The side of the text string where the space(s) or character(s) will be removed. Possible values: `LEADING`, `TRAILING`, `BOTH`_________________________________________________________________驗.\n- **character**: 試_The character(s) that will be trimmed from the text string_______________________________驗.\n- **string**: 試_The text string to trim_________________________驗.\n\n**試_Return value_____________驗**: String"
|
|
726
|
-
}
|
|
727
|
-
},
|
|
728
|
-
"parametersInfo": {
|
|
729
|
-
"min": 3,
|
|
730
|
-
"max": 3
|
|
731
|
-
}
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
"type": "function",
|
|
735
|
-
"name": "upper",
|
|
736
|
-
"bundle": "string",
|
|
737
|
-
"description": "試_Converts all characters in the text string to uppercase_____________________________驗.",
|
|
738
|
-
"examples": "\n##### 試_Example_______________驗\n\n試_Returns 'QUICK RED FOX'________________________驗\n\n```sql\nUPPER('quick red fox')\n```\n\n",
|
|
739
|
-
"completion": {
|
|
740
|
-
"label": "UPPER",
|
|
741
|
-
"detail": "UPPER(string) -> String",
|
|
742
|
-
"insertText": "UPPER(${1:string_})$0",
|
|
743
|
-
"insertTextMode": 2,
|
|
744
|
-
"insertTextFormat": 2,
|
|
745
|
-
"kind": 3,
|
|
746
|
-
"documentation": {
|
|
747
|
-
"kind": "markdown",
|
|
748
|
-
"value": "試_Converts all characters in the text string to uppercase_____________________________驗.\n\n**試_Parameter___________________驗**\n\n- **string**: 試_The string to convert to uppercase___________________驗.\n\n**試_Return value_____________驗**: String"
|
|
749
|
-
}
|
|
750
|
-
},
|
|
751
|
-
"parametersInfo": {
|
|
752
|
-
"min": 1,
|
|
753
|
-
"max": 1
|
|
754
|
-
}
|
|
755
755
|
}
|
|
756
756
|
]
|
|
757
757
|
}
|