@hdnax/sqlingo.js 0.0.5 → 0.1.0

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.
Files changed (243) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.repo.md +1 -2
  3. package/dist/chunk-2YNOERAO.cjs +2 -0
  4. package/dist/chunk-2YNOERAO.cjs.map +1 -0
  5. package/dist/chunk-2Z3O2CFM.cjs +19 -0
  6. package/dist/chunk-2Z3O2CFM.cjs.map +1 -0
  7. package/dist/chunk-4ZMKB6PV.cjs +2 -0
  8. package/dist/chunk-4ZMKB6PV.cjs.map +1 -0
  9. package/dist/chunk-53OWF4GG.js +2 -0
  10. package/dist/chunk-53OWF4GG.js.map +1 -0
  11. package/dist/chunk-C4CLTVOW.cjs +2 -0
  12. package/dist/chunk-C4CLTVOW.cjs.map +1 -0
  13. package/dist/chunk-DOKMTZYO.cjs +4 -0
  14. package/dist/chunk-DOKMTZYO.cjs.map +1 -0
  15. package/dist/chunk-FCGUTI7Y.js +2 -0
  16. package/dist/chunk-FCGUTI7Y.js.map +1 -0
  17. package/dist/chunk-IPCIXWCY.js +2 -0
  18. package/dist/chunk-IPCIXWCY.js.map +1 -0
  19. package/dist/chunk-KCNOE4DZ.js +19 -0
  20. package/dist/chunk-KCNOE4DZ.js.map +1 -0
  21. package/dist/chunk-NRJHX2GZ.js +2 -0
  22. package/dist/chunk-NRJHX2GZ.js.map +1 -0
  23. package/dist/chunk-O2J5RKBN.js +2 -0
  24. package/dist/chunk-O2J5RKBN.js.map +1 -0
  25. package/dist/chunk-PXUASP5I.js +2 -0
  26. package/dist/chunk-PXUASP5I.js.map +1 -0
  27. package/dist/chunk-R7C3ZHVK.cjs +2 -0
  28. package/dist/chunk-R7C3ZHVK.cjs.map +1 -0
  29. package/dist/chunk-UHWHUDLE.cjs +2 -0
  30. package/dist/chunk-UHWHUDLE.cjs.map +1 -0
  31. package/dist/chunk-WRNYJ54A.cjs +2 -0
  32. package/dist/chunk-WRNYJ54A.cjs.map +1 -0
  33. package/dist/chunk-XZQFOICX.cjs +3 -0
  34. package/dist/chunk-XZQFOICX.cjs.map +1 -0
  35. package/dist/chunk-YLOQRUXC.js +2 -0
  36. package/dist/chunk-YLOQRUXC.js.map +1 -0
  37. package/dist/chunk-YSS2WVCM.cjs +2 -0
  38. package/dist/chunk-YSS2WVCM.cjs.map +1 -0
  39. package/dist/chunk-Z5V6VOIN.js +3 -0
  40. package/dist/chunk-Z5V6VOIN.js.map +1 -0
  41. package/dist/chunk-ZBFGQPJR.js +4 -0
  42. package/dist/chunk-ZBFGQPJR.js.map +1 -0
  43. package/dist/dialects/athena.cjs +2 -0
  44. package/dist/dialects/athena.cjs.map +1 -0
  45. package/dist/dialects/athena.d.cts +66 -0
  46. package/dist/dialects/athena.d.ts +66 -0
  47. package/dist/dialects/athena.js +2 -0
  48. package/dist/dialects/athena.js.map +1 -0
  49. package/dist/dialects/bigquery.cjs +3 -0
  50. package/dist/dialects/bigquery.cjs.map +1 -0
  51. package/dist/dialects/bigquery.d.cts +651 -0
  52. package/dist/dialects/bigquery.d.ts +651 -0
  53. package/dist/dialects/bigquery.js +3 -0
  54. package/dist/dialects/bigquery.js.map +1 -0
  55. package/dist/dialects/clickhouse.cjs +2 -0
  56. package/dist/dialects/clickhouse.cjs.map +1 -0
  57. package/dist/dialects/clickhouse.d.cts +634 -0
  58. package/dist/dialects/clickhouse.d.ts +634 -0
  59. package/dist/dialects/clickhouse.js +2 -0
  60. package/dist/dialects/clickhouse.js.map +1 -0
  61. package/dist/dialects/databricks.cjs +2 -0
  62. package/dist/dialects/databricks.cjs.map +1 -0
  63. package/dist/dialects/databricks.d.cts +484 -0
  64. package/dist/dialects/databricks.d.ts +484 -0
  65. package/dist/dialects/databricks.js +2 -0
  66. package/dist/dialects/databricks.js.map +1 -0
  67. package/dist/dialects/doris.cjs +2 -0
  68. package/dist/dialects/doris.cjs.map +1 -0
  69. package/dist/dialects/doris.d.cts +484 -0
  70. package/dist/dialects/doris.d.ts +484 -0
  71. package/dist/dialects/doris.js +2 -0
  72. package/dist/dialects/doris.js.map +1 -0
  73. package/dist/dialects/dremio.cjs +2 -0
  74. package/dist/dialects/dremio.cjs.map +1 -0
  75. package/dist/dialects/dremio.d.cts +522 -0
  76. package/dist/dialects/dremio.d.ts +522 -0
  77. package/dist/dialects/dremio.js +2 -0
  78. package/dist/dialects/dremio.js.map +1 -0
  79. package/dist/dialects/drill.cjs +2 -0
  80. package/dist/dialects/drill.cjs.map +1 -0
  81. package/dist/dialects/drill.d.cts +512 -0
  82. package/dist/dialects/drill.d.ts +512 -0
  83. package/dist/dialects/drill.js +2 -0
  84. package/dist/dialects/drill.js.map +1 -0
  85. package/dist/dialects/druid.cjs +2 -0
  86. package/dist/dialects/druid.cjs.map +1 -0
  87. package/dist/dialects/druid.d.cts +17 -0
  88. package/dist/dialects/druid.d.ts +17 -0
  89. package/dist/dialects/druid.js +2 -0
  90. package/dist/dialects/druid.js.map +1 -0
  91. package/dist/dialects/duckdb.cjs +86 -0
  92. package/dist/dialects/duckdb.cjs.map +1 -0
  93. package/dist/dialects/duckdb.d.cts +756 -0
  94. package/dist/dialects/duckdb.d.ts +756 -0
  95. package/dist/dialects/duckdb.js +86 -0
  96. package/dist/dialects/duckdb.js.map +1 -0
  97. package/dist/dialects/dune.cjs +2 -0
  98. package/dist/dialects/dune.cjs.map +1 -0
  99. package/dist/dialects/dune.d.cts +21 -0
  100. package/dist/dialects/dune.d.ts +21 -0
  101. package/dist/dialects/dune.js +2 -0
  102. package/dist/dialects/dune.js.map +1 -0
  103. package/dist/dialects/exasol.cjs +2 -0
  104. package/dist/dialects/exasol.cjs.map +1 -0
  105. package/dist/dialects/exasol.d.cts +507 -0
  106. package/dist/dialects/exasol.d.ts +507 -0
  107. package/dist/dialects/exasol.js +2 -0
  108. package/dist/dialects/exasol.js.map +1 -0
  109. package/dist/dialects/fabric.cjs +2 -0
  110. package/dist/dialects/fabric.cjs.map +1 -0
  111. package/dist/dialects/fabric.d.cts +463 -0
  112. package/dist/dialects/fabric.d.ts +463 -0
  113. package/dist/dialects/fabric.js +2 -0
  114. package/dist/dialects/fabric.js.map +1 -0
  115. package/dist/dialects/hive.cjs +2 -0
  116. package/dist/dialects/hive.cjs.map +1 -0
  117. package/dist/dialects/hive.d.cts +585 -0
  118. package/dist/dialects/hive.d.ts +585 -0
  119. package/dist/dialects/hive.js +2 -0
  120. package/dist/dialects/hive.js.map +1 -0
  121. package/dist/dialects/materialize.cjs +2 -0
  122. package/dist/dialects/materialize.cjs.map +1 -0
  123. package/dist/dialects/materialize.d.cts +890 -0
  124. package/dist/dialects/materialize.d.ts +890 -0
  125. package/dist/dialects/materialize.js +2 -0
  126. package/dist/dialects/materialize.js.map +1 -0
  127. package/dist/dialects/mysql.cjs +2 -0
  128. package/dist/dialects/mysql.cjs.map +1 -0
  129. package/dist/dialects/mysql.d.cts +292 -0
  130. package/dist/dialects/mysql.d.ts +292 -0
  131. package/dist/dialects/mysql.js +2 -0
  132. package/dist/dialects/mysql.js.map +1 -0
  133. package/dist/dialects/oracle.cjs +2 -0
  134. package/dist/dialects/oracle.cjs.map +1 -0
  135. package/dist/dialects/oracle.d.cts +539 -0
  136. package/dist/dialects/oracle.d.ts +539 -0
  137. package/dist/dialects/oracle.js +2 -0
  138. package/dist/dialects/oracle.js.map +1 -0
  139. package/dist/dialects/postgres.cjs +2 -0
  140. package/dist/dialects/postgres.cjs.map +1 -0
  141. package/dist/dialects/postgres.d.cts +587 -0
  142. package/dist/dialects/postgres.d.ts +587 -0
  143. package/dist/dialects/postgres.js +2 -0
  144. package/dist/dialects/postgres.js.map +1 -0
  145. package/dist/dialects/presto.cjs +2 -0
  146. package/dist/dialects/presto.cjs.map +1 -0
  147. package/dist/dialects/presto.d.cts +173 -0
  148. package/dist/dialects/presto.d.ts +173 -0
  149. package/dist/dialects/presto.js +2 -0
  150. package/dist/dialects/presto.js.map +1 -0
  151. package/dist/dialects/prql.cjs +2 -0
  152. package/dist/dialects/prql.cjs.map +1 -0
  153. package/dist/dialects/prql.d.cts +496 -0
  154. package/dist/dialects/prql.d.ts +496 -0
  155. package/dist/dialects/prql.js +2 -0
  156. package/dist/dialects/prql.js.map +1 -0
  157. package/dist/dialects/redshift.cjs +2 -0
  158. package/dist/dialects/redshift.cjs.map +1 -0
  159. package/dist/dialects/redshift.d.cts +132 -0
  160. package/dist/dialects/redshift.d.ts +132 -0
  161. package/dist/dialects/redshift.js +2 -0
  162. package/dist/dialects/redshift.js.map +1 -0
  163. package/dist/dialects/risingwave.cjs +2 -0
  164. package/dist/dialects/risingwave.cjs.map +1 -0
  165. package/dist/dialects/risingwave.d.cts +478 -0
  166. package/dist/dialects/risingwave.d.ts +478 -0
  167. package/dist/dialects/risingwave.js +2 -0
  168. package/dist/dialects/risingwave.js.map +1 -0
  169. package/dist/dialects/singlestore.cjs +2 -0
  170. package/dist/dialects/singlestore.cjs.map +1 -0
  171. package/dist/dialects/singlestore.d.cts +73 -0
  172. package/dist/dialects/singlestore.d.ts +73 -0
  173. package/dist/dialects/singlestore.js +2 -0
  174. package/dist/dialects/singlestore.js.map +1 -0
  175. package/dist/dialects/snowflake.cjs +3 -0
  176. package/dist/dialects/snowflake.cjs.map +1 -0
  177. package/dist/dialects/snowflake.d.cts +320 -0
  178. package/dist/dialects/snowflake.d.ts +320 -0
  179. package/dist/dialects/snowflake.js +3 -0
  180. package/dist/dialects/snowflake.js.map +1 -0
  181. package/dist/dialects/solr.cjs +2 -0
  182. package/dist/dialects/solr.cjs.map +1 -0
  183. package/dist/dialects/solr.d.cts +458 -0
  184. package/dist/dialects/solr.d.ts +458 -0
  185. package/dist/dialects/solr.js +2 -0
  186. package/dist/dialects/solr.js.map +1 -0
  187. package/dist/dialects/spark.cjs +2 -0
  188. package/dist/dialects/spark.cjs.map +1 -0
  189. package/dist/dialects/spark.d.cts +484 -0
  190. package/dist/dialects/spark.d.ts +484 -0
  191. package/dist/dialects/spark.js +2 -0
  192. package/dist/dialects/spark.js.map +1 -0
  193. package/dist/dialects/spark2.cjs +2 -0
  194. package/dist/dialects/spark2.cjs.map +1 -0
  195. package/dist/dialects/spark2.d.cts +486 -0
  196. package/dist/dialects/spark2.d.ts +486 -0
  197. package/dist/dialects/spark2.js +2 -0
  198. package/dist/dialects/spark2.js.map +1 -0
  199. package/dist/dialects/sqlite.cjs +2 -0
  200. package/dist/dialects/sqlite.cjs.map +1 -0
  201. package/dist/dialects/sqlite.d.cts +510 -0
  202. package/dist/dialects/sqlite.d.ts +510 -0
  203. package/dist/dialects/sqlite.js +2 -0
  204. package/dist/dialects/sqlite.js.map +1 -0
  205. package/dist/dialects/starrocks.cjs +2 -0
  206. package/dist/dialects/starrocks.cjs.map +1 -0
  207. package/dist/dialects/starrocks.d.cts +518 -0
  208. package/dist/dialects/starrocks.d.ts +518 -0
  209. package/dist/dialects/starrocks.js +2 -0
  210. package/dist/dialects/starrocks.js.map +1 -0
  211. package/dist/dialects/tableau.cjs +2 -0
  212. package/dist/dialects/tableau.cjs.map +1 -0
  213. package/dist/dialects/tableau.d.cts +466 -0
  214. package/dist/dialects/tableau.d.ts +466 -0
  215. package/dist/dialects/tableau.js +2 -0
  216. package/dist/dialects/tableau.js.map +1 -0
  217. package/dist/dialects/teradata.cjs +2 -0
  218. package/dist/dialects/teradata.cjs.map +1 -0
  219. package/dist/dialects/teradata.d.cts +539 -0
  220. package/dist/dialects/teradata.d.ts +539 -0
  221. package/dist/dialects/teradata.js +2 -0
  222. package/dist/dialects/teradata.js.map +1 -0
  223. package/dist/dialects/trino.cjs +2 -0
  224. package/dist/dialects/trino.cjs.map +1 -0
  225. package/dist/dialects/trino.d.cts +465 -0
  226. package/dist/dialects/trino.d.ts +465 -0
  227. package/dist/dialects/trino.js +2 -0
  228. package/dist/dialects/trino.js.map +1 -0
  229. package/dist/dialects/tsql.cjs +2 -0
  230. package/dist/dialects/tsql.cjs.map +1 -0
  231. package/dist/dialects/tsql.d.cts +703 -0
  232. package/dist/dialects/tsql.d.ts +703 -0
  233. package/dist/dialects/tsql.js +2 -0
  234. package/dist/dialects/tsql.js.map +1 -0
  235. package/dist/index.cjs +5 -25
  236. package/dist/index.cjs.map +1 -1
  237. package/dist/index.d.cts +3 -14178
  238. package/dist/index.d.ts +3 -14178
  239. package/dist/index.js +5 -25
  240. package/dist/index.js.map +1 -1
  241. package/dist/tokens-VcMD09XM.d.cts +15805 -0
  242. package/dist/tokens-VcMD09XM.d.ts +15805 -0
  243. package/package.json +171 -5
