Skip to content

Commit 004be1c

Browse files
authoredAug 15, 2023
Add missing functions, types and keywords (#24)
1 parent d816d6d commit 004be1c

File tree

3 files changed

+146
-5
lines changed

3 files changed

+146
-5
lines changed
 

‎src/dataTypes.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
export default [
22
"binary",
33
"boolean",
4+
"byte",
5+
"char",
46
"date",
57
"double",
68
"float",
79
"geohash",
810
"int",
11+
"ipv4",
912
"long",
13+
"long128",
1014
"long256",
1115
"short",
1216
"string",

‎src/functions.ts

+137
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,148 @@
11
export default [
2+
"<<",
3+
"<<=",
4+
">>",
5+
">>=",
6+
"VARCHAR",
27
"abs",
8+
"acos",
39
"all_tables",
10+
"and",
11+
"asin",
12+
"atan",
13+
"atan2",
414
"avg",
15+
"base64",
516
"batch",
17+
"between",
18+
"build",
19+
"case",
620
"cast",
21+
"ceil",
22+
"ceiling",
723
"coalesce",
824
"commitLag",
925
"concat",
26+
"cos",
27+
"cot",
1028
"count",
29+
"count_distinct",
30+
"current_database",
31+
"current_schema",
32+
"current_schemas",
33+
"current_user",
34+
"date_trunc",
1135
"dateadd",
1236
"datediff",
1337
"day",
1438
"day_of_week",
1539
"day_of_week_sunday_first",
1640
"days_in_month",
41+
"degrees",
42+
"dump_memory_usage",
43+
"dump_thread_stacks",
44+
"extract",
1745
"first",
46+
"floor",
47+
"flush_query_cache",
1848
"format",
49+
"format_type",
50+
"functions",
51+
"haversine_dist_deg",
1952
"headers",
2053
"hour",
2154
"ifnull",
55+
"ilike",
56+
"in",
57+
"information_schema._pg_expandarray",
58+
"isOrdered",
2259
"is_leap_year",
2360
"isnull",
61+
"keywords",
2462
"ksum",
2563
"lag",
2664
"last",
2765
"lcase",
66+
"left",
2867
"len",
2968
"length",
69+
"like",
70+
"list",
71+
"ln",
72+
"log",
3073
"long_sequence",
74+
"lower",
75+
"lpad",
76+
"ltrim",
3177
"make_geohash",
3278
"max",
3379
"maxUncommittedRows",
80+
"memory_metrics",
3481
"micros",
3582
"mid",
3683
"millis",
3784
"min",
3885
"minute",
3986
"month",
87+
"netmask",
88+
"not",
4089
"now",
4190
"nsum",
91+
"nullif",
4292
"nvl",
93+
"or",
94+
"pg_advisory_unlock_all",
95+
"pg_attrdef",
96+
"pg_attribute",
97+
"pg_catalog.age",
98+
"pg_catalog.current_database",
99+
"pg_catalog.current_schema",
100+
"pg_catalog.current_schemas",
101+
"pg_catalog.pg_attrdef",
102+
"pg_catalog.pg_attribute",
103+
"pg_catalog.pg_class",
104+
"pg_catalog.pg_database",
105+
"pg_catalog.pg_description",
106+
"pg_catalog.pg_get_expr",
107+
"pg_catalog.pg_get_keywords",
108+
"pg_catalog.pg_get_partkeydef",
109+
"pg_catalog.pg_get_userbyid",
110+
"pg_catalog.pg_index",
111+
"pg_catalog.pg_inherits",
112+
"pg_catalog.pg_is_in_recovery",
113+
"pg_catalog.pg_locks",
114+
"pg_catalog.pg_namespace",
115+
"pg_catalog.pg_roles",
116+
"pg_catalog.pg_shdescription",
117+
"pg_catalog.pg_table_is_visible",
118+
"pg_catalog.pg_type",
119+
"pg_catalog.txid_current",
120+
"pg_catalog.version",
121+
"pg_class",
122+
"pg_database",
123+
"pg_description",
124+
"pg_get_expr",
125+
"pg_get_keywords",
126+
"pg_get_partkeydef",
127+
"pg_index",
128+
"pg_inherits",
129+
"pg_is_in_recovery",
130+
"pg_locks",
131+
"pg_namespace",
132+
"pg_postmaster_start_time",
133+
"pg_proc",
134+
"pg_range",
135+
"pg_roles",
136+
"pg_type",
137+
"pi",
138+
"position",
139+
"power",
140+
"radians",
43141
"rank",
142+
"reader_pool",
143+
"regexp_replace",
144+
"replace",
145+
"right",
44146
"rnd_bin",
45147
"rnd_boolean",
46148
"rnd_byte",
@@ -51,6 +153,7 @@ export default [
51153
"rnd_geohash",
52154
"rnd_int",
53155
"rnd_ipv4",
156+
"rnd_log",
54157
"rnd_long",
55158
"rnd_long256",
56159
"rnd_short",
@@ -62,20 +165,54 @@ export default [
62165
"round_down",
63166
"round_half_even",
64167
"round_up",
168+
"row_number",
169+
"rpad",
170+
"rtrim",
65171
"second",
172+
"session_user",
173+
"simulate_crash",
174+
"sin",
175+
"size_pretty",
176+
"split_part",
177+
"sqrt",
178+
"starts_with",
179+
"stddev_samp",
180+
"string_agg",
181+
"strpos",
182+
"substring",
66183
"sum",
184+
"switch",
67185
"sysdate",
68186
"systimestamp",
69187
"table_columns",
188+
"table_partitions",
189+
"table_writer_metrics",
190+
"tables",
191+
"tan",
70192
"timestamp_ceil",
71193
"timestamp_floor",
72194
"timestamp_sequence",
195+
"timestamp_shuffle",
196+
"to_char",
73197
"to_date",
198+
"to_long128",
199+
"to_lowercase",
200+
"to_pg_date",
74201
"to_str",
75202
"to_timestamp",
76203
"to_timezone",
204+
"to_uppercase",
77205
"to_utc",
206+
"to_uuid",
207+
"touch",
208+
"trim",
209+
"txid_current",
210+
"typeOf",
78211
"ucase",
212+
"upper",
213+
"version",
214+
"wal_tables",
215+
"week_of_year",
79216
"within",
80217
"year",
81218
]

‎src/keywords.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default [
1818
"cast",
1919
"column",
2020
"columns",
21+
"complete",
2122
"copy",
2223
"create",
2324
"cross",
@@ -70,6 +71,8 @@ export default [
7071
"over",
7172
"param",
7273
"partition",
74+
"partitions",
75+
"prepare",
7376
"primary",
7477
"references",
7578
"rename",
@@ -79,7 +82,9 @@ export default [
7982
"select",
8083
"set",
8184
"show",
85+
"snapshot",
8286
"splice",
87+
"squash",
8388
"system",
8489
"table",
8590
"tables",
@@ -98,9 +103,4 @@ export default [
98103
"with",
99104
"writer",
100105
"zone",
101-
"snapshot",
102-
"prepare",
103-
"complete",
104-
"squash",
105-
"partitions",
106106
]

0 commit comments

Comments
 (0)
Failed to load comments.