@@ -35,10 +35,7 @@ export const keywords = flatKeywordList({
35
35
'BEFORE' ,
36
36
'BEGIN' ,
37
37
'BETWEEN' , // (cannot be function or type)
38
- 'BIGINT' , // (cannot be function or type)
39
38
'BINARY' , // reserved (can be function or type)
40
- 'BIT' , // (cannot be function or type)
41
- 'BOOLEAN' , // (cannot be function or type)
42
39
'BOTH' , // reserved
43
40
'BREADTH' ,
44
41
'BY' ,
@@ -51,8 +48,6 @@ export const keywords = flatKeywordList({
51
48
'CAST' , // reserved
52
49
'CATALOG' ,
53
50
'CHAIN' ,
54
- 'CHAR' , // (cannot be function or type), requires AS
55
- 'CHARACTER' , // (cannot be function or type), requires AS
56
51
'CHARACTERISTICS' ,
57
52
'CHECK' , // reserved
58
53
'CHECKPOINT' ,
@@ -99,7 +94,6 @@ export const keywords = flatKeywordList({
99
94
'DAY' , // requires AS
100
95
'DEALLOCATE' ,
101
96
'DEC' , // (cannot be function or type)
102
- 'DECIMAL' , // (cannot be function or type)
103
97
'DECLARE' ,
104
98
'DEFAULT' , // reserved
105
99
'DEFAULTS' ,
@@ -120,7 +114,6 @@ export const keywords = flatKeywordList({
120
114
'DO' , // reserved
121
115
'DOCUMENT' ,
122
116
'DOMAIN' ,
123
- 'DOUBLE' ,
124
117
'DROP' ,
125
118
'EACH' ,
126
119
'ELSE' , // reserved
@@ -148,7 +141,6 @@ export const keywords = flatKeywordList({
148
141
'FILTER' , // requires AS
149
142
'FINALIZE' ,
150
143
'FIRST' ,
151
- 'FLOAT' , // (cannot be function or type)
152
144
'FOLLOWING' ,
153
145
'FOR' , // reserved, requires AS
154
146
'FORCE' ,
@@ -195,10 +187,7 @@ export const keywords = flatKeywordList({
195
187
'INSENSITIVE' ,
196
188
'INSERT' ,
197
189
'INSTEAD' ,
198
- 'INT' , // (cannot be function or type)
199
- 'INTEGER' , // (cannot be function or type)
200
190
'INTERSECT' , // reserved, requires AS
201
- 'INTERVAL' , // (cannot be function or type)
202
191
'INTO' , // reserved, requires AS
203
192
'INVOKER' ,
204
193
'IS' , // reserved (can be function or type)
@@ -260,7 +249,6 @@ export const keywords = flatKeywordList({
260
249
'NULL' , // reserved
261
250
'NULLIF' , // (cannot be function or type)
262
251
'NULLS' ,
263
- 'NUMERIC' , // (cannot be function or type)
264
252
'OBJECT' ,
265
253
'OF' ,
266
254
'OFF' ,
@@ -295,7 +283,6 @@ export const keywords = flatKeywordList({
295
283
'POLICY' ,
296
284
'POSITION' , // (cannot be function or type)
297
285
'PRECEDING' ,
298
- 'PRECISION' , // (cannot be function or type), requires AS
299
286
'PREPARE' ,
300
287
'PREPARED' ,
301
288
'PRESERVE' ,
@@ -310,7 +297,6 @@ export const keywords = flatKeywordList({
310
297
'QUOTE' ,
311
298
'RANGE' ,
312
299
'READ' ,
313
- 'REAL' , // (cannot be function or type)
314
300
'REASSIGN' ,
315
301
'RECHECK' ,
316
302
'RECURSIVE' ,
@@ -363,7 +349,6 @@ export const keywords = flatKeywordList({
363
349
'SIMILAR' , // reserved (can be function or type)
364
350
'SIMPLE' ,
365
351
'SKIP' ,
366
- 'SMALLINT' , // (cannot be function or type)
367
352
'SNAPSHOT' ,
368
353
'SOME' , // reserved
369
354
'SQL' ,
@@ -391,11 +376,8 @@ export const keywords = flatKeywordList({
391
376
'TEMP' ,
392
377
'TEMPLATE' ,
393
378
'TEMPORARY' ,
394
- 'TEXT' ,
395
379
'THEN' , // reserved
396
380
'TIES' ,
397
- 'TIME' , // (cannot be function or type)
398
- 'TIMESTAMP' , // (cannot be function or type)
399
381
'TO' , // reserved, requires AS
400
382
'TRAILING' , // reserved
401
383
'TRANSACTION' ,
@@ -427,9 +409,7 @@ export const keywords = flatKeywordList({
427
409
'VALIDATOR' ,
428
410
'VALUE' ,
429
411
'VALUES' , // (cannot be function or type)
430
- 'VARCHAR' , // (cannot be function or type)
431
412
'VARIADIC' , // reserved
432
- 'VARYING' , // requires AS
433
413
'VERBOSE' , // reserved (can be function or type)
434
414
'VERSION' ,
435
415
'VIEW' ,
@@ -445,7 +425,6 @@ export const keywords = flatKeywordList({
445
425
'WORK' ,
446
426
'WRAPPER' ,
447
427
'WRITE' ,
448
- 'XML' ,
449
428
'XMLATTRIBUTES' , // (cannot be function or type)
450
429
'XMLCONCAT' , // (cannot be function or type)
451
430
'XMLELEMENT' , // (cannot be function or type)
@@ -459,6 +438,32 @@ export const keywords = flatKeywordList({
459
438
'XMLTABLE' , // (cannot be function or type)
460
439
'YEAR' , // requires AS
461
440
'YES' ,
441
+ ] ,
442
+ // https://www.postgresql.org/docs/current/datatype.html
443
+ datatypes : [
444
+ 'BIGINT' , // (cannot be function or type)
445
+ 'BIT' , // (cannot be function or type)
446
+ 'BOOL' , // (cannot be function or type)
447
+ 'BOOLEAN' , // (cannot be function or type)
448
+ 'CHAR' , // (cannot be function or type), requires AS
449
+ 'CHARACTER' , // (cannot be function or type), requires AS
450
+ 'DECIMAL' , // (cannot be function or type)
451
+ 'DOUBLE' ,
452
+ 'FLOAT' , // (cannot be function or type)
453
+ 'INT' , // (cannot be function or type)
454
+ 'INTEGER' , // (cannot be function or type)
455
+ 'INTERVAL' , // (cannot be function or type)
456
+ 'NUMERIC' , // (cannot be function or type)
457
+ 'PRECISION' , // (cannot be function or type), requires AS
458
+ 'REAL' , // (cannot be function or type)
459
+ 'SMALLINT' , // (cannot be function or type)
460
+ 'TEXT' ,
461
+ 'TIME' , // (cannot be function or type)
462
+ 'TIMESTAMP' , // (cannot be function or type)
463
+ 'TIMESTAMPTZ' , // (cannot be function or type)
464
+ 'VARCHAR' , // (cannot be function or type)
465
+ 'VARYING' , // requires AS
466
+ 'XML' ,
462
467
'ZONE' ,
463
468
] ,
464
469
} ) ;
0 commit comments