@hdnax/sqlingo.js 0.0.4 → 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 (245) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +8 -14
  3. package/README.npm.md +8 -14
  4. package/README.repo.md +1 -2
  5. package/dist/chunk-2YNOERAO.cjs +2 -0
  6. package/dist/chunk-2YNOERAO.cjs.map +1 -0
  7. package/dist/chunk-2Z3O2CFM.cjs +19 -0
  8. package/dist/chunk-2Z3O2CFM.cjs.map +1 -0
  9. package/dist/chunk-4ZMKB6PV.cjs +2 -0
  10. package/dist/chunk-4ZMKB6PV.cjs.map +1 -0
  11. package/dist/chunk-53OWF4GG.js +2 -0
  12. package/dist/chunk-53OWF4GG.js.map +1 -0
  13. package/dist/chunk-C4CLTVOW.cjs +2 -0
  14. package/dist/chunk-C4CLTVOW.cjs.map +1 -0
  15. package/dist/chunk-DOKMTZYO.cjs +4 -0
  16. package/dist/chunk-DOKMTZYO.cjs.map +1 -0
  17. package/dist/chunk-FCGUTI7Y.js +2 -0
  18. package/dist/chunk-FCGUTI7Y.js.map +1 -0
  19. package/dist/chunk-IPCIXWCY.js +2 -0
  20. package/dist/chunk-IPCIXWCY.js.map +1 -0
  21. package/dist/chunk-KCNOE4DZ.js +19 -0
  22. package/dist/chunk-KCNOE4DZ.js.map +1 -0
  23. package/dist/chunk-NRJHX2GZ.js +2 -0
  24. package/dist/chunk-NRJHX2GZ.js.map +1 -0
  25. package/dist/chunk-O2J5RKBN.js +2 -0
  26. package/dist/chunk-O2J5RKBN.js.map +1 -0
  27. package/dist/chunk-PXUASP5I.js +2 -0
  28. package/dist/chunk-PXUASP5I.js.map +1 -0
  29. package/dist/chunk-R7C3ZHVK.cjs +2 -0
  30. package/dist/chunk-R7C3ZHVK.cjs.map +1 -0
  31. package/dist/chunk-UHWHUDLE.cjs +2 -0
  32. package/dist/chunk-UHWHUDLE.cjs.map +1 -0
  33. package/dist/chunk-WRNYJ54A.cjs +2 -0
  34. package/dist/chunk-WRNYJ54A.cjs.map +1 -0
  35. package/dist/chunk-XZQFOICX.cjs +3 -0
  36. package/dist/chunk-XZQFOICX.cjs.map +1 -0
  37. package/dist/chunk-YLOQRUXC.js +2 -0
  38. package/dist/chunk-YLOQRUXC.js.map +1 -0
  39. package/dist/chunk-YSS2WVCM.cjs +2 -0
  40. package/dist/chunk-YSS2WVCM.cjs.map +1 -0
  41. package/dist/chunk-Z5V6VOIN.js +3 -0
  42. package/dist/chunk-Z5V6VOIN.js.map +1 -0
  43. package/dist/chunk-ZBFGQPJR.js +4 -0
  44. package/dist/chunk-ZBFGQPJR.js.map +1 -0
  45. package/dist/dialects/athena.cjs +2 -0
  46. package/dist/dialects/athena.cjs.map +1 -0
  47. package/dist/dialects/athena.d.cts +66 -0
  48. package/dist/dialects/athena.d.ts +66 -0
  49. package/dist/dialects/athena.js +2 -0
  50. package/dist/dialects/athena.js.map +1 -0
  51. package/dist/dialects/bigquery.cjs +3 -0
  52. package/dist/dialects/bigquery.cjs.map +1 -0
  53. package/dist/dialects/bigquery.d.cts +651 -0
  54. package/dist/dialects/bigquery.d.ts +651 -0
  55. package/dist/dialects/bigquery.js +3 -0
  56. package/dist/dialects/bigquery.js.map +1 -0
  57. package/dist/dialects/clickhouse.cjs +2 -0
  58. package/dist/dialects/clickhouse.cjs.map +1 -0
  59. package/dist/dialects/clickhouse.d.cts +634 -0
  60. package/dist/dialects/clickhouse.d.ts +634 -0
  61. package/dist/dialects/clickhouse.js +2 -0
  62. package/dist/dialects/clickhouse.js.map +1 -0
  63. package/dist/dialects/databricks.cjs +2 -0
  64. package/dist/dialects/databricks.cjs.map +1 -0
  65. package/dist/dialects/databricks.d.cts +484 -0
  66. package/dist/dialects/databricks.d.ts +484 -0
  67. package/dist/dialects/databricks.js +2 -0
  68. package/dist/dialects/databricks.js.map +1 -0
  69. package/dist/dialects/doris.cjs +2 -0
  70. package/dist/dialects/doris.cjs.map +1 -0
  71. package/dist/dialects/doris.d.cts +484 -0
  72. package/dist/dialects/doris.d.ts +484 -0
  73. package/dist/dialects/doris.js +2 -0
  74. package/dist/dialects/doris.js.map +1 -0
  75. package/dist/dialects/dremio.cjs +2 -0
  76. package/dist/dialects/dremio.cjs.map +1 -0
  77. package/dist/dialects/dremio.d.cts +522 -0
  78. package/dist/dialects/dremio.d.ts +522 -0
  79. package/dist/dialects/dremio.js +2 -0
  80. package/dist/dialects/dremio.js.map +1 -0
  81. package/dist/dialects/drill.cjs +2 -0
  82. package/dist/dialects/drill.cjs.map +1 -0
  83. package/dist/dialects/drill.d.cts +512 -0
  84. package/dist/dialects/drill.d.ts +512 -0
  85. package/dist/dialects/drill.js +2 -0
  86. package/dist/dialects/drill.js.map +1 -0
  87. package/dist/dialects/druid.cjs +2 -0
  88. package/dist/dialects/druid.cjs.map +1 -0
  89. package/dist/dialects/druid.d.cts +17 -0
  90. package/dist/dialects/druid.d.ts +17 -0
  91. package/dist/dialects/druid.js +2 -0
  92. package/dist/dialects/druid.js.map +1 -0
  93. package/dist/dialects/duckdb.cjs +86 -0
  94. package/dist/dialects/duckdb.cjs.map +1 -0
  95. package/dist/dialects/duckdb.d.cts +756 -0
  96. package/dist/dialects/duckdb.d.ts +756 -0
  97. package/dist/dialects/duckdb.js +86 -0
  98. package/dist/dialects/duckdb.js.map +1 -0
  99. package/dist/dialects/dune.cjs +2 -0
  100. package/dist/dialects/dune.cjs.map +1 -0
  101. package/dist/dialects/dune.d.cts +21 -0
  102. package/dist/dialects/dune.d.ts +21 -0
  103. package/dist/dialects/dune.js +2 -0
  104. package/dist/dialects/dune.js.map +1 -0
  105. package/dist/dialects/exasol.cjs +2 -0
  106. package/dist/dialects/exasol.cjs.map +1 -0
  107. package/dist/dialects/exasol.d.cts +507 -0
  108. package/dist/dialects/exasol.d.ts +507 -0
  109. package/dist/dialects/exasol.js +2 -0
  110. package/dist/dialects/exasol.js.map +1 -0
  111. package/dist/dialects/fabric.cjs +2 -0
  112. package/dist/dialects/fabric.cjs.map +1 -0
  113. package/dist/dialects/fabric.d.cts +463 -0
  114. package/dist/dialects/fabric.d.ts +463 -0
  115. package/dist/dialects/fabric.js +2 -0
  116. package/dist/dialects/fabric.js.map +1 -0
  117. package/dist/dialects/hive.cjs +2 -0
  118. package/dist/dialects/hive.cjs.map +1 -0
  119. package/dist/dialects/hive.d.cts +585 -0
  120. package/dist/dialects/hive.d.ts +585 -0
  121. package/dist/dialects/hive.js +2 -0
  122. package/dist/dialects/hive.js.map +1 -0
  123. package/dist/dialects/materialize.cjs +2 -0
  124. package/dist/dialects/materialize.cjs.map +1 -0
  125. package/dist/dialects/materialize.d.cts +890 -0
  126. package/dist/dialects/materialize.d.ts +890 -0
  127. package/dist/dialects/materialize.js +2 -0
  128. package/dist/dialects/materialize.js.map +1 -0
  129. package/dist/dialects/mysql.cjs +2 -0
  130. package/dist/dialects/mysql.cjs.map +1 -0
  131. package/dist/dialects/mysql.d.cts +292 -0
  132. package/dist/dialects/mysql.d.ts +292 -0
  133. package/dist/dialects/mysql.js +2 -0
  134. package/dist/dialects/mysql.js.map +1 -0
  135. package/dist/dialects/oracle.cjs +2 -0
  136. package/dist/dialects/oracle.cjs.map +1 -0
  137. package/dist/dialects/oracle.d.cts +539 -0
  138. package/dist/dialects/oracle.d.ts +539 -0
  139. package/dist/dialects/oracle.js +2 -0
  140. package/dist/dialects/oracle.js.map +1 -0
  141. package/dist/dialects/postgres.cjs +2 -0
  142. package/dist/dialects/postgres.cjs.map +1 -0
  143. package/dist/dialects/postgres.d.cts +587 -0
  144. package/dist/dialects/postgres.d.ts +587 -0
  145. package/dist/dialects/postgres.js +2 -0
  146. package/dist/dialects/postgres.js.map +1 -0
  147. package/dist/dialects/presto.cjs +2 -0
  148. package/dist/dialects/presto.cjs.map +1 -0
  149. package/dist/dialects/presto.d.cts +173 -0
  150. package/dist/dialects/presto.d.ts +173 -0
  151. package/dist/dialects/presto.js +2 -0
  152. package/dist/dialects/presto.js.map +1 -0
  153. package/dist/dialects/prql.cjs +2 -0
  154. package/dist/dialects/prql.cjs.map +1 -0
  155. package/dist/dialects/prql.d.cts +496 -0
  156. package/dist/dialects/prql.d.ts +496 -0
  157. package/dist/dialects/prql.js +2 -0
  158. package/dist/dialects/prql.js.map +1 -0
  159. package/dist/dialects/redshift.cjs +2 -0
  160. package/dist/dialects/redshift.cjs.map +1 -0
  161. package/dist/dialects/redshift.d.cts +132 -0
  162. package/dist/dialects/redshift.d.ts +132 -0
  163. package/dist/dialects/redshift.js +2 -0
  164. package/dist/dialects/redshift.js.map +1 -0
  165. package/dist/dialects/risingwave.cjs +2 -0
  166. package/dist/dialects/risingwave.cjs.map +1 -0
  167. package/dist/dialects/risingwave.d.cts +478 -0
  168. package/dist/dialects/risingwave.d.ts +478 -0
  169. package/dist/dialects/risingwave.js +2 -0
  170. package/dist/dialects/risingwave.js.map +1 -0
  171. package/dist/dialects/singlestore.cjs +2 -0
  172. package/dist/dialects/singlestore.cjs.map +1 -0
  173. package/dist/dialects/singlestore.d.cts +73 -0
  174. package/dist/dialects/singlestore.d.ts +73 -0
  175. package/dist/dialects/singlestore.js +2 -0
  176. package/dist/dialects/singlestore.js.map +1 -0
  177. package/dist/dialects/snowflake.cjs +3 -0
  178. package/dist/dialects/snowflake.cjs.map +1 -0
  179. package/dist/dialects/snowflake.d.cts +320 -0
  180. package/dist/dialects/snowflake.d.ts +320 -0
  181. package/dist/dialects/snowflake.js +3 -0
  182. package/dist/dialects/snowflake.js.map +1 -0
  183. package/dist/dialects/solr.cjs +2 -0
  184. package/dist/dialects/solr.cjs.map +1 -0
  185. package/dist/dialects/solr.d.cts +458 -0
  186. package/dist/dialects/solr.d.ts +458 -0
  187. package/dist/dialects/solr.js +2 -0
  188. package/dist/dialects/solr.js.map +1 -0
  189. package/dist/dialects/spark.cjs +2 -0
  190. package/dist/dialects/spark.cjs.map +1 -0
  191. package/dist/dialects/spark.d.cts +484 -0
  192. package/dist/dialects/spark.d.ts +484 -0
  193. package/dist/dialects/spark.js +2 -0
  194. package/dist/dialects/spark.js.map +1 -0
  195. package/dist/dialects/spark2.cjs +2 -0
  196. package/dist/dialects/spark2.cjs.map +1 -0
  197. package/dist/dialects/spark2.d.cts +486 -0
  198. package/dist/dialects/spark2.d.ts +486 -0
  199. package/dist/dialects/spark2.js +2 -0
  200. package/dist/dialects/spark2.js.map +1 -0
  201. package/dist/dialects/sqlite.cjs +2 -0
  202. package/dist/dialects/sqlite.cjs.map +1 -0
  203. package/dist/dialects/sqlite.d.cts +510 -0
  204. package/dist/dialects/sqlite.d.ts +510 -0
  205. package/dist/dialects/sqlite.js +2 -0
  206. package/dist/dialects/sqlite.js.map +1 -0
  207. package/dist/dialects/starrocks.cjs +2 -0
  208. package/dist/dialects/starrocks.cjs.map +1 -0
  209. package/dist/dialects/starrocks.d.cts +518 -0
  210. package/dist/dialects/starrocks.d.ts +518 -0
  211. package/dist/dialects/starrocks.js +2 -0
  212. package/dist/dialects/starrocks.js.map +1 -0
  213. package/dist/dialects/tableau.cjs +2 -0
  214. package/dist/dialects/tableau.cjs.map +1 -0
  215. package/dist/dialects/tableau.d.cts +466 -0
  216. package/dist/dialects/tableau.d.ts +466 -0
  217. package/dist/dialects/tableau.js +2 -0
  218. package/dist/dialects/tableau.js.map +1 -0
  219. package/dist/dialects/teradata.cjs +2 -0
  220. package/dist/dialects/teradata.cjs.map +1 -0
  221. package/dist/dialects/teradata.d.cts +539 -0
  222. package/dist/dialects/teradata.d.ts +539 -0
  223. package/dist/dialects/teradata.js +2 -0
  224. package/dist/dialects/teradata.js.map +1 -0
  225. package/dist/dialects/trino.cjs +2 -0
  226. package/dist/dialects/trino.cjs.map +1 -0
  227. package/dist/dialects/trino.d.cts +465 -0
  228. package/dist/dialects/trino.d.ts +465 -0
  229. package/dist/dialects/trino.js +2 -0
  230. package/dist/dialects/trino.js.map +1 -0
  231. package/dist/dialects/tsql.cjs +2 -0
  232. package/dist/dialects/tsql.cjs.map +1 -0
  233. package/dist/dialects/tsql.d.cts +703 -0
  234. package/dist/dialects/tsql.d.ts +703 -0
  235. package/dist/dialects/tsql.js +2 -0
  236. package/dist/dialects/tsql.js.map +1 -0
  237. package/dist/index.cjs +5 -25
  238. package/dist/index.cjs.map +1 -1
  239. package/dist/index.d.cts +3 -14178
  240. package/dist/index.d.ts +3 -14178
  241. package/dist/index.js +5 -25
  242. package/dist/index.js.map +1 -1
  243. package/dist/tokens-VcMD09XM.d.cts +15805 -0
  244. package/dist/tokens-VcMD09XM.d.ts +15805 -0
  245. package/package.json +171 -5