@@ -0,0 +1,587 @@
1
+ import { c as Dialect, d as Dialects, aH as NullOrdering, m as Tokenizer, _ as TokenPair, l as TokenType, i as Parser, E as Expression, cX as PowExpr, cY as InOutColumnConstraintExpr, cZ as JsonbExistsExpr, bg as GeneratedAsIdentityColumnConstraintExpr, cW as ComputedColumnConstraintExpr, c_ as GeneratedAsRowColumnConstraintExpr, aJ as IdentifierExpr, G as Generator, $ as DataTypeExprKind, c$ as LateralExpr, d0 as JsonbExtractExpr, d1 as JsonbExtractScalarExpr, cT as ExplodeExpr, aj as PropertiesLocation, d2 as SchemaCommentPropertyExpr, d3 as CommentColumnConstraintExpr, bf as ColumnDefExpr, ag as UnnestExpr, aq as BracketExpr, d4 as MatchAgainstExpr, cR as AlterSetExpr, b5 as DataTypeExpr, at as CastExpr, cS as ArrayExpr, cL as IsAsciiExpr, cc as IgnoreNullsExpr, cd as RespectNullsExpr, d5 as CurrentSchemaExpr, cM as IntervalExpr, b6 as PlaceholderExpr, aw as ArrayContainsExpr } from '../tokens-VcMD09XM.cjs';
2
+
3
+ declare class PostgresTokenizer extends Tokenizer {
4
+ static get BIT_STRINGS(): TokenPair[];
5
+ static get HEX_STRINGS(): TokenPair[];
6
+ static get BYTE_STRINGS(): TokenPair[];
7
+ static get BYTE_STRING_ESCAPES(): string[];
8
+ static get HEREDOC_STRINGS(): TokenPair[];
9
+ static HEREDOC_TAG_IS_IDENTIFIER: boolean;
10
+ static HEREDOC_STRING_ALTERNATIVE: TokenType;
11
+ static get ORIGINAL_KEYWORDS(): Record<string, TokenType>;
12
+ static get SINGLE_TOKENS(): Record<string, TokenType>;
13
+ static get VAR_SINGLE_TOKENS(): Set<string>;
14
+ }
15
+ declare class PostgresParser extends Parser {
16
+ static get NO_PAREN_FUNCTIONS(): {
17
+ lParen?: typeof Expression | undefined;
18
+ rParen?: typeof Expression | undefined;
19
+ lBracket?: typeof Expression | undefined;
20
+ rBracket?: typeof Expression | undefined;
21
+ lBrace?: typeof Expression | undefined;
22
+ rBrace?: typeof Expression | undefined;
23
+ comma?: typeof Expression | undefined;
24
+ dot?: typeof Expression | undefined;
25
+ dash?: typeof Expression | undefined;
26
+ plus?: typeof Expression | undefined;
27
+ colon?: typeof Expression | undefined;
28
+ dotcolon?: typeof Expression | undefined;
29
+ dcolon?: typeof Expression | undefined;
30
+ dcolondollar?: typeof Expression | undefined;
31
+ dcolonpercent?: typeof Expression | undefined;
32
+ dcolonqmark?: typeof Expression | undefined;
33
+ dqmark?: typeof Expression | undefined;
34
+ semicolon?: typeof Expression | undefined;
35
+ star?: typeof Expression | undefined;
36
+ backslash?: typeof Expression | undefined;
37
+ slash?: typeof Expression | undefined;
38
+ lt?: typeof Expression | undefined;
39
+ lte?: typeof Expression | undefined;
40
+ gt?: typeof Expression | undefined;
41
+ gte?: typeof Expression | undefined;
42
+ not?: typeof Expression | undefined;
43
+ eq?: typeof Expression | undefined;
44
+ neq?: typeof Expression | undefined;
45
+ nullsafeEq?: typeof Expression | undefined;
46
+ colonEq?: typeof Expression | undefined;
47
+ colonGt?: typeof Expression | undefined;
48
+ ncolonGt?: typeof Expression | undefined;
49
+ and?: typeof Expression | undefined;
50
+ or?: typeof Expression | undefined;
51
+ amp?: typeof Expression | undefined;
52
+ dpipe?: typeof Expression | undefined;
53
+ pipeGt?: typeof Expression | undefined;
54
+ pipe?: typeof Expression | undefined;
55
+ pipeSlash?: typeof Expression | undefined;
56
+ dpipeSlash?: typeof Expression | undefined;
57
+ caret?: typeof Expression | undefined;
58
+ caretAt?: typeof Expression | undefined;
59
+ tilde?: typeof Expression | undefined;
60
+ arrow?: typeof Expression | undefined;
61
+ darrow?: typeof Expression | undefined;
62
+ farrow?: typeof Expression | undefined;
63
+ hash?: typeof Expression | undefined;
64
+ hashArrow?: typeof Expression | undefined;
65
+ dhashArrow?: typeof Expression | undefined;
66
+ lrArrow?: typeof Expression | undefined;
67
+ dat?: typeof Expression | undefined;
68
+ ltAt?: typeof Expression | undefined;
69
+ atGt?: typeof Expression | undefined;
70
+ dollar?: typeof Expression | undefined;
71
+ parameter?: typeof Expression | undefined;
72
+ session?: typeof Expression | undefined;
73
+ sessionParameter?: typeof Expression | undefined;
74
+ sessionUser?: typeof Expression | undefined;
75
+ damp?: typeof Expression | undefined;
76
+ ampLt?: typeof Expression | undefined;
77
+ ampGt?: typeof Expression | undefined;
78
+ adjacent?: typeof Expression | undefined;
79
+ xor?: typeof Expression | undefined;
80
+ dstar?: typeof Expression | undefined;
81
+ qmarkAmp?: typeof Expression | undefined;
82
+ qmarkPipe?: typeof Expression | undefined;
83
+ hashDash?: typeof Expression | undefined;
84
+ exclamation?: typeof Expression | undefined;
85
+ uriStart?: typeof Expression | undefined;
86
+ blockStart?: typeof Expression | undefined;
87
+ blockEnd?: typeof Expression | undefined;
88
+ space?: typeof Expression | undefined;
89
+ break?: typeof Expression | undefined;
90
+ string?: typeof Expression | undefined;
91
+ number?: typeof Expression | undefined;
92
+ identifier?: typeof Expression | undefined;
93
+ database?: typeof Expression | undefined;
94
+ column?: typeof Expression | undefined;
95
+ columnDef?: typeof Expression | undefined;
96
+ schema?: typeof Expression | undefined;
97
+ table?: typeof Expression | undefined;
98
+ warehouse?: typeof Expression | undefined;
99
+ stage?: typeof Expression | undefined;
100
+ streamlit?: typeof Expression | undefined;
101
+ var?: typeof Expression | undefined;
102
+ bitString?: typeof Expression | undefined;
103
+ hexString?: typeof Expression | undefined;
104
+ byteString?: typeof Expression | undefined;
105
+ nationalString?: typeof Expression | undefined;
106
+ rawString?: typeof Expression | undefined;
107
+ heredocString?: typeof Expression | undefined;
108
+ unicodeString?: typeof Expression | undefined;
109
+ bit?: typeof Expression | undefined;
110
+ boolean?: typeof Expression | undefined;
111
+ tinyint?: typeof Expression | undefined;
112
+ utinyint?: typeof Expression | undefined;
113
+ smallint?: typeof Expression | undefined;
114
+ usmallint?: typeof Expression | undefined;
115
+ mediumint?: typeof Expression | undefined;
116
+ umediumint?: typeof Expression | undefined;
117
+ int?: typeof Expression | undefined;
118
+ uint?: typeof Expression | undefined;
119
+ bigint?: typeof Expression | undefined;
120
+ ubigint?: typeof Expression | undefined;
121
+ bignum?: typeof Expression | undefined;
122
+ int128?: typeof Expression | undefined;
123
+ uint128?: typeof Expression | undefined;
124
+ int256?: typeof Expression | undefined;
125
+ uint256?: typeof Expression | undefined;
126
+ float?: typeof Expression | undefined;
127
+ double?: typeof Expression | undefined;
128
+ udouble?: typeof Expression | undefined;
129
+ decimal?: typeof Expression | undefined;
130
+ decimal32?: typeof Expression | undefined;
131
+ decimal64?: typeof Expression | undefined;
132
+ decimal128?: typeof Expression | undefined;
133
+ decimal256?: typeof Expression | undefined;
134
+ decfloat?: typeof Expression | undefined;
135
+ udecimal?: typeof Expression | undefined;
136
+ bigdecimal?: typeof Expression | undefined;
137
+ char?: typeof Expression | undefined;
138
+ nchar?: typeof Expression | undefined;
139
+ varchar?: typeof Expression | undefined;
140
+ nvarchar?: typeof Expression | undefined;
141
+ bpchar?: typeof Expression | undefined;
142
+ text?: typeof Expression | undefined;
143
+ mediumtext?: typeof Expression | undefined;
144
+ longtext?: typeof Expression | undefined;
145
+ blob?: typeof Expression | undefined;
146
+ mediumblob?: typeof Expression | undefined;
147
+ longblob?: typeof Expression | undefined;
148
+ tinyblob?: typeof Expression | undefined;
149
+ tinytext?: typeof Expression | undefined;
150
+ name?: typeof Expression | undefined;
151
+ binary?: typeof Expression | undefined;
152
+ varbinary?: typeof Expression | undefined;
153
+ json?: typeof Expression | undefined;
154
+ jsonb?: typeof Expression | undefined;
155
+ time?: typeof Expression | undefined;
156
+ timetz?: typeof Expression | undefined;
157
+ timeNs?: typeof Expression | undefined;
158
+ timestamp?: typeof Expression | undefined;
159
+ timestamptz?: typeof Expression | undefined;
160
+ timestampltz?: typeof Expression | undefined;
161
+ timestampntz?: typeof Expression | undefined;
162
+ timestampS?: typeof Expression | undefined;
163
+ timestampMs?: typeof Expression | undefined;
164
+ timestampNs?: typeof Expression | undefined;
165
+ datetime?: typeof Expression | undefined;
166
+ datetime2?: typeof Expression | undefined;
167
+ datetime64?: typeof Expression | undefined;
168
+ smalldatetime?: typeof Expression | undefined;
169
+ date?: typeof Expression | undefined;
170
+ date32?: typeof Expression | undefined;
171
+ int4range?: typeof Expression | undefined;
172
+ int4multirange?: typeof Expression | undefined;
173
+ int8range?: typeof Expression | undefined;
174
+ int8multirange?: typeof Expression | undefined;
175
+ numrange?: typeof Expression | undefined;
176
+ nummultirange?: typeof Expression | undefined;
177
+ tsrange?: typeof Expression | undefined;
178
+ tsmultirange?: typeof Expression | undefined;
179
+ tstzrange?: typeof Expression | undefined;
180
+ tstzmultirange?: typeof Expression | undefined;
181
+ daterange?: typeof Expression | undefined;
182
+ datemultirange?: typeof Expression | undefined;
183
+ uuid?: typeof Expression | undefined;
184
+ geography?: typeof Expression | undefined;
185
+ geographypoint?: typeof Expression | undefined;
186
+ nullable?: typeof Expression | undefined;
187
+ geometry?: typeof Expression | undefined;
188
+ point?: typeof Expression | undefined;
189
+ ring?: typeof Expression | undefined;
190
+ linestring?: typeof Expression | undefined;
191
+ localtime?: typeof Expression | undefined;
192
+ localtimestamp?: typeof Expression | undefined;
193
+ systimestamp?: typeof Expression | undefined;
194
+ multilinestring?: typeof Expression | undefined;
195
+ polygon?: typeof Expression | undefined;
196
+ multipolygon?: typeof Expression | undefined;
197
+ hllsketch?: typeof Expression | undefined;
198
+ hstore?: typeof Expression | undefined;
199
+ super?: typeof Expression | undefined;
200
+ serial?: typeof Expression | undefined;
201
+ smallserial?: typeof Expression | undefined;
202
+ bigserial?: typeof Expression | undefined;
203
+ xml?: typeof Expression | undefined;
204
+ year?: typeof Expression | undefined;
205
+ userdefined?: typeof Expression | undefined;
206
+ money?: typeof Expression | undefined;
207
+ smallmoney?: typeof Expression | undefined;
208
+ rowversion?: typeof Expression | undefined;
209
+ image?: typeof Expression | undefined;
210
+ variant?: typeof Expression | undefined;
211
+ object?: typeof Expression | undefined;
212
+ inet?: typeof Expression | undefined;
213
+ ipaddress?: typeof Expression | undefined;
214
+ ipprefix?: typeof Expression | undefined;
215
+ ipv4?: typeof Expression | undefined;
216
+ ipv6?: typeof Expression | undefined;
217
+ enum?: typeof Expression | undefined;
218
+ enum8?: typeof Expression | undefined;
219
+ enum16?: typeof Expression | undefined;
220
+ fixedstring?: typeof Expression | undefined;
221
+ lowcardinality?: typeof Expression | undefined;
222
+ nested?: typeof Expression | undefined;
223
+ aggregatefunction?: typeof Expression | undefined;
224
+ simpleaggregatefunction?: typeof Expression | undefined;
225
+ tdigest?: typeof Expression | undefined;
226
+ unknown?: typeof Expression | undefined;
227
+ vector?: typeof Expression | undefined;
228
+ dynamic?: typeof Expression | undefined;
229
+ void?: typeof Expression | undefined;
230
+ alias?: typeof Expression | undefined;
231
+ alter?: typeof Expression | undefined;
232
+ all?: typeof Expression | undefined;
233
+ anti?: typeof Expression | undefined;
234
+ any?: typeof Expression | undefined;
235
+ apply?: typeof Expression | undefined;
236
+ array?: typeof Expression | undefined;
237
+ asc?: typeof Expression | undefined;
238
+ asof?: typeof Expression | undefined;
239
+ attach?: typeof Expression | undefined;
240
+ autoIncrement?: typeof Expression | undefined;
241
+ begin?: typeof Expression | undefined;
242
+ between?: typeof Expression | undefined;
243
+ bulkCollectInto?: typeof Expression | undefined;
244
+ cache?: typeof Expression | undefined;
245
+ case?: typeof Expression | undefined;
246
+ characterSet?: typeof Expression | undefined;
247
+ clusterBy?: typeof Expression | undefined;
248
+ collate?: typeof Expression | undefined;
249
+ command?: typeof Expression | undefined;
250
+ comment?: typeof Expression | undefined;
251
+ commit?: typeof Expression | undefined;
252
+ connectBy?: typeof Expression | undefined;
253
+ constraint?: typeof Expression | undefined;
254
+ copy?: typeof Expression | undefined;
255
+ create?: typeof Expression | undefined;
256
+ cross?: typeof Expression | undefined;
257
+ cube?: typeof Expression | undefined;
258
+ currentDate?: typeof Expression | undefined;
259
+ currentDatetime?: typeof Expression | undefined;
260
+ currentSchema?: typeof Expression | undefined;
261
+ currentTime?: typeof Expression | undefined;
262
+ currentTimestamp?: typeof Expression | undefined;
263
+ currentUser?: typeof Expression | undefined;
264
+ currentRole?: typeof Expression | undefined;
265
+ currentCatalog?: typeof Expression | undefined;
266
+ declare?: typeof Expression | undefined;
267
+ default?: typeof Expression | undefined;
268
+ delete?: typeof Expression | undefined;
269
+ desc?: typeof Expression | undefined;
270
+ describe?: typeof Expression | undefined;
271
+ detach?: typeof Expression | undefined;
272
+ dictionary?: typeof Expression | undefined;
273
+ distinct?: typeof Expression | undefined;
274
+ distributeBy?: typeof Expression | undefined;
275
+ div?: typeof Expression | undefined;
276
+ drop?: typeof Expression | undefined;
277
+ else?: typeof Expression | undefined;
278
+ end?: typeof Expression | undefined;
279
+ escape?: typeof Expression | undefined;
280
+ except?: typeof Expression | undefined;
281
+ execute?: typeof Expression | undefined;
282
+ exists?: typeof Expression | undefined;
283
+ false?: typeof Expression | undefined;
284
+ fetch?: typeof Expression | undefined;
285
+ file?: typeof Expression | undefined;
286
+ fileFormat?: typeof Expression | undefined;
287
+ filter?: typeof Expression | undefined;
288
+ final?: typeof Expression | undefined;
289
+ first?: typeof Expression | undefined;
290
+ for?: typeof Expression | undefined;
291
+ force?: typeof Expression | undefined;
292
+ foreignKey?: typeof Expression | undefined;
293
+ format?: typeof Expression | undefined;
294
+ from?: typeof Expression | undefined;
295
+ full?: typeof Expression | undefined;
296
+ function?: typeof Expression | undefined;
297
+ get?: typeof Expression | undefined;
298
+ glob?: typeof Expression | undefined;
299
+ global?: typeof Expression | undefined;
300
+ grant?: typeof Expression | undefined;
301
+ groupBy?: typeof Expression | undefined;
302
+ groupingSets?: typeof Expression | undefined;
303
+ having?: typeof Expression | undefined;
304
+ hint?: typeof Expression | undefined;
305
+ ignore?: typeof Expression | undefined;
306
+ ilike?: typeof Expression | undefined;
307
+ in?: typeof Expression | undefined;
308
+ index?: typeof Expression | undefined;
309
+ indexedBy?: typeof Expression | undefined;
310
+ inner?: typeof Expression | undefined;
311
+ insert?: typeof Expression | undefined;
312
+ install?: typeof Expression | undefined;
313
+ intersect?: typeof Expression | undefined;
314
+ interval?: typeof Expression | undefined;
315
+ into?: typeof Expression | undefined;
316
+ introducer?: typeof Expression | undefined;
317
+ irlike?: typeof Expression | undefined;
318
+ is?: typeof Expression | undefined;
319
+ isnull?: typeof Expression | undefined;
320
+ join?: typeof Expression | undefined;
321
+ joinMarker?: typeof Expression | undefined;
322
+ keep?: typeof Expression | undefined;
323
+ key?: typeof Expression | undefined;
324
+ kill?: typeof Expression | undefined;
325
+ language?: typeof Expression | undefined;
326
+ lateral?: typeof Expression | undefined;
327
+ left?: typeof Expression | undefined;
328
+ like?: typeof Expression | undefined;
329
+ limit?: typeof Expression | undefined;
330
+ list?: typeof Expression | undefined;
331
+ load?: typeof Expression | undefined;
332
+ lock?: typeof Expression | undefined;
333
+ map?: typeof Expression | undefined;
334
+ match?: typeof Expression | undefined;
335
+ matchCondition?: typeof Expression | undefined;
336
+ matchRecognize?: typeof Expression | undefined;
337
+ memberOf?: typeof Expression | undefined;
338
+ merge?: typeof Expression | undefined;
339
+ mod?: typeof Expression | undefined;
340
+ model?: typeof Expression | undefined;
341
+ natural?: typeof Expression | undefined;
342
+ next?: typeof Expression | undefined;
343
+ nothing?: typeof Expression | undefined;
344
+ notnull?: typeof Expression | undefined;
345
+ null?: typeof Expression | undefined;
346
+ objectIdentifier?: typeof Expression | undefined;
347
+ offset?: typeof Expression | undefined;
348
+ on?: typeof Expression | undefined;
349
+ only?: typeof Expression | undefined;
350
+ operator?: typeof Expression | undefined;
351
+ orderBy?: typeof Expression | undefined;
352
+ orderSiblingsBy?: typeof Expression | undefined;
353
+ ordered?: typeof Expression | undefined;
354
+ ordinality?: typeof Expression | undefined;
355
+ out?: typeof Expression | undefined;
356
+ inout?: typeof Expression | undefined;
357
+ outer?: typeof Expression | undefined;
358
+ over?: typeof Expression | undefined;
359
+ overlaps?: typeof Expression | undefined;
360
+ overwrite?: typeof Expression | undefined;
361
+ partition?: typeof Expression | undefined;
362
+ partitionBy?: typeof Expression | undefined;
363
+ percent?: typeof Expression | undefined;
364
+ pivot?: typeof Expression | undefined;
365
+ placeholder?: typeof Expression | undefined;
366
+ positional?: typeof Expression | undefined;
367
+ pragma?: typeof Expression | undefined;
368
+ prewhere?: typeof Expression | undefined;
369
+ primaryKey?: typeof Expression | undefined;
370
+ procedure?: typeof Expression | undefined;
371
+ properties?: typeof Expression | undefined;
372
+ pseudoType?: typeof Expression | undefined;
373
+ put?: typeof Expression | undefined;
374
+ qualify?: typeof Expression | undefined;
375
+ quote?: typeof Expression | undefined;
376
+ qdcolon?: typeof Expression | undefined;
377
+ range?: typeof Expression | undefined;
378
+ recursive?: typeof Expression | undefined;
379
+ refresh?: typeof Expression | undefined;
380
+ rename?: typeof Expression | undefined;
381
+ replace?: typeof Expression | undefined;
382
+ returning?: typeof Expression | undefined;
383
+ revoke?: typeof Expression | undefined;
384
+ references?: typeof Expression | undefined;
385
+ right?: typeof Expression | undefined;
386
+ rlike?: typeof Expression | undefined;
387
+ rollback?: typeof Expression | undefined;
388
+ rollup?: typeof Expression | undefined;
389
+ row?: typeof Expression | undefined;
390
+ rows?: typeof Expression | undefined;
391
+ select?: typeof Expression | undefined;
392
+ semi?: typeof Expression | undefined;
393
+ separator?: typeof Expression | undefined;
394
+ sequence?: typeof Expression | undefined;
395
+ serdeProperties?: typeof Expression | undefined;
396
+ set?: typeof Expression | undefined;
397
+ settings?: typeof Expression | undefined;
398
+ show?: typeof Expression | undefined;
399
+ similarTo?: typeof Expression | undefined;
400
+ some?: typeof Expression | undefined;
401
+ sortBy?: typeof Expression | undefined;
402
+ soundsLike?: typeof Expression | undefined;
403
+ startWith?: typeof Expression | undefined;
404
+ storageIntegration?: typeof Expression | undefined;
405
+ straightJoin?: typeof Expression | undefined;
406
+ struct?: typeof Expression | undefined;
407
+ summarize?: typeof Expression | undefined;
408
+ tableSample?: typeof Expression | undefined;
409
+ tag?: typeof Expression | undefined;
410
+ temporary?: typeof Expression | undefined;
411
+ top?: typeof Expression | undefined;
412
+ then?: typeof Expression | undefined;
413
+ true?: typeof Expression | undefined;
414
+ truncate?: typeof Expression | undefined;
415
+ uncache?: typeof Expression | undefined;
416
+ union?: typeof Expression | undefined;
417
+ unnest?: typeof Expression | undefined;
418
+ unpivot?: typeof Expression | undefined;
419
+ update?: typeof Expression | undefined;
420
+ use?: typeof Expression | undefined;
421
+ using?: typeof Expression | undefined;
422
+ values?: typeof Expression | undefined;
423
+ variadic?: typeof Expression | undefined;
424
+ view?: typeof Expression | undefined;
425
+ semanticView?: typeof Expression | undefined;
426
+ volatile?: typeof Expression | undefined;
427
+ when?: typeof Expression | undefined;
428
+ where?: typeof Expression | undefined;
429
+ window?: typeof Expression | undefined;
430
+ with?: typeof Expression | undefined;
431
+ unique?: typeof Expression | undefined;
432
+ utcDate?: typeof Expression | undefined;
433
+ utcTime?: typeof Expression | undefined;
434
+ utcTimestamp?: typeof Expression | undefined;
435
+ versionSnapshot?: typeof Expression | undefined;
436
+ timestampSnapshot?: typeof Expression | undefined;
437
+ option?: typeof Expression | undefined;
438
+ sink?: typeof Expression | undefined;
439
+ source?: typeof Expression | undefined;
440
+ analyze?: typeof Expression | undefined;
441
+ namespace?: typeof Expression | undefined;
442
+ export?: typeof Expression | undefined;
443
+ hiveTokenStream?: typeof Expression | undefined;
444
+ };
445
+ static SUPPORTS_OMITTED_INTERVAL_SPAN_UNIT: boolean;
446
+ static get PROPERTY_PARSERS(): Record<string, (this: Parser, ...args: unknown[]) => Expression | Expression[] | undefined>;
447
+ static get PLACEHOLDER_PARSERS(): Partial<Record<TokenType, (this: Parser) => Expression | undefined>>;
448
+ static get FUNCTIONS(): Record<string, (args: Expression[], options: {
449
+ dialect: Dialect;
450
+ }) => Expression>;
451
+ static get NO_PAREN_FUNCTION_PARSERS(): Partial<Record<string, (this: Parser) => Expression | undefined>>;
452
+ static get FUNCTION_PARSERS(): Partial<Record<string, (this: Parser) => Expression | undefined>>;
453
+ static get BITWISE(): Partial<Record<TokenType, typeof Expression>>;
454
+ static get EXPONENT(): {
455
+ caret: typeof PowExpr;
456
+ };
457
+ static get RANGE_PARSERS(): Partial<Record<TokenType, (this: Parser, this_: Expression) => Expression | undefined>>;
458
+ static get STATEMENT_PARSERS(): Partial<Record<TokenType, (this: Parser) => Expression | undefined>>;
459
+ static get UNARY_PARSERS(): Partial<Record<TokenType, (this: Parser) => Expression | undefined>>;
460
+ static JSON_ARROWS_REQUIRE_JSON_TYPE: boolean;
461
+ static get COLUMN_OPERATORS(): Partial<Record<TokenType, undefined | ((this: Parser, this_?: Expression, to?: Expression) => Expression)>>;
462
+ static get ARG_MODE_TOKENS(): Set<TokenType>;
463
+ parseParameterMode(): TokenType | undefined;
464
+ createModeConstraint(paramMode: TokenType): InOutColumnConstraintExpr;
465
+ parseFunctionParameter(): Expression | undefined;
466
+ parseQueryParameter(): Expression | undefined;
467
+ parseDatePart(): Expression;
468
+ parseUniqueKey(): Expression | undefined;
469
+ parseJsonbExists(): JsonbExistsExpr;
470
+ parseGeneratedAsIdentity(): GeneratedAsIdentityColumnConstraintExpr | ComputedColumnConstraintExpr | GeneratedAsRowColumnConstraintExpr;
471
+ parseUserDefinedType(identifier: IdentifierExpr): Expression | undefined;
472
+ static get ID_VAR_TOKENS(): Set<TokenType>;
473
+ static get TABLE_ALIAS_TOKENS(): Set<TokenType>;
474
+ }
475
+ declare class PostgresGenerator extends Generator {
476
+ static get AFTER_HAVING_MODIFIER_TRANSFORMS(): Map<string, (this: Generator, e: Expression) => string>;
477
+ static SUPPORTS_DECODE_CASE: boolean;
478
+ static readonly SELECT_KINDS: string[];
479
+ static TRY_SUPPORTED: boolean;
480
+ static SUPPORTS_UESCAPE: boolean;
481
+ static SINGLE_STRING_INTERVAL: boolean;
482
+ static RENAME_TABLE_WITH_DB: boolean;
483
+ static LOCKING_READS_SUPPORTED: boolean;
484
+ static JOIN_HINTS: boolean;
485
+ static TABLE_HINTS: boolean;
486
+ static QUERY_HINTS: boolean;
487
+ static NVL2_SUPPORTED: boolean;
488
+ static PARAMETER_TOKEN: string;
489
+ static NAMED_PLACEHOLDER_TOKEN: string;
490
+ static TABLESAMPLE_SIZE_IS_ROWS: boolean;
491
+ static TABLESAMPLE_SEED_KEYWORD: string;
492
+ static SUPPORTS_SELECT_INTO: boolean;
493
+ static JSON_TYPE_REQUIRED_FOR_EXTRACTION: boolean;
494
+ static SUPPORTS_UNLOGGED_TABLES: boolean;
495
+ static LIKE_PROPERTY_INSIDE_SCHEMA: boolean;
496
+ static MULTI_ARG_DISTINCT: boolean;
497
+ static CAN_IMPLEMENT_ARRAY_ANY: boolean;
498
+ static SUPPORTS_WINDOW_EXCLUDE: boolean;
499
+ static COPY_HAS_INTO_KEYWORD: boolean;
500
+ static ARRAY_CONCAT_IS_VAR_LEN: boolean;
501
+ static SUPPORTS_MEDIAN: boolean;
502
+ static ARRAY_SIZE_DIM_REQUIRED: boolean;
503
+ static SUPPORTS_BETWEEN_FLAGS: boolean;
504
+ static INOUT_SEPARATOR: string;
505
+ static get SUPPORTED_JSON_PATH_PARTS(): Set<typeof Expression>;
506
+ static get TYPE_MAPPING(): Map<DataTypeExprKind | string, string>;
507
+ lateralSql(expression: LateralExpr): string;
508
+ jsonbExtractSql(e: JsonbExtractExpr): string;
509
+ jsonbExtractScalarSql(e: JsonbExtractScalarExpr): string;
510
+ explodeSql(e: ExplodeExpr): string;
511
+ static get ORIGINAL_TRANSFORMS(): Map<typeof Expression, (this: Generator, e: any) => string>;
512
+ static get PROPERTIES_LOCATION(): Map<typeof Expression, PropertiesLocation>;
513
+ schemaCommentPropertySql(_expression: SchemaCommentPropertyExpr): string;
514
+ commentColumnConstraintSql(_expression: CommentColumnConstraintExpr): string;
515
+ columnDefSql(expression: ColumnDefExpr, options?: {
516
+ sep?: string;
517
+ }): string;
518
+ unnestSql(expression: UnnestExpr): string;
519
+ bracketSql(expression: BracketExpr): string;
520
+ matchAgainstSql(expression: MatchAgainstExpr): string;
521
+ alterSetSql(expression: AlterSetExpr): string;
522
+ dataTypeSql(expression: DataTypeExpr): string;
523
+ castSql(expression: CastExpr, options?: {
524
+ safePrefix?: string;
525
+ }): string;
526
+ arraySql(expression: ArrayExpr): string;
527
+ computedColumnConstraintSql(expression: ComputedColumnConstraintExpr): string;
528
+ isAsciiSql(expression: IsAsciiExpr): string;
529
+ ignoreNullsSql(expression: IgnoreNullsExpr): string;
530
+ respectNullsSql(expression: RespectNullsExpr): string;
531
+ currentSchemaSql(expression: CurrentSchemaExpr): string;
532
+ intervalSql(expression: IntervalExpr): string;
533
+ placeholderSql(expression: PlaceholderExpr): string;
534
+ arrayContainsSql(expression: ArrayContainsExpr): string;
535
+ }
536
+ declare class Postgres extends Dialect {
537
+ static DIALECT_NAME: Dialects;
538
+ static INDEX_OFFSET: number;
539
+ static TYPED_DIVISION: boolean;
540
+ static CONCAT_COALESCE: boolean;
541
+ static get NULL_ORDERING(): NullOrdering;
542
+ static TIME_FORMAT: string;
543
+ static TABLESAMPLE_SIZE_IS_PERCENT: boolean;
544
+ static TABLES_REFERENCEABLE_AS_COLUMNS: boolean;
545
+ static get DEFAULT_FUNCTIONS_COLUMN_NAMES(): Map<string, string>;
546
+ static get TIME_MAPPING(): {
547
+ d: string;
548
+ D: string;
549
+ dd: string;
550
+ DD: string;
551
+ ddd: string;
552
+ DDD: string;
553
+ FMDD: string;
554
+ FMDDD: string;
555
+ FMHH12: string;
556
+ FMHH24: string;
557
+ FMMI: string;
558
+ FMMM: string;
559
+ FMSS: string;
560
+ HH12: string;
561
+ HH24: string;
562
+ mi: string;
563
+ MI: string;
564
+ mm: string;
565
+ MM: string;
566
+ OF: string;
567
+ ss: string;
568
+ SS: string;
569
+ TMDay: string;
570
+ TMDy: string;
571
+ TMMon: string;
572
+ TMMonth: string;
573
+ TZ: string;
574
+ US: string;
575
+ ww: string;
576
+ WW: string;
577
+ yy: string;
578
+ YY: string;
579
+ yyyy: string;
580
+ YYYY: string;
581
+ };
582
+ static Tokenizer: typeof PostgresTokenizer;
583
+ static Parser: typeof PostgresParser;
584
+ static Generator: typeof PostgresGenerator;
585
+ }
586
+
587
+ export { Postgres, PostgresTokenizer };