@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,320 @@
1
+ import { c as Dialect, d as Dialects, a0 as NormalizationStrategy, aH as NullOrdering, E as Expression, bo as TypeAnnotator, $ as DataTypeExprKind, aJ as IdentifierExpr, av as JsonPathTokenizer, l as TokenType, m as Tokenizer, _ as TokenPair, i as Parser, b5 as DataTypeExpr, bp as ShowExpr, df as DirectoryStageExpr, dg as UseExpr, dh as TagsExpr, b8 as CreateExpr, a6 as CommandExpr, c$ as LateralExpr, ad as TableExpr, di as PutExpr, dj as LocationPropertyExpr, dk as VarExpr, dl as ForeignKeyExpr, dm as FileFormatPropertyExpr, dn as CredentialsPropertyExpr, dp as SemanticViewExpr, dq as SetExpr, G as Generator, bB as NthValueExpr, aj as PropertiesLocation, dr as PropertiesExpr, aI as ValuesExpr, ds as ToNumberExpr, bQ as TimestampFromPartsExpr, at as CastExpr, ap as TryCastExpr, dt as LogExpr, bF as GreatestExpr, bG as LeastExpr, bH as GeneratorExpr, ag as UnnestExpr, du as DescribeExpr, bg as GeneratedAsIdentityColumnConstraintExpr, dv as ClusterExpr, dw as StructExpr, co as ApproxQuantileExpr, cR as AlterSetExpr, aC as StrToTimeExpr, dx as TimestampSubExpr, dy as JsonExtractExpr, am as TimeToStrExpr, dz as DateSubExpr, cO as SelectExpr, dA as ArrayAggExpr, cS as ArrayExpr, be as CurrentDateExpr, dB as DotExpr, dC as ModelAttributeExpr, ck as FormatExpr, dD as SplitPartExpr, bi as UniformExpr } from '../tokens-VcMD09XM.cjs';
2
+
3
+ declare class SnowflakeJsonPathTokenizer extends JsonPathTokenizer {
4
+ static get SINGLE_TOKENS(): Record<string, TokenType>;
5
+ }
6
+ declare class SnowflakeTokenizer extends Tokenizer {
7
+ static get STRING_ESCAPES(): string[];
8
+ static get HEX_STRINGS(): [string, string][];
9
+ static get RAW_STRINGS(): string[];
10
+ static get COMMENTS(): TokenPair[];
11
+ static NESTED_COMMENTS: boolean;
12
+ static get ORIGINAL_KEYWORDS(): Record<string, TokenType>;
13
+ static get SINGLE_TOKENS(): Record<string, TokenType>;
14
+ static get VAR_SINGLE_TOKENS(): Set<string>;
15
+ static get COMMANDS(): Set<TokenType>;
16
+ }
17
+ declare class SnowflakeParser extends Parser {
18
+ static get ID_VAR_TOKENS(): Set<TokenType>;
19
+ static IDENTIFY_PIVOT_STRINGS: boolean;
20
+ static DEFAULT_SAMPLING_METHOD: "BERNOULLI";
21
+ static COLON_IS_VARIANT_EXTRACT: boolean;
22
+ static JSON_EXTRACT_REQUIRES_JSON_EXPRESSION: boolean;
23
+ static get TABLE_ALIAS_TOKENS(): Set<TokenType>;
24
+ static get COLON_PLACEHOLDER_TOKENS(): Set<TokenType>;
25
+ static get NO_PAREN_FUNCTIONS(): Partial<Record<TokenType, typeof Expression>>;
26
+ static get FUNCTIONS(): Record<string, (args: Expression[], options: {
27
+ dialect: Dialect;
28
+ }) => Expression>;
29
+ static get FUNCTION_PARSERS(): Partial<Record<string, (this: Parser) => Expression | undefined>>;
30
+ static get TIMESTAMPS(): Set<TokenType>;
31
+ static get ALTER_PARSERS(): Partial<Record<string, (this: Parser) => Expression | Expression[] | undefined>>;
32
+ static get STATEMENT_PARSERS(): Partial<Record<TokenType, (this: Parser) => Expression | undefined>>;
33
+ static get PROPERTY_PARSERS(): Record<string, (this: Parser, ...args: unknown[]) => Expression | Expression[] | undefined>;
34
+ static get TYPE_CONVERTERS(): {
35
+ decimal: (dtype: DataTypeExpr) => DataTypeExpr;
36
+ };
37
+ static get SHOW_PARSERS(): {
38
+ DATABASES: (this: Parser) => ShowExpr;
39
+ 'TERSE DATABASES': (this: Parser) => ShowExpr;
40
+ SCHEMAS: (this: Parser) => ShowExpr;
41
+ 'TERSE SCHEMAS': (this: Parser) => ShowExpr;
42
+ OBJECTS: (this: Parser) => ShowExpr;
43
+ 'TERSE OBJECTS': (this: Parser) => ShowExpr;
44
+ TABLES: (this: Parser) => ShowExpr;
45
+ 'TERSE TABLES': (this: Parser) => ShowExpr;
46
+ VIEWS: (this: Parser) => ShowExpr;
47
+ 'TERSE VIEWS': (this: Parser) => ShowExpr;
48
+ 'PRIMARY KEYS': (this: Parser) => ShowExpr;
49
+ 'TERSE PRIMARY KEYS': (this: Parser) => ShowExpr;
50
+ 'IMPORTED KEYS': (this: Parser) => ShowExpr;
51
+ 'TERSE IMPORTED KEYS': (this: Parser) => ShowExpr;
52
+ 'UNIQUE KEYS': (this: Parser) => ShowExpr;
53
+ 'TERSE UNIQUE KEYS': (this: Parser) => ShowExpr;
54
+ SEQUENCES: (this: Parser) => ShowExpr;
55
+ 'TERSE SEQUENCES': (this: Parser) => ShowExpr;
56
+ STAGES: (this: Parser) => ShowExpr;
57
+ COLUMNS: (this: Parser) => ShowExpr;
58
+ USERS: (this: Parser) => ShowExpr;
59
+ 'TERSE USERS': (this: Parser) => ShowExpr;
60
+ 'FILE FORMATS': (this: Parser) => ShowExpr;
61
+ FUNCTIONS: (this: Parser) => ShowExpr;
62
+ PROCEDURES: (this: Parser) => ShowExpr;
63
+ WAREHOUSES: (this: Parser) => ShowExpr;
64
+ };
65
+ static get CONSTRAINT_PARSERS(): Partial<Record<string, (this: Parser, ...args: unknown[]) => Expression | Expression[] | undefined>>;
66
+ static get STAGED_FILE_SINGLE_TOKENS(): Set<TokenType>;
67
+ static get FLATTEN_COLUMNS(): string[];
68
+ static get SCHEMA_KINDS(): Set<string>;
69
+ static get NON_TABLE_CREATABLES(): Set<string>;
70
+ static get LAMBDAS(): Partial<Record<TokenType, (this: Parser, expressions: Expression[]) => Expression>>;
71
+ static get COLUMN_OPERATORS(): Partial<Record<TokenType, undefined | ((this: Parser, this_?: Expression, to?: Expression) => Expression)>>;
72
+ parseDirectory(): DirectoryStageExpr;
73
+ parseUse(): UseExpr;
74
+ negateRange(thisNode?: Expression): Expression | undefined;
75
+ parseTag(): TagsExpr;
76
+ parseWithConstraint(): Expression | undefined;
77
+ parseWithProperty(): Expression | Expression[] | undefined;
78
+ parseCreate(): CreateExpr | CommandExpr;
79
+ parseDatePart(): Expression | undefined;
80
+ parseBracketKeyValue(options?: {
81
+ isMap?: boolean;
82
+ }): Expression | undefined;
83
+ parseLateral(): LateralExpr | undefined;
84
+ parseTableParts(options?: {
85
+ schema?: boolean;
86
+ isDbReference?: boolean;
87
+ wildcard?: boolean;
88
+ }): TableExpr;
89
+ parseTable(options?: {
90
+ schema?: boolean;
91
+ joins?: boolean;
92
+ aliasTokens?: Set<TokenType>;
93
+ parseBracket?: boolean;
94
+ isDbReference?: boolean;
95
+ parsePartition?: boolean;
96
+ consumePipe?: boolean;
97
+ }): Expression | undefined;
98
+ parseIdVar(options?: {
99
+ anyToken?: boolean;
100
+ tokens?: Set<TokenType>;
101
+ }): Expression | undefined;
102
+ parseShowSnowflake(thisNode: string): ShowExpr;
103
+ parsePut(): PutExpr | CommandExpr;
104
+ parseGet(): Expression | undefined;
105
+ parseLocationProperty(): LocationPropertyExpr;
106
+ parseFileLocation(): Expression | undefined;
107
+ parseLocationPath(): VarExpr;
108
+ parseLambdaArg(): Expression | undefined;
109
+ parseForeignKey(): ForeignKeyExpr;
110
+ parseFileFormatProperty(): FileFormatPropertyExpr;
111
+ parseCredentialsProperty(): CredentialsPropertyExpr;
112
+ parseSemanticView(): SemanticViewExpr;
113
+ parseSet(options?: {
114
+ unset?: boolean;
115
+ tag?: boolean;
116
+ }): SetExpr | CommandExpr;
117
+ parseWindow(thisNode?: Expression, options?: {
118
+ alias?: boolean;
119
+ }): Expression | undefined;
120
+ }
121
+ declare class SnowflakeGenerator extends Generator {
122
+ static get AFTER_HAVING_MODIFIER_TRANSFORMS(): Map<string, (this: Generator, e: Expression) => string>;
123
+ static readonly SELECT_KINDS: string[];
124
+ static TRY_SUPPORTED: boolean;
125
+ static SUPPORTS_UESCAPE: boolean;
126
+ static PARAMETER_TOKEN: string;
127
+ static MATCHED_BY_SOURCE: boolean;
128
+ static SINGLE_STRING_INTERVAL: boolean;
129
+ static JOIN_HINTS: boolean;
130
+ static TABLE_HINTS: boolean;
131
+ static QUERY_HINTS: boolean;
132
+ static AGGREGATE_FILTER_SUPPORTED: boolean;
133
+ static SUPPORTS_TABLE_COPY: boolean;
134
+ static COLLATE_IS_FUNC: boolean;
135
+ static LIMIT_ONLY_LITERALS: boolean;
136
+ static JSON_KEY_VALUE_PAIR_SEP: string;
137
+ static INSERT_OVERWRITE: string;
138
+ static get STRUCT_DELIMITER(): string[];
139
+ static COPY_PARAMS_ARE_WRAPPED: boolean;
140
+ static COPY_PARAMS_EQ_REQUIRED: boolean;
141
+ static STAR_EXCEPT: string;
142
+ static SUPPORTS_EXPLODING_PROJECTIONS: boolean;
143
+ static ARRAY_CONCAT_IS_VAR_LEN: boolean;
144
+ static SUPPORTS_CONVERT_TIMEZONE: boolean;
145
+ static EXCEPT_INTERSECT_SUPPORT_ALL_CLAUSE: boolean;
146
+ static SUPPORTS_MEDIAN: boolean;
147
+ static ARRAY_SIZE_NAME: string;
148
+ static SUPPORTS_DECODE_CASE: boolean;
149
+ static IS_BOOL_ALLOWED: boolean;
150
+ static DIRECTED_JOINS: boolean;
151
+ static get ORIGINAL_TRANSFORMS(): Map<typeof Expression, (this: Generator, e: any) => string>;
152
+ nthValueSql(expression: NthValueExpr): string;
153
+ static get SUPPORTED_JSON_PATH_PARTS(): Set<typeof Expression>;
154
+ static get TYPE_MAPPING(): Map<string, string>;
155
+ static get TOKEN_MAPPING(): Partial<Record<TokenType, string>>;
156
+ static get PROPERTIES_LOCATION(): Map<typeof Expression, PropertiesLocation>;
157
+ static get UNSUPPORTED_VALUES_EXPRESSIONS(): Set<typeof Expression>;
158
+ static get RESPECT_IGNORE_NULLS_UNSUPPORTED_EXPRESSIONS(): (typeof Expression)[];
159
+ withProperties(properties: PropertiesExpr): string;
160
+ valuesSql(expression: ValuesExpr, options?: {
161
+ valuesAsTable?: boolean;
162
+ }): string;
163
+ dataTypeSql(expression: DataTypeExpr): string;
164
+ toNumberSql(expression: ToNumberExpr): string;
165
+ timestampFromPartsSql(expression: TimestampFromPartsExpr): string;
166
+ castSql(expression: CastExpr, options?: {
167
+ safePrefix?: string;
168
+ }): string;
169
+ tryCastSql(expression: TryCastExpr): string;
170
+ logSql(expression: LogExpr): string;
171
+ greatestSql(expression: GreatestExpr): string;
172
+ leastSql(expression: LeastExpr): string;
173
+ generatorSql(expression: GeneratorExpr): string;
174
+ unnestSql(expression: UnnestExpr): string;
175
+ showSql(expression: ShowExpr): string;
176
+ describeSql(expression: DescribeExpr): string;
177
+ generatedAsIdentityColumnConstraintSql(expression: GeneratedAsIdentityColumnConstraintExpr): string;
178
+ clusterSql(expression: ClusterExpr): string;
179
+ structSql(expression: StructExpr): string;
180
+ approxQuantileSql(expression: ApproxQuantileExpr): string;
181
+ alterSetSql(expression: AlterSetExpr): string;
182
+ strToTimeSql(expression: StrToTimeExpr): string;
183
+ timestampSubSql(expression: TimestampSubExpr): string;
184
+ jsonExtractSql(expression: JsonExtractExpr): string;
185
+ timeToStrSql(expression: TimeToStrExpr): string;
186
+ dateSubSql(expression: DateSubExpr): string;
187
+ selectSql(expression: SelectExpr): string;
188
+ createableSql(expression: CreateExpr, locations: Map<PropertiesLocation, Expression[]>): string;
189
+ arrayAggSql(expression: ArrayAggExpr): string;
190
+ arraySql(expression: ArrayExpr): string;
191
+ currentDateSql(expression: CurrentDateExpr): string;
192
+ dotSql(expression: DotExpr): string;
193
+ modelAttributeSql(expression: ModelAttributeExpr): string;
194
+ formatSql(expression: FormatExpr): string;
195
+ splitPartSql(expression: SplitPartExpr): string;
196
+ uniformSql(expression: UniformExpr): string;
197
+ }
198
+ declare class Snowflake extends Dialect {
199
+ static DIALECT_NAME: Dialects;
200
+ static get NORMALIZATION_STRATEGY(): NormalizationStrategy;
201
+ static get NULL_ORDERING(): NullOrdering;
202
+ static TIME_FORMAT: string;
203
+ static SUPPORTS_USER_DEFINED_TYPES: boolean;
204
+ static get EXPRESSION_METADATA(): Map<typeof Expression, {
205
+ annotator?: (annotator: TypeAnnotator, expression: any) => void;
206
+ returns?: DataTypeExprKind | string;
207
+ }>;
208
+ static SUPPORTS_SEMI_ANTI_JOIN: boolean;
209
+ static PREFER_CTE_ALIAS_COLUMN: boolean;
210
+ static TABLESAMPLE_SIZE_IS_PERCENT: boolean;
211
+ static COPY_PARAMS_ARE_CSV: boolean;
212
+ static ARRAY_AGG_INCLUDES_NULLS: undefined;
213
+ static ARRAY_FUNCS_PROPAGATES_NULLS: boolean;
214
+ static ALTER_TABLE_ADD_REQUIRED_FOR_EACH_COLUMN: boolean;
215
+ static TRY_CAST_REQUIRES_STRING: boolean;
216
+ static SUPPORTS_ALIAS_REFS_IN_JOIN_CONDITIONS: boolean;
217
+ static LEAST_GREATEST_IGNORES_NULLS: boolean;
218
+ static INITCAP_DEFAULT_DELIMITER_CHARS: string;
219
+ static get INVERSE_TIME_MAPPING(): {
220
+ T: string;
221
+ '%Y': string;
222
+ '%y': string;
223
+ '%B': string;
224
+ '%b': string;
225
+ '%m': string;
226
+ '%d': string;
227
+ '%-d': string;
228
+ '%a': string;
229
+ '%w': string;
230
+ '%H': string;
231
+ '%I': string;
232
+ '%M': string;
233
+ '%S': string;
234
+ '%f_nine': string;
235
+ '%f_zero': string;
236
+ '%f_one': string;
237
+ '%f_two': string;
238
+ '%f_three': string;
239
+ '%f_four': string;
240
+ '%f_five': string;
241
+ '%f': string;
242
+ '%f_seven': string;
243
+ '%f_eight': string;
244
+ '%z': string;
245
+ '%:z': string;
246
+ '%-z': string;
247
+ '%p': string;
248
+ '%A': string;
249
+ '%j': string;
250
+ '%C': string;
251
+ };
252
+ static get TIME_MAPPING(): {
253
+ YYYY: string;
254
+ yyyy: string;
255
+ YY: string;
256
+ yy: string;
257
+ MMMM: string;
258
+ mmmm: string;
259
+ MON: string;
260
+ mon: string;
261
+ MM: string;
262
+ mm: string;
263
+ DD: string;
264
+ dd: string;
265
+ DY: string;
266
+ dy: string;
267
+ HH24: string;
268
+ hh24: string;
269
+ HH12: string;
270
+ hh12: string;
271
+ MI: string;
272
+ mi: string;
273
+ SS: string;
274
+ ss: string;
275
+ FF: string;
276
+ ff: string;
277
+ FF0: string;
278
+ ff0: string;
279
+ FF1: string;
280
+ ff1: string;
281
+ FF2: string;
282
+ ff2: string;
283
+ FF3: string;
284
+ ff3: string;
285
+ FF4: string;
286
+ ff4: string;
287
+ FF5: string;
288
+ ff5: string;
289
+ FF6: string;
290
+ ff6: string;
291
+ FF7: string;
292
+ ff7: string;
293
+ FF8: string;
294
+ ff8: string;
295
+ FF9: string;
296
+ ff9: string;
297
+ TZHTZM: string;
298
+ tzhtzm: string;
299
+ 'TZH:TZM': string;
300
+ 'tzh:tzm': string;
301
+ TZH: string;
302
+ tzh: string;
303
+ '"T"': string;
304
+ AM: string;
305
+ am: string;
306
+ PM: string;
307
+ pm: string;
308
+ };
309
+ static get DATE_PART_MAPPING(): Record<string, string>;
310
+ static get PSEUDOCOLUMNS(): Set<string>;
311
+ canQuote(identifier: IdentifierExpr, options?: {
312
+ identify?: string | boolean;
313
+ }): boolean;
314
+ static JsonPathTokenizer: typeof SnowflakeJsonPathTokenizer;
315
+ static Tokenizer: typeof SnowflakeTokenizer;
316
+ static Parser: typeof SnowflakeParser;
317
+ static Generator: typeof SnowflakeGenerator;
318
+ }
319
+
320
+ export { Snowflake };
@@ -0,0 +1,320 @@
1
+ import { c as Dialect, d as Dialects, a0 as NormalizationStrategy, aH as NullOrdering, E as Expression, bo as TypeAnnotator, $ as DataTypeExprKind, aJ as IdentifierExpr, av as JsonPathTokenizer, l as TokenType, m as Tokenizer, _ as TokenPair, i as Parser, b5 as DataTypeExpr, bp as ShowExpr, df as DirectoryStageExpr, dg as UseExpr, dh as TagsExpr, b8 as CreateExpr, a6 as CommandExpr, c$ as LateralExpr, ad as TableExpr, di as PutExpr, dj as LocationPropertyExpr, dk as VarExpr, dl as ForeignKeyExpr, dm as FileFormatPropertyExpr, dn as CredentialsPropertyExpr, dp as SemanticViewExpr, dq as SetExpr, G as Generator, bB as NthValueExpr, aj as PropertiesLocation, dr as PropertiesExpr, aI as ValuesExpr, ds as ToNumberExpr, bQ as TimestampFromPartsExpr, at as CastExpr, ap as TryCastExpr, dt as LogExpr, bF as GreatestExpr, bG as LeastExpr, bH as GeneratorExpr, ag as UnnestExpr, du as DescribeExpr, bg as GeneratedAsIdentityColumnConstraintExpr, dv as ClusterExpr, dw as StructExpr, co as ApproxQuantileExpr, cR as AlterSetExpr, aC as StrToTimeExpr, dx as TimestampSubExpr, dy as JsonExtractExpr, am as TimeToStrExpr, dz as DateSubExpr, cO as SelectExpr, dA as ArrayAggExpr, cS as ArrayExpr, be as CurrentDateExpr, dB as DotExpr, dC as ModelAttributeExpr, ck as FormatExpr, dD as SplitPartExpr, bi as UniformExpr } from '../tokens-VcMD09XM.js';
2
+
3
+ declare class SnowflakeJsonPathTokenizer extends JsonPathTokenizer {
4
+ static get SINGLE_TOKENS(): Record<string, TokenType>;
5
+ }
6
+ declare class SnowflakeTokenizer extends Tokenizer {
7
+ static get STRING_ESCAPES(): string[];
8
+ static get HEX_STRINGS(): [string, string][];
9
+ static get RAW_STRINGS(): string[];
10
+ static get COMMENTS(): TokenPair[];
11
+ static NESTED_COMMENTS: boolean;
12
+ static get ORIGINAL_KEYWORDS(): Record<string, TokenType>;
13
+ static get SINGLE_TOKENS(): Record<string, TokenType>;
14
+ static get VAR_SINGLE_TOKENS(): Set<string>;
15
+ static get COMMANDS(): Set<TokenType>;
16
+ }
17
+ declare class SnowflakeParser extends Parser {
18
+ static get ID_VAR_TOKENS(): Set<TokenType>;
19
+ static IDENTIFY_PIVOT_STRINGS: boolean;
20
+ static DEFAULT_SAMPLING_METHOD: "BERNOULLI";
21
+ static COLON_IS_VARIANT_EXTRACT: boolean;
22
+ static JSON_EXTRACT_REQUIRES_JSON_EXPRESSION: boolean;
23
+ static get TABLE_ALIAS_TOKENS(): Set<TokenType>;
24
+ static get COLON_PLACEHOLDER_TOKENS(): Set<TokenType>;
25
+ static get NO_PAREN_FUNCTIONS(): Partial<Record<TokenType, typeof Expression>>;
26
+ static get FUNCTIONS(): Record<string, (args: Expression[], options: {
27
+ dialect: Dialect;
28
+ }) => Expression>;
29
+ static get FUNCTION_PARSERS(): Partial<Record<string, (this: Parser) => Expression | undefined>>;
30
+ static get TIMESTAMPS(): Set<TokenType>;
31
+ static get ALTER_PARSERS(): Partial<Record<string, (this: Parser) => Expression | Expression[] | undefined>>;
32
+ static get STATEMENT_PARSERS(): Partial<Record<TokenType, (this: Parser) => Expression | undefined>>;
33
+ static get PROPERTY_PARSERS(): Record<string, (this: Parser, ...args: unknown[]) => Expression | Expression[] | undefined>;
34
+ static get TYPE_CONVERTERS(): {
35
+ decimal: (dtype: DataTypeExpr) => DataTypeExpr;
36
+ };
37
+ static get SHOW_PARSERS(): {
38
+ DATABASES: (this: Parser) => ShowExpr;
39
+ 'TERSE DATABASES': (this: Parser) => ShowExpr;
40
+ SCHEMAS: (this: Parser) => ShowExpr;
41
+ 'TERSE SCHEMAS': (this: Parser) => ShowExpr;
42
+ OBJECTS: (this: Parser) => ShowExpr;
43
+ 'TERSE OBJECTS': (this: Parser) => ShowExpr;
44
+ TABLES: (this: Parser) => ShowExpr;
45
+ 'TERSE TABLES': (this: Parser) => ShowExpr;
46
+ VIEWS: (this: Parser) => ShowExpr;
47
+ 'TERSE VIEWS': (this: Parser) => ShowExpr;
48
+ 'PRIMARY KEYS': (this: Parser) => ShowExpr;
49
+ 'TERSE PRIMARY KEYS': (this: Parser) => ShowExpr;
50
+ 'IMPORTED KEYS': (this: Parser) => ShowExpr;
51
+ 'TERSE IMPORTED KEYS': (this: Parser) => ShowExpr;
52
+ 'UNIQUE KEYS': (this: Parser) => ShowExpr;
53
+ 'TERSE UNIQUE KEYS': (this: Parser) => ShowExpr;
54
+ SEQUENCES: (this: Parser) => ShowExpr;
55
+ 'TERSE SEQUENCES': (this: Parser) => ShowExpr;
56
+ STAGES: (this: Parser) => ShowExpr;
57
+ COLUMNS: (this: Parser) => ShowExpr;
58
+ USERS: (this: Parser) => ShowExpr;
59
+ 'TERSE USERS': (this: Parser) => ShowExpr;
60
+ 'FILE FORMATS': (this: Parser) => ShowExpr;
61
+ FUNCTIONS: (this: Parser) => ShowExpr;
62
+ PROCEDURES: (this: Parser) => ShowExpr;
63
+ WAREHOUSES: (this: Parser) => ShowExpr;
64
+ };
65
+ static get CONSTRAINT_PARSERS(): Partial<Record<string, (this: Parser, ...args: unknown[]) => Expression | Expression[] | undefined>>;
66
+ static get STAGED_FILE_SINGLE_TOKENS(): Set<TokenType>;
67
+ static get FLATTEN_COLUMNS(): string[];
68
+ static get SCHEMA_KINDS(): Set<string>;
69
+ static get NON_TABLE_CREATABLES(): Set<string>;
70
+ static get LAMBDAS(): Partial<Record<TokenType, (this: Parser, expressions: Expression[]) => Expression>>;
71
+ static get COLUMN_OPERATORS(): Partial<Record<TokenType, undefined | ((this: Parser, this_?: Expression, to?: Expression) => Expression)>>;
72
+ parseDirectory(): DirectoryStageExpr;
73
+ parseUse(): UseExpr;
74
+ negateRange(thisNode?: Expression): Expression | undefined;
75
+ parseTag(): TagsExpr;
76
+ parseWithConstraint(): Expression | undefined;
77
+ parseWithProperty(): Expression | Expression[] | undefined;
78
+ parseCreate(): CreateExpr | CommandExpr;
79
+ parseDatePart(): Expression | undefined;
80
+ parseBracketKeyValue(options?: {
81
+ isMap?: boolean;
82
+ }): Expression | undefined;
83
+ parseLateral(): LateralExpr | undefined;
84
+ parseTableParts(options?: {
85
+ schema?: boolean;
86
+ isDbReference?: boolean;
87
+ wildcard?: boolean;
88
+ }): TableExpr;
89
+ parseTable(options?: {
90
+ schema?: boolean;
91
+ joins?: boolean;
92
+ aliasTokens?: Set<TokenType>;
93
+ parseBracket?: boolean;
94
+ isDbReference?: boolean;
95
+ parsePartition?: boolean;
96
+ consumePipe?: boolean;
97
+ }): Expression | undefined;
98
+ parseIdVar(options?: {
99
+ anyToken?: boolean;
100
+ tokens?: Set<TokenType>;
101
+ }): Expression | undefined;
102
+ parseShowSnowflake(thisNode: string): ShowExpr;
103
+ parsePut(): PutExpr | CommandExpr;
104
+ parseGet(): Expression | undefined;
105
+ parseLocationProperty(): LocationPropertyExpr;
106
+ parseFileLocation(): Expression | undefined;
107
+ parseLocationPath(): VarExpr;
108
+ parseLambdaArg(): Expression | undefined;
109
+ parseForeignKey(): ForeignKeyExpr;
110
+ parseFileFormatProperty(): FileFormatPropertyExpr;
111
+ parseCredentialsProperty(): CredentialsPropertyExpr;
112
+ parseSemanticView(): SemanticViewExpr;
113
+ parseSet(options?: {
114
+ unset?: boolean;
115
+ tag?: boolean;
116
+ }): SetExpr | CommandExpr;
117
+ parseWindow(thisNode?: Expression, options?: {
118
+ alias?: boolean;
119
+ }): Expression | undefined;
120
+ }
121
+ declare class SnowflakeGenerator extends Generator {
122
+ static get AFTER_HAVING_MODIFIER_TRANSFORMS(): Map<string, (this: Generator, e: Expression) => string>;
123
+ static readonly SELECT_KINDS: string[];
124
+ static TRY_SUPPORTED: boolean;
125
+ static SUPPORTS_UESCAPE: boolean;
126
+ static PARAMETER_TOKEN: string;
127
+ static MATCHED_BY_SOURCE: boolean;
128
+ static SINGLE_STRING_INTERVAL: boolean;
129
+ static JOIN_HINTS: boolean;
130
+ static TABLE_HINTS: boolean;
131
+ static QUERY_HINTS: boolean;
132
+ static AGGREGATE_FILTER_SUPPORTED: boolean;
133
+ static SUPPORTS_TABLE_COPY: boolean;
134
+ static COLLATE_IS_FUNC: boolean;
135
+ static LIMIT_ONLY_LITERALS: boolean;
136
+ static JSON_KEY_VALUE_PAIR_SEP: string;
137
+ static INSERT_OVERWRITE: string;
138
+ static get STRUCT_DELIMITER(): string[];
139
+ static COPY_PARAMS_ARE_WRAPPED: boolean;
140
+ static COPY_PARAMS_EQ_REQUIRED: boolean;
141
+ static STAR_EXCEPT: string;
142
+ static SUPPORTS_EXPLODING_PROJECTIONS: boolean;
143
+ static ARRAY_CONCAT_IS_VAR_LEN: boolean;
144
+ static SUPPORTS_CONVERT_TIMEZONE: boolean;
145
+ static EXCEPT_INTERSECT_SUPPORT_ALL_CLAUSE: boolean;
146
+ static SUPPORTS_MEDIAN: boolean;
147
+ static ARRAY_SIZE_NAME: string;
148
+ static SUPPORTS_DECODE_CASE: boolean;
149
+ static IS_BOOL_ALLOWED: boolean;
150
+ static DIRECTED_JOINS: boolean;
151
+ static get ORIGINAL_TRANSFORMS(): Map<typeof Expression, (this: Generator, e: any) => string>;
152
+ nthValueSql(expression: NthValueExpr): string;
153
+ static get SUPPORTED_JSON_PATH_PARTS(): Set<typeof Expression>;
154
+ static get TYPE_MAPPING(): Map<string, string>;
155
+ static get TOKEN_MAPPING(): Partial<Record<TokenType, string>>;
156
+ static get PROPERTIES_LOCATION(): Map<typeof Expression, PropertiesLocation>;
157
+ static get UNSUPPORTED_VALUES_EXPRESSIONS(): Set<typeof Expression>;
158
+ static get RESPECT_IGNORE_NULLS_UNSUPPORTED_EXPRESSIONS(): (typeof Expression)[];
159
+ withProperties(properties: PropertiesExpr): string;
160
+ valuesSql(expression: ValuesExpr, options?: {
161
+ valuesAsTable?: boolean;
162
+ }): string;
163
+ dataTypeSql(expression: DataTypeExpr): string;
164
+ toNumberSql(expression: ToNumberExpr): string;
165
+ timestampFromPartsSql(expression: TimestampFromPartsExpr): string;
166
+ castSql(expression: CastExpr, options?: {
167
+ safePrefix?: string;
168
+ }): string;
169
+ tryCastSql(expression: TryCastExpr): string;
170
+ logSql(expression: LogExpr): string;
171
+ greatestSql(expression: GreatestExpr): string;
172
+ leastSql(expression: LeastExpr): string;
173
+ generatorSql(expression: GeneratorExpr): string;
174
+ unnestSql(expression: UnnestExpr): string;
175
+ showSql(expression: ShowExpr): string;
176
+ describeSql(expression: DescribeExpr): string;
177
+ generatedAsIdentityColumnConstraintSql(expression: GeneratedAsIdentityColumnConstraintExpr): string;
178
+ clusterSql(expression: ClusterExpr): string;
179
+ structSql(expression: StructExpr): string;
180
+ approxQuantileSql(expression: ApproxQuantileExpr): string;
181
+ alterSetSql(expression: AlterSetExpr): string;
182
+ strToTimeSql(expression: StrToTimeExpr): string;
183
+ timestampSubSql(expression: TimestampSubExpr): string;
184
+ jsonExtractSql(expression: JsonExtractExpr): string;
185
+ timeToStrSql(expression: TimeToStrExpr): string;
186
+ dateSubSql(expression: DateSubExpr): string;
187
+ selectSql(expression: SelectExpr): string;
188
+ createableSql(expression: CreateExpr, locations: Map<PropertiesLocation, Expression[]>): string;
189
+ arrayAggSql(expression: ArrayAggExpr): string;
190
+ arraySql(expression: ArrayExpr): string;
191
+ currentDateSql(expression: CurrentDateExpr): string;
192
+ dotSql(expression: DotExpr): string;
193
+ modelAttributeSql(expression: ModelAttributeExpr): string;
194
+ formatSql(expression: FormatExpr): string;
195
+ splitPartSql(expression: SplitPartExpr): string;
196
+ uniformSql(expression: UniformExpr): string;
197
+ }
198
+ declare class Snowflake extends Dialect {
199
+ static DIALECT_NAME: Dialects;
200
+ static get NORMALIZATION_STRATEGY(): NormalizationStrategy;
201
+ static get NULL_ORDERING(): NullOrdering;
202
+ static TIME_FORMAT: string;
203
+ static SUPPORTS_USER_DEFINED_TYPES: boolean;
204
+ static get EXPRESSION_METADATA(): Map<typeof Expression, {
205
+ annotator?: (annotator: TypeAnnotator, expression: any) => void;
206
+ returns?: DataTypeExprKind | string;
207
+ }>;
208
+ static SUPPORTS_SEMI_ANTI_JOIN: boolean;
209
+ static PREFER_CTE_ALIAS_COLUMN: boolean;
210
+ static TABLESAMPLE_SIZE_IS_PERCENT: boolean;
211
+ static COPY_PARAMS_ARE_CSV: boolean;
212
+ static ARRAY_AGG_INCLUDES_NULLS: undefined;
213
+ static ARRAY_FUNCS_PROPAGATES_NULLS: boolean;
214
+ static ALTER_TABLE_ADD_REQUIRED_FOR_EACH_COLUMN: boolean;
215
+ static TRY_CAST_REQUIRES_STRING: boolean;
216
+ static SUPPORTS_ALIAS_REFS_IN_JOIN_CONDITIONS: boolean;
217
+ static LEAST_GREATEST_IGNORES_NULLS: boolean;
218
+ static INITCAP_DEFAULT_DELIMITER_CHARS: string;
219
+ static get INVERSE_TIME_MAPPING(): {
220
+ T: string;
221
+ '%Y': string;
222
+ '%y': string;
223
+ '%B': string;
224
+ '%b': string;
225
+ '%m': string;
226
+ '%d': string;
227
+ '%-d': string;
228
+ '%a': string;
229
+ '%w': string;
230
+ '%H': string;
231
+ '%I': string;
232
+ '%M': string;
233
+ '%S': string;
234
+ '%f_nine': string;
235
+ '%f_zero': string;
236
+ '%f_one': string;
237
+ '%f_two': string;
238
+ '%f_three': string;
239
+ '%f_four': string;
240
+ '%f_five': string;
241
+ '%f': string;
242
+ '%f_seven': string;
243
+ '%f_eight': string;
244
+ '%z': string;
245
+ '%:z': string;
246
+ '%-z': string;
247
+ '%p': string;
248
+ '%A': string;
249
+ '%j': string;
250
+ '%C': string;
251
+ };
252
+ static get TIME_MAPPING(): {
253
+ YYYY: string;
254
+ yyyy: string;
255
+ YY: string;
256
+ yy: string;
257
+ MMMM: string;
258
+ mmmm: string;
259
+ MON: string;
260
+ mon: string;
261
+ MM: string;
262
+ mm: string;
263
+ DD: string;
264
+ dd: string;
265
+ DY: string;
266
+ dy: string;
267
+ HH24: string;
268
+ hh24: string;
269
+ HH12: string;
270
+ hh12: string;
271
+ MI: string;
272
+ mi: string;
273
+ SS: string;
274
+ ss: string;
275
+ FF: string;
276
+ ff: string;
277
+ FF0: string;
278
+ ff0: string;
279
+ FF1: string;
280
+ ff1: string;
281
+ FF2: string;
282
+ ff2: string;
283
+ FF3: string;
284
+ ff3: string;
285
+ FF4: string;
286
+ ff4: string;
287
+ FF5: string;
288
+ ff5: string;
289
+ FF6: string;
290
+ ff6: string;
291
+ FF7: string;
292
+ ff7: string;
293
+ FF8: string;
294
+ ff8: string;
295
+ FF9: string;
296
+ ff9: string;
297
+ TZHTZM: string;
298
+ tzhtzm: string;
299
+ 'TZH:TZM': string;
300
+ 'tzh:tzm': string;
301
+ TZH: string;
302
+ tzh: string;
303
+ '"T"': string;
304
+ AM: string;
305
+ am: string;
306
+ PM: string;
307
+ pm: string;
308
+ };
309
+ static get DATE_PART_MAPPING(): Record<string, string>;
310
+ static get PSEUDOCOLUMNS(): Set<string>;
311
+ canQuote(identifier: IdentifierExpr, options?: {
312
+ identify?: string | boolean;
313
+ }): boolean;
314
+ static JsonPathTokenizer: typeof SnowflakeJsonPathTokenizer;
315
+ static Tokenizer: typeof SnowflakeTokenizer;
316
+ static Parser: typeof SnowflakeParser;
317
+ static Generator: typeof SnowflakeGenerator;
318
+ }
319
+
320
+ export { Snowflake };