@@ -0,0 +1,651 @@
1
+ import { c as Dialect, d as Dialects, $ as DataTypeExprKind, a0 as NormalizationStrategy, a1 as NormalizeFunctions, a2 as ExpressionKey, a3 as ExpressionMetadata, E as Expression, m as Tokenizer, _ as TokenPair, l as TokenType, i as Parser, a4 as CurrentDatetimeExpr, a5 as ForInExpr, a6 as CommandExpr, a7 as ExportExpr, a8 as MakeIntervalExpr, a9 as TranslateExpr, aa as MlTranslateExpr, ab as FeaturesAtTimeExpr, ac as VectorSearchExpr, ad as TableExpr, ae as JsonObjectExpr, af as JsonObjectAggExpr, ag as UnnestExpr, G as Generator, ah as NullOrderingSupported, ai as TsOrDsToTimestampExpr, aj as PropertiesLocation, ak as DateTruncExpr, al as ModExpr, C as ColumnExpr, am as TimeToStrExpr, an as EqExpr, ao as AtTimeZoneExpr, ap as TryCastExpr, aq as BracketExpr, ar as VersionExpr, as as ContainsExpr, at as CastExpr, au as DeclareItemExpr, av as JsonPathTokenizer, aw as ArrayContainsExpr, ax as DateExpr, ay as DateFromPartsExpr, az as DateDiffExpr, aA as JsonStripNullsExpr, aB as LevenshteinExpr, aC as StrToTimeExpr, aD as TimestampExpr, aE as HexExpr, aF as Md5Expr, aG as LowerHexExpr } from '../tokens-VcMD09XM.js';
2
+
3
+ /**
4
+ * BigQuery doesn't allow column names when defining a CTE (e.g. WITH x (a, b) AS...),
5
+ * so we try to push them down into the inner SELECT statement (e.g. WITH x AS (SELECT ... AS a, ... AS b)).
6
+ */
7
+ declare function pushdownCteColumnNames(expression: Expression): Expression;
8
+ /**
9
+ * Builds a StrToTime expression tailored for BigQuery's parsing format.
10
+ */
11
+ declare function buildParseTimestamp(args: Expression[]): StrToTimeExpr;
12
+ /**
13
+ * Builds a Timestamp expression ensuring with_tz is set to true.
14
+ */
15
+ declare function buildTimestamp(args: Expression[]): TimestampExpr;
16
+ /**
17
+ * Chooses between Date and DateFromParts based on argument count.
18
+ */
19
+ declare function buildDate(args: Expression[]): DateExpr | DateFromPartsExpr;
20
+ /**
21
+ * Simplifies TO_HEX(MD5(..)) structures commonly found in BigQuery
22
+ * into a single MD5Expr for easier transpilation.
23
+ */
24
+ declare function buildToHex(args: Expression[]): HexExpr | Md5Expr | LowerHexExpr;
25
+ /**
26
+ * Builds JSONStripNulls and safely maps kwargs to their specific properties.
27
+ */
28
+ declare function buildJsonStripNulls(args: Expression[]): JsonStripNullsExpr;
29
+ /**
30
+ * Converts BigQuery's ARRAY_CONTAINS logic into a universally compatible
31
+ * EXISTS(SELECT 1 FROM UNNEST(...) ...) subquery structure.
32
+ */
33
+ declare function arrayContainsSql(this: Generator, expression: ArrayContainsExpr): string;
34
+ declare function buildTime(args: Expression[]): Expression;
35
+ declare function buildDatetime(args: Expression[]): Expression;
36
+ declare function buildDateDiff(args: Expression[]): DateDiffExpr;
37
+ declare function buildRegexpExtract<T extends Expression>(exprType: new (args: any) => T, defaultGroup?: Expression): (args: Expression[], options: {
38
+ dialect: BigQuery;
39
+ }) => T;
40
+ declare function buildExtractJsonWithDefaultPath<T extends typeof Expression>(exprType: T): (args: Expression[], options: {
41
+ dialect: Dialect;
42
+ }) => InstanceType<T>;
43
+ /**
44
+ * Maps Levenshtein distance to BigQuery's EDIT_DISTANCE function,
45
+ * wrapping the 'max_dist' argument in a named Kwarg if present.
46
+ */
47
+ declare const levenshteinSql: (this: Generator, expression: LevenshteinExpr) => string;
48
+ /**
49
+ * Builder for Levenshtein expressions, extracting the max distance value
50
+ * from the parsed argument list.
51
+ */
52
+ declare function buildLevenshtein(args: Expression[]): LevenshteinExpr;
53
+ /**
54
+ * Builds a Contains expression (typically for BigQuery's CONTAINS_SUBSTR).
55
+ * Wraps operands in LOWER() to ensure case-insensitive transpilation to other dialects.
56
+ */
57
+ declare function buildContainsSubstring(args: Expression[]): ContainsExpr;
58
+ declare class BigQueryTokenizer extends Tokenizer {
59
+ static get QUOTES(): TokenPair[];
60
+ static get COMMENTS(): TokenPair[];
61
+ static get IDENTIFIERS(): string[];
62
+ static get STRING_ESCAPES(): string[];
63
+ static get HEX_STRINGS(): TokenPair[];
64
+ static get BYTE_STRINGS(): TokenPair[];
65
+ static get RAW_STRINGS(): TokenPair[];
66
+ static NESTED_COMMENTS: boolean;
67
+ static get ORIGINAL_KEYWORDS(): Record<string, TokenType>;
68
+ }
69
+ declare class BigQueryParser extends Parser {
70
+ static get ID_VAR_TOKENS(): Set<TokenType>;
71
+ static get NO_PAREN_FUNCTIONS(): {
72
+ currentDatetime: typeof CurrentDatetimeExpr;
73
+ lParen?: typeof Expression | undefined;
74
+ rParen?: typeof Expression | undefined;
75
+ lBracket?: typeof Expression | undefined;
76
+ rBracket?: typeof Expression | undefined;
77
+ lBrace?: typeof Expression | undefined;
78
+ rBrace?: typeof Expression | undefined;
79
+ comma?: typeof Expression | undefined;
80
+ dot?: typeof Expression | undefined;
81
+ dash?: typeof Expression | undefined;
82
+ plus?: typeof Expression | undefined;
83
+ colon?: typeof Expression | undefined;
84
+ dotcolon?: typeof Expression | undefined;
85
+ dcolon?: typeof Expression | undefined;
86
+ dcolondollar?: typeof Expression | undefined;
87
+ dcolonpercent?: typeof Expression | undefined;
88
+ dcolonqmark?: typeof Expression | undefined;
89
+ dqmark?: typeof Expression | undefined;
90
+ semicolon?: typeof Expression | undefined;
91
+ star?: typeof Expression | undefined;
92
+ backslash?: typeof Expression | undefined;
93
+ slash?: typeof Expression | undefined;
94
+ lt?: typeof Expression | undefined;
95
+ lte?: typeof Expression | undefined;
96
+ gt?: typeof Expression | undefined;
97
+ gte?: typeof Expression | undefined;
98
+ not?: typeof Expression | undefined;
99
+ eq?: typeof Expression | undefined;
100
+ neq?: typeof Expression | undefined;
101
+ nullsafeEq?: typeof Expression | undefined;
102
+ colonEq?: typeof Expression | undefined;
103
+ colonGt?: typeof Expression | undefined;
104
+ ncolonGt?: typeof Expression | undefined;
105
+ and?: typeof Expression | undefined;
106
+ or?: typeof Expression | undefined;
107
+ amp?: typeof Expression | undefined;
108
+ dpipe?: typeof Expression | undefined;
109
+ pipeGt?: typeof Expression | undefined;
110
+ pipe?: typeof Expression | undefined;
111
+ pipeSlash?: typeof Expression | undefined;
112
+ dpipeSlash?: typeof Expression | undefined;
113
+ caret?: typeof Expression | undefined;
114
+ caretAt?: typeof Expression | undefined;
115
+ tilde?: typeof Expression | undefined;
116
+ arrow?: typeof Expression | undefined;
117
+ darrow?: typeof Expression | undefined;
118
+ farrow?: typeof Expression | undefined;
119
+ hash?: typeof Expression | undefined;
120
+ hashArrow?: typeof Expression | undefined;
121
+ dhashArrow?: typeof Expression | undefined;
122
+ lrArrow?: typeof Expression | undefined;
123
+ dat?: typeof Expression | undefined;
124
+ ltAt?: typeof Expression | undefined;
125
+ atGt?: typeof Expression | undefined;
126
+ dollar?: typeof Expression | undefined;
127
+ parameter?: typeof Expression | undefined;
128
+ session?: typeof Expression | undefined;
129
+ sessionParameter?: typeof Expression | undefined;
130
+ sessionUser?: typeof Expression | undefined;
131
+ damp?: typeof Expression | undefined;
132
+ ampLt?: typeof Expression | undefined;
133
+ ampGt?: typeof Expression | undefined;
134
+ adjacent?: typeof Expression | undefined;
135
+ xor?: typeof Expression | undefined;
136
+ dstar?: typeof Expression | undefined;
137
+ qmarkAmp?: typeof Expression | undefined;
138
+ qmarkPipe?: typeof Expression | undefined;
139
+ hashDash?: typeof Expression | undefined;
140
+ exclamation?: typeof Expression | undefined;
141
+ uriStart?: typeof Expression | undefined;
142
+ blockStart?: typeof Expression | undefined;
143
+ blockEnd?: typeof Expression | undefined;
144
+ space?: typeof Expression | undefined;
145
+ break?: typeof Expression | undefined;
146
+ string?: typeof Expression | undefined;
147
+ number?: typeof Expression | undefined;
148
+ identifier?: typeof Expression | undefined;
149
+ database?: typeof Expression | undefined;
150
+ column?: typeof Expression | undefined;
151
+ columnDef?: typeof Expression | undefined;
152
+ schema?: typeof Expression | undefined;
153
+ table?: typeof Expression | undefined;
154
+ warehouse?: typeof Expression | undefined;
155
+ stage?: typeof Expression | undefined;
156
+ streamlit?: typeof Expression | undefined;
157
+ var?: typeof Expression | undefined;
158
+ bitString?: typeof Expression | undefined;
159
+ hexString?: typeof Expression | undefined;
160
+ byteString?: typeof Expression | undefined;
161
+ nationalString?: typeof Expression | undefined;
162
+ rawString?: typeof Expression | undefined;
163
+ heredocString?: typeof Expression | undefined;
164
+ unicodeString?: typeof Expression | undefined;
165
+ bit?: typeof Expression | undefined;
166
+ boolean?: typeof Expression | undefined;
167
+ tinyint?: typeof Expression | undefined;
168
+ utinyint?: typeof Expression | undefined;
169
+ smallint?: typeof Expression | undefined;
170
+ usmallint?: typeof Expression | undefined;
171
+ mediumint?: typeof Expression | undefined;
172
+ umediumint?: typeof Expression | undefined;
173
+ int?: typeof Expression | undefined;
174
+ uint?: typeof Expression | undefined;
175
+ bigint?: typeof Expression | undefined;
176
+ ubigint?: typeof Expression | undefined;
177
+ bignum?: typeof Expression | undefined;
178
+ int128?: typeof Expression | undefined;
179
+ uint128?: typeof Expression | undefined;
180
+ int256?: typeof Expression | undefined;
181
+ uint256?: typeof Expression | undefined;
182
+ float?: typeof Expression | undefined;
183
+ double?: typeof Expression | undefined;
184
+ udouble?: typeof Expression | undefined;
185
+ decimal?: typeof Expression | undefined;
186
+ decimal32?: typeof Expression | undefined;
187
+ decimal64?: typeof Expression | undefined;
188
+ decimal128?: typeof Expression | undefined;
189
+ decimal256?: typeof Expression | undefined;
190
+ decfloat?: typeof Expression | undefined;
191
+ udecimal?: typeof Expression | undefined;
192
+ bigdecimal?: typeof Expression | undefined;
193
+ char?: typeof Expression | undefined;
194
+ nchar?: typeof Expression | undefined;
195
+ varchar?: typeof Expression | undefined;
196
+ nvarchar?: typeof Expression | undefined;
197
+ bpchar?: typeof Expression | undefined;
198
+ text?: typeof Expression | undefined;
199
+ mediumtext?: typeof Expression | undefined;
200
+ longtext?: typeof Expression | undefined;
201
+ blob?: typeof Expression | undefined;
202
+ mediumblob?: typeof Expression | undefined;
203
+ longblob?: typeof Expression | undefined;
204
+ tinyblob?: typeof Expression | undefined;
205
+ tinytext?: typeof Expression | undefined;
206
+ name?: typeof Expression | undefined;
207
+ binary?: typeof Expression | undefined;
208
+ varbinary?: typeof Expression | undefined;
209
+ json?: typeof Expression | undefined;
210
+ jsonb?: typeof Expression | undefined;
211
+ time?: typeof Expression | undefined;
212
+ timetz?: typeof Expression | undefined;
213
+ timeNs?: typeof Expression | undefined;
214
+ timestamp?: typeof Expression | undefined;
215
+ timestamptz?: typeof Expression | undefined;
216
+ timestampltz?: typeof Expression | undefined;
217
+ timestampntz?: typeof Expression | undefined;
218
+ timestampS?: typeof Expression | undefined;
219
+ timestampMs?: typeof Expression | undefined;
220
+ timestampNs?: typeof Expression | undefined;
221
+ datetime?: typeof Expression | undefined;
222
+ datetime2?: typeof Expression | undefined;
223
+ datetime64?: typeof Expression | undefined;
224
+ smalldatetime?: typeof Expression | undefined;
225
+ date?: typeof Expression | undefined;
226
+ date32?: typeof Expression | undefined;
227
+ int4range?: typeof Expression | undefined;
228
+ int4multirange?: typeof Expression | undefined;
229
+ int8range?: typeof Expression | undefined;
230
+ int8multirange?: typeof Expression | undefined;
231
+ numrange?: typeof Expression | undefined;
232
+ nummultirange?: typeof Expression | undefined;
233
+ tsrange?: typeof Expression | undefined;
234
+ tsmultirange?: typeof Expression | undefined;
235
+ tstzrange?: typeof Expression | undefined;
236
+ tstzmultirange?: typeof Expression | undefined;
237
+ daterange?: typeof Expression | undefined;
238
+ datemultirange?: typeof Expression | undefined;
239
+ uuid?: typeof Expression | undefined;
240
+ geography?: typeof Expression | undefined;
241
+ geographypoint?: typeof Expression | undefined;
242
+ nullable?: typeof Expression | undefined;
243
+ geometry?: typeof Expression | undefined;
244
+ point?: typeof Expression | undefined;
245
+ ring?: typeof Expression | undefined;
246
+ linestring?: typeof Expression | undefined;
247
+ localtime?: typeof Expression | undefined;
248
+ localtimestamp?: typeof Expression | undefined;
249
+ systimestamp?: typeof Expression | undefined;
250
+ multilinestring?: typeof Expression | undefined;
251
+ polygon?: typeof Expression | undefined;
252
+ multipolygon?: typeof Expression | undefined;
253
+ hllsketch?: typeof Expression | undefined;
254
+ hstore?: typeof Expression | undefined;
255
+ super?: typeof Expression | undefined;
256
+ serial?: typeof Expression | undefined;
257
+ smallserial?: typeof Expression | undefined;
258
+ bigserial?: typeof Expression | undefined;
259
+ xml?: typeof Expression | undefined;
260
+ year?: typeof Expression | undefined;
261
+ userdefined?: typeof Expression | undefined;
262
+ money?: typeof Expression | undefined;
263
+ smallmoney?: typeof Expression | undefined;
264
+ rowversion?: typeof Expression | undefined;
265
+ image?: typeof Expression | undefined;
266
+ variant?: typeof Expression | undefined;
267
+ object?: typeof Expression | undefined;
268
+ inet?: typeof Expression | undefined;
269
+ ipaddress?: typeof Expression | undefined;
270
+ ipprefix?: typeof Expression | undefined;
271
+ ipv4?: typeof Expression | undefined;
272
+ ipv6?: typeof Expression | undefined;
273
+ enum?: typeof Expression | undefined;
274
+ enum8?: typeof Expression | undefined;
275
+ enum16?: typeof Expression | undefined;
276
+ fixedstring?: typeof Expression | undefined;
277
+ lowcardinality?: typeof Expression | undefined;
278
+ nested?: typeof Expression | undefined;
279
+ aggregatefunction?: typeof Expression | undefined;
280
+ simpleaggregatefunction?: typeof Expression | undefined;
281
+ tdigest?: typeof Expression | undefined;
282
+ unknown?: typeof Expression | undefined;
283
+ vector?: typeof Expression | undefined;
284
+ dynamic?: typeof Expression | undefined;
285
+ void?: typeof Expression | undefined;
286
+ alias?: typeof Expression | undefined;
287
+ alter?: typeof Expression | undefined;
288
+ all?: typeof Expression | undefined;
289
+ anti?: typeof Expression | undefined;
290
+ any?: typeof Expression | undefined;
291
+ apply?: typeof Expression | undefined;
292
+ array?: typeof Expression | undefined;
293
+ asc?: typeof Expression | undefined;
294
+ asof?: typeof Expression | undefined;
295
+ attach?: typeof Expression | undefined;
296
+ autoIncrement?: typeof Expression | undefined;
297
+ begin?: typeof Expression | undefined;
298
+ between?: typeof Expression | undefined;
299
+ bulkCollectInto?: typeof Expression | undefined;
300
+ cache?: typeof Expression | undefined;
301
+ case?: typeof Expression | undefined;
302
+ characterSet?: typeof Expression | undefined;
303
+ clusterBy?: typeof Expression | undefined;
304
+ collate?: typeof Expression | undefined;
305
+ command?: typeof Expression | undefined;
306
+ comment?: typeof Expression | undefined;
307
+ commit?: typeof Expression | undefined;
308
+ connectBy?: typeof Expression | undefined;
309
+ constraint?: typeof Expression | undefined;
310
+ copy?: typeof Expression | undefined;
311
+ create?: typeof Expression | undefined;
312
+ cross?: typeof Expression | undefined;
313
+ cube?: typeof Expression | undefined;
314
+ currentDate?: typeof Expression | undefined;
315
+ currentSchema?: typeof Expression | undefined;
316
+ currentTime?: typeof Expression | undefined;
317
+ currentTimestamp?: typeof Expression | undefined;
318
+ currentUser?: typeof Expression | undefined;
319
+ currentRole?: typeof Expression | undefined;
320
+ currentCatalog?: typeof Expression | undefined;
321
+ declare?: typeof Expression | undefined;
322
+ default?: typeof Expression | undefined;
323
+ delete?: typeof Expression | undefined;
324
+ desc?: typeof Expression | undefined;
325
+ describe?: typeof Expression | undefined;
326
+ detach?: typeof Expression | undefined;
327
+ dictionary?: typeof Expression | undefined;
328
+ distinct?: typeof Expression | undefined;
329
+ distributeBy?: typeof Expression | undefined;
330
+ div?: typeof Expression | undefined;
331
+ drop?: typeof Expression | undefined;
332
+ else?: typeof Expression | undefined;
333
+ end?: typeof Expression | undefined;
334
+ escape?: typeof Expression | undefined;
335
+ except?: typeof Expression | undefined;
336
+ execute?: typeof Expression | undefined;
337
+ exists?: typeof Expression | undefined;
338
+ false?: typeof Expression | undefined;
339
+ fetch?: typeof Expression | undefined;
340
+ file?: typeof Expression | undefined;
341
+ fileFormat?: typeof Expression | undefined;
342
+ filter?: typeof Expression | undefined;
343
+ final?: typeof Expression | undefined;
344
+ first?: typeof Expression | undefined;
345
+ for?: typeof Expression | undefined;
346
+ force?: typeof Expression | undefined;
347
+ foreignKey?: typeof Expression | undefined;
348
+ format?: typeof Expression | undefined;
349
+ from?: typeof Expression | undefined;
350
+ full?: typeof Expression | undefined;
351
+ function?: typeof Expression | undefined;
352
+ get?: typeof Expression | undefined;
353
+ glob?: typeof Expression | undefined;
354
+ global?: typeof Expression | undefined;
355
+ grant?: typeof Expression | undefined;
356
+ groupBy?: typeof Expression | undefined;
357
+ groupingSets?: typeof Expression | undefined;
358
+ having?: typeof Expression | undefined;
359
+ hint?: typeof Expression | undefined;
360
+ ignore?: typeof Expression | undefined;
361
+ ilike?: typeof Expression | undefined;
362
+ in?: typeof Expression | undefined;
363
+ index?: typeof Expression | undefined;
364
+ indexedBy?: typeof Expression | undefined;
365
+ inner?: typeof Expression | undefined;
366
+ insert?: typeof Expression | undefined;
367
+ install?: typeof Expression | undefined;
368
+ intersect?: typeof Expression | undefined;
369
+ interval?: typeof Expression | undefined;
370
+ into?: typeof Expression | undefined;
371
+ introducer?: typeof Expression | undefined;
372
+ irlike?: typeof Expression | undefined;
373
+ is?: typeof Expression | undefined;
374
+ isnull?: typeof Expression | undefined;
375
+ join?: typeof Expression | undefined;
376
+ joinMarker?: typeof Expression | undefined;
377
+ keep?: typeof Expression | undefined;
378
+ key?: typeof Expression | undefined;
379
+ kill?: typeof Expression | undefined;
380
+ language?: typeof Expression | undefined;
381
+ lateral?: typeof Expression | undefined;
382
+ left?: typeof Expression | undefined;
383
+ like?: typeof Expression | undefined;
384
+ limit?: typeof Expression | undefined;
385
+ list?: typeof Expression | undefined;
386
+ load?: typeof Expression | undefined;
387
+ lock?: typeof Expression | undefined;
388
+ map?: typeof Expression | undefined;
389
+ match?: typeof Expression | undefined;
390
+ matchCondition?: typeof Expression | undefined;
391
+ matchRecognize?: typeof Expression | undefined;
392
+ memberOf?: typeof Expression | undefined;
393
+ merge?: typeof Expression | undefined;
394
+ mod?: typeof Expression | undefined;
395
+ model?: typeof Expression | undefined;
396
+ natural?: typeof Expression | undefined;
397
+ next?: typeof Expression | undefined;
398
+ nothing?: typeof Expression | undefined;
399
+ notnull?: typeof Expression | undefined;
400
+ null?: typeof Expression | undefined;
401
+ objectIdentifier?: typeof Expression | undefined;
402
+ offset?: typeof Expression | undefined;
403
+ on?: typeof Expression | undefined;
404
+ only?: typeof Expression | undefined;
405
+ operator?: typeof Expression | undefined;
406
+ orderBy?: typeof Expression | undefined;
407
+ orderSiblingsBy?: typeof Expression | undefined;
408
+ ordered?: typeof Expression | undefined;
409
+ ordinality?: typeof Expression | undefined;
410
+ out?: typeof Expression | undefined;
411
+ inout?: typeof Expression | undefined;
412
+ outer?: typeof Expression | undefined;
413
+ over?: typeof Expression | undefined;
414
+ overlaps?: typeof Expression | undefined;
415
+ overwrite?: typeof Expression | undefined;
416
+ partition?: typeof Expression | undefined;
417
+ partitionBy?: typeof Expression | undefined;
418
+ percent?: typeof Expression | undefined;
419
+ pivot?: typeof Expression | undefined;
420
+ placeholder?: typeof Expression | undefined;
421
+ positional?: typeof Expression | undefined;
422
+ pragma?: typeof Expression | undefined;
423
+ prewhere?: typeof Expression | undefined;
424
+ primaryKey?: typeof Expression | undefined;
425
+ procedure?: typeof Expression | undefined;
426
+ properties?: typeof Expression | undefined;
427
+ pseudoType?: typeof Expression | undefined;
428
+ put?: typeof Expression | undefined;
429
+ qualify?: typeof Expression | undefined;
430
+ quote?: typeof Expression | undefined;
431
+ qdcolon?: typeof Expression | undefined;
432
+ range?: typeof Expression | undefined;
433
+ recursive?: typeof Expression | undefined;
434
+ refresh?: typeof Expression | undefined;
435
+ rename?: typeof Expression | undefined;
436
+ replace?: typeof Expression | undefined;
437
+ returning?: typeof Expression | undefined;
438
+ revoke?: typeof Expression | undefined;
439
+ references?: typeof Expression | undefined;
440
+ right?: typeof Expression | undefined;
441
+ rlike?: typeof Expression | undefined;
442
+ rollback?: typeof Expression | undefined;
443
+ rollup?: typeof Expression | undefined;
444
+ row?: typeof Expression | undefined;
445
+ rows?: typeof Expression | undefined;
446
+ select?: typeof Expression | undefined;
447
+ semi?: typeof Expression | undefined;
448
+ separator?: typeof Expression | undefined;
449
+ sequence?: typeof Expression | undefined;
450
+ serdeProperties?: typeof Expression | undefined;
451
+ set?: typeof Expression | undefined;
452
+ settings?: typeof Expression | undefined;
453
+ show?: typeof Expression | undefined;
454
+ similarTo?: typeof Expression | undefined;
455
+ some?: typeof Expression | undefined;
456
+ sortBy?: typeof Expression | undefined;
457
+ soundsLike?: typeof Expression | undefined;
458
+ startWith?: typeof Expression | undefined;
459
+ storageIntegration?: typeof Expression | undefined;
460
+ straightJoin?: typeof Expression | undefined;
461
+ struct?: typeof Expression | undefined;
462
+ summarize?: typeof Expression | undefined;
463
+ tableSample?: typeof Expression | undefined;
464
+ tag?: typeof Expression | undefined;
465
+ temporary?: typeof Expression | undefined;
466
+ top?: typeof Expression | undefined;
467
+ then?: typeof Expression | undefined;
468
+ true?: typeof Expression | undefined;
469
+ truncate?: typeof Expression | undefined;
470
+ uncache?: typeof Expression | undefined;
471
+ union?: typeof Expression | undefined;
472
+ unnest?: typeof Expression | undefined;
473
+ unpivot?: typeof Expression | undefined;
474
+ update?: typeof Expression | undefined;
475
+ use?: typeof Expression | undefined;
476
+ using?: typeof Expression | undefined;
477
+ values?: typeof Expression | undefined;
478
+ variadic?: typeof Expression | undefined;
479
+ view?: typeof Expression | undefined;
480
+ semanticView?: typeof Expression | undefined;
481
+ volatile?: typeof Expression | undefined;
482
+ when?: typeof Expression | undefined;
483
+ where?: typeof Expression | undefined;
484
+ window?: typeof Expression | undefined;
485
+ with?: typeof Expression | undefined;
486
+ unique?: typeof Expression | undefined;
487
+ utcDate?: typeof Expression | undefined;
488
+ utcTime?: typeof Expression | undefined;
489
+ utcTimestamp?: typeof Expression | undefined;
490
+ versionSnapshot?: typeof Expression | undefined;
491
+ timestampSnapshot?: typeof Expression | undefined;
492
+ option?: typeof Expression | undefined;
493
+ sink?: typeof Expression | undefined;
494
+ source?: typeof Expression | undefined;
495
+ analyze?: typeof Expression | undefined;
496
+ namespace?: typeof Expression | undefined;
497
+ export?: typeof Expression | undefined;
498
+ hiveTokenStream?: typeof Expression | undefined;
499
+ };
500
+ static PREFIXED_PIVOT_COLUMNS: boolean;
501
+ static LOG_DEFAULTS_TO_LN: boolean;
502
+ static SUPPORTS_IMPLICIT_UNNEST: boolean;
503
+ static JOINS_HAVE_EQUAL_PRECEDENCE: boolean;
504
+ static get ALIAS_TOKENS(): Set<TokenType>;
505
+ static get TABLE_ALIAS_TOKENS(): Set<TokenType>;
506
+ static get COMMENT_TABLE_ALIAS_TOKENS(): Set<TokenType>;
507
+ static get UPDATE_ALIAS_TOKENS(): Set<TokenType>;
508
+ static get NESTED_TYPE_TOKENS(): Set<TokenType>;
509
+ static get PROPERTY_PARSERS(): Record<string, (this: Parser, ...args: unknown[]) => Expression | Expression[] | undefined>;
510
+ static get CONSTRAINT_PARSERS(): Partial<Record<string, (this: Parser, ...args: unknown[]) => Expression | Expression[] | undefined>>;
511
+ static get RANGE_PARSERS(): Partial<Record<TokenType, (this: Parser, this_: Expression) => Expression | undefined>>;
512
+ static get DASHED_TABLE_PART_FOLLOW_TOKENS(): Set<TokenType>;
513
+ static get STATEMENT_PARSERS(): Partial<Record<TokenType, (this: Parser) => Expression | undefined>>;
514
+ static get BRACKET_OFFSETS(): Record<string, [number, boolean]>;
515
+ static get FUNCTIONS(): Record<string, (args: Expression[], options: {
516
+ dialect: Dialect;
517
+ }) => Expression>;
518
+ static get FUNCTION_PARSERS(): Partial<Record<string, (this: Parser) => Expression | undefined>>;
519
+ parseForIn(): ForInExpr | CommandExpr;
520
+ parseExportData(): ExportExpr;
521
+ parseMakeInterval(): MakeIntervalExpr;
522
+ parseMl<T extends Expression>(exprType: new (args: any) => T, kwargs?: Record<string, unknown>): T;
523
+ parseTranslate(): TranslateExpr | MlTranslateExpr;
524
+ parseFeaturesAtTime(): FeaturesAtTimeExpr;
525
+ parseVectorSearch(): VectorSearchExpr;
526
+ parseTablePart(options?: {
527
+ schema?: boolean;
528
+ }): Expression | undefined;
529
+ parseTableParts(options?: {
530
+ schema?: boolean;
531
+ isDbReference?: boolean;
532
+ wildcard?: boolean;
533
+ }): TableExpr;
534
+ parseColumn(): Expression | undefined;
535
+ parseJsonObject(options?: {
536
+ agg?: boolean;
537
+ }): JsonObjectExpr | JsonObjectAggExpr;
538
+ parseBracket(thisNode?: Expression): Expression | undefined;
539
+ parseUnnest(options?: {
540
+ withAlias?: boolean;
541
+ }): UnnestExpr | undefined;
542
+ parseColumnOps(thisNode?: Expression): Expression | undefined;
543
+ }
544
+ declare class BigQueryGenerator extends Generator {
545
+ static get AFTER_HAVING_MODIFIER_TRANSFORMS(): Map<string, (this: Generator, e: Expression) => string>;
546
+ static SUPPORTS_DECODE_CASE: boolean;
547
+ static TRY_SUPPORTED: boolean;
548
+ static SUPPORTS_UESCAPE: boolean;
549
+ static INTERVAL_ALLOWS_PLURAL_FORM: boolean;
550
+ static JOIN_HINTS: boolean;
551
+ static QUERY_HINTS: boolean;
552
+ static TABLE_HINTS: boolean;
553
+ static LIMIT_FETCH: string;
554
+ static RENAME_TABLE_WITH_DB: boolean;
555
+ static NVL2_SUPPORTED: boolean;
556
+ static UNNEST_WITH_ORDINALITY: boolean;
557
+ static COLLATE_IS_FUNC: boolean;
558
+ static LIMIT_ONLY_LITERALS: boolean;
559
+ static SUPPORTS_TABLE_ALIAS_COLUMNS: boolean;
560
+ static UNPIVOT_ALIASES_ARE_IDENTIFIERS: boolean;
561
+ static JSON_KEY_VALUE_PAIR_SEP: string;
562
+ static get NULL_ORDERING_SUPPORTED(): NullOrderingSupported;
563
+ static IGNORE_NULLS_IN_FUNC: boolean;
564
+ static JSON_PATH_SINGLE_QUOTE_ESCAPE: boolean;
565
+ static CAN_IMPLEMENT_ARRAY_ANY: boolean;
566
+ static SUPPORTS_TO_NUMBER: boolean;
567
+ static NAMED_PLACEHOLDER_TOKEN: string;
568
+ static HEX_FUNC: string;
569
+ static WITH_PROPERTIES_PREFIX: string;
570
+ static SUPPORTS_EXPLODING_PROJECTIONS: boolean;
571
+ static EXCEPT_INTERSECT_SUPPORT_ALL_CLAUSE: boolean;
572
+ static SUPPORTS_UNIX_SECONDS: boolean;
573
+ static SAFE_JSON_PATH_KEY_RE: RegExp;
574
+ static get TS_OR_DS_TYPES(): (typeof TsOrDsToTimestampExpr)[];
575
+ static get ORIGINAL_TRANSFORMS(): Map<typeof Expression, (this: Generator, e: any) => string>;
576
+ static get SUPPORTED_JSON_PATH_PARTS(): Set<typeof Expression>;
577
+ static get TYPE_MAPPING(): Map<string, string>;
578
+ static get PROPERTIES_LOCATION(): Map<typeof Expression, PropertiesLocation>;
579
+ static get RESERVED_KEYWORDS(): Set<string>;
580
+ dateTruncSql(expression: DateTruncExpr): string;
581
+ modSql(expression: ModExpr): string;
582
+ columnParts(expression: ColumnExpr): string;
583
+ tableParts(expression: TableExpr): string;
584
+ timeToStrSql(expression: TimeToStrExpr): string;
585
+ eqSql(expression: EqExpr): string;
586
+ atTimeZoneSql(expression: AtTimeZoneExpr): string;
587
+ tryCastSql(expression: TryCastExpr): string;
588
+ bracketSql(expression: BracketExpr): string;
589
+ inUnnestOp(expression: UnnestExpr): string;
590
+ versionSql(expression: VersionExpr): string;
591
+ containsSql(expression: ContainsExpr): string;
592
+ castSql(expression: CastExpr, options?: {
593
+ safePrefix?: string;
594
+ }): string;
595
+ declareItemSql(expression: DeclareItemExpr): string;
596
+ }
597
+ declare class BigQueryJsonPathTokenizer extends JsonPathTokenizer {
598
+ static get VAR_TOKENS(): Set<TokenType>;
599
+ }
600
+ declare class BigQuery extends Dialect {
601
+ static DIALECT_NAME: Dialects;
602
+ static WEEK_OFFSET: number;
603
+ static UNNEST_COLUMN_ONLY: boolean;
604
+ static SUPPORTS_USER_DEFINED_TYPES: boolean;
605
+ static SUPPORTS_SEMI_ANTI_JOIN: boolean;
606
+ static LOG_BASE_FIRST: boolean;
607
+ static HEX_LOWERCASE: boolean;
608
+ static FORCE_EARLY_ALIAS_REF_EXPANSION: boolean;
609
+ static EXPAND_ONLY_GROUP_ALIAS_REF: boolean;
610
+ static PRESERVE_ORIGINAL_NAMES: boolean;
611
+ static HEX_STRING_IS_INTEGER_TYPE: boolean;
612
+ static BYTE_STRING_IS_BYTES_TYPE: boolean;
613
+ static UUID_IS_STRING_TYPE: boolean;
614
+ static ANNOTATE_ALL_SCOPES: boolean;
615
+ static PROJECTION_ALIASES_SHADOW_SOURCE_NAMES: boolean;
616
+ static TABLES_REFERENCEABLE_AS_COLUMNS: boolean;
617
+ static SUPPORTS_STRUCT_STAR_EXPANSION: boolean;
618
+ static EXCLUDES_PSEUDOCOLUMNS_FROM_STAR: boolean;
619
+ static QUERY_RESULTS_ARE_STRUCTS: boolean;
620
+ static JSON_EXTRACT_SCALAR_SCALAR_ONLY: boolean;
621
+ static LEAST_GREATEST_IGNORES_NULLS: boolean;
622
+ static get DEFAULT_NULL_TYPE(): DataTypeExprKind;
623
+ static PRIORITIZE_NON_LITERAL_TYPES: boolean;
624
+ static INITCAP_DEFAULT_DELIMITER_CHARS: string;
625
+ static get NORMALIZATION_STRATEGY(): NormalizationStrategy;
626
+ static get NORMALIZE_FUNCTIONS(): NormalizeFunctions;
627
+ static get TIME_MAPPING(): {
628
+ '%x': string;
629
+ '%D': string;
630
+ '%E6S': string;
631
+ '%e': string;
632
+ '%F': string;
633
+ '%T': string;
634
+ '%c': string;
635
+ };
636
+ static get INVERSE_TIME_MAPPING(): {
637
+ '%H:%M:%S.%f': string;
638
+ };
639
+ static get FORMAT_MAPPING(): Record<string, string>;
640
+ static get PSEUDOCOLUMNS(): Set<string>;
641
+ static get SET_OP_DISTINCT_BY_DEFAULT(): Partial<Record<ExpressionKey, boolean>>;
642
+ static get COERCES_TO(): Map<string, Set<string>>;
643
+ static get EXPRESSION_METADATA(): ExpressionMetadata;
644
+ normalizeIdentifier<E extends Expression>(expression: E): E;
645
+ static Tokenizer: typeof BigQueryTokenizer;
646
+ static Parser: typeof BigQueryParser;
647
+ static Generator: typeof BigQueryGenerator;
648
+ static JsonPathTokenizer: typeof BigQueryJsonPathTokenizer;
649
+ }
650
+
651
+ export { BigQuery, BigQueryGenerator, BigQueryJsonPathTokenizer, BigQueryParser, BigQueryTokenizer, arrayContainsSql, buildContainsSubstring, buildDate, buildDateDiff, buildDatetime, buildExtractJsonWithDefaultPath, buildJsonStripNulls, buildLevenshtein, buildParseTimestamp, buildRegexpExtract, buildTime, buildTimestamp, buildToHex, levenshteinSql, pushdownCteColumnNames };