@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.
- package/CHANGELOG.md +12 -0
- package/README.md +8 -14
- package/README.npm.md +8 -14
- package/README.repo.md +1 -2
- package/dist/chunk-2YNOERAO.cjs +2 -0
- package/dist/chunk-2YNOERAO.cjs.map +1 -0
- package/dist/chunk-2Z3O2CFM.cjs +19 -0
- package/dist/chunk-2Z3O2CFM.cjs.map +1 -0
- package/dist/chunk-4ZMKB6PV.cjs +2 -0
- package/dist/chunk-4ZMKB6PV.cjs.map +1 -0
- package/dist/chunk-53OWF4GG.js +2 -0
- package/dist/chunk-53OWF4GG.js.map +1 -0
- package/dist/chunk-C4CLTVOW.cjs +2 -0
- package/dist/chunk-C4CLTVOW.cjs.map +1 -0
- package/dist/chunk-DOKMTZYO.cjs +4 -0
- package/dist/chunk-DOKMTZYO.cjs.map +1 -0
- package/dist/chunk-FCGUTI7Y.js +2 -0
- package/dist/chunk-FCGUTI7Y.js.map +1 -0
- package/dist/chunk-IPCIXWCY.js +2 -0
- package/dist/chunk-IPCIXWCY.js.map +1 -0
- package/dist/chunk-KCNOE4DZ.js +19 -0
- package/dist/chunk-KCNOE4DZ.js.map +1 -0
- package/dist/chunk-NRJHX2GZ.js +2 -0
- package/dist/chunk-NRJHX2GZ.js.map +1 -0
- package/dist/chunk-O2J5RKBN.js +2 -0
- package/dist/chunk-O2J5RKBN.js.map +1 -0
- package/dist/chunk-PXUASP5I.js +2 -0
- package/dist/chunk-PXUASP5I.js.map +1 -0
- package/dist/chunk-R7C3ZHVK.cjs +2 -0
- package/dist/chunk-R7C3ZHVK.cjs.map +1 -0
- package/dist/chunk-UHWHUDLE.cjs +2 -0
- package/dist/chunk-UHWHUDLE.cjs.map +1 -0
- package/dist/chunk-WRNYJ54A.cjs +2 -0
- package/dist/chunk-WRNYJ54A.cjs.map +1 -0
- package/dist/chunk-XZQFOICX.cjs +3 -0
- package/dist/chunk-XZQFOICX.cjs.map +1 -0
- package/dist/chunk-YLOQRUXC.js +2 -0
- package/dist/chunk-YLOQRUXC.js.map +1 -0
- package/dist/chunk-YSS2WVCM.cjs +2 -0
- package/dist/chunk-YSS2WVCM.cjs.map +1 -0
- package/dist/chunk-Z5V6VOIN.js +3 -0
- package/dist/chunk-Z5V6VOIN.js.map +1 -0
- package/dist/chunk-ZBFGQPJR.js +4 -0
- package/dist/chunk-ZBFGQPJR.js.map +1 -0
- package/dist/dialects/athena.cjs +2 -0
- package/dist/dialects/athena.cjs.map +1 -0
- package/dist/dialects/athena.d.cts +66 -0
- package/dist/dialects/athena.d.ts +66 -0
- package/dist/dialects/athena.js +2 -0
- package/dist/dialects/athena.js.map +1 -0
- package/dist/dialects/bigquery.cjs +3 -0
- package/dist/dialects/bigquery.cjs.map +1 -0
- package/dist/dialects/bigquery.d.cts +651 -0
- package/dist/dialects/bigquery.d.ts +651 -0
- package/dist/dialects/bigquery.js +3 -0
- package/dist/dialects/bigquery.js.map +1 -0
- package/dist/dialects/clickhouse.cjs +2 -0
- package/dist/dialects/clickhouse.cjs.map +1 -0
- package/dist/dialects/clickhouse.d.cts +634 -0
- package/dist/dialects/clickhouse.d.ts +634 -0
- package/dist/dialects/clickhouse.js +2 -0
- package/dist/dialects/clickhouse.js.map +1 -0
- package/dist/dialects/databricks.cjs +2 -0
- package/dist/dialects/databricks.cjs.map +1 -0
- package/dist/dialects/databricks.d.cts +484 -0
- package/dist/dialects/databricks.d.ts +484 -0
- package/dist/dialects/databricks.js +2 -0
- package/dist/dialects/databricks.js.map +1 -0
- package/dist/dialects/doris.cjs +2 -0
- package/dist/dialects/doris.cjs.map +1 -0
- package/dist/dialects/doris.d.cts +484 -0
- package/dist/dialects/doris.d.ts +484 -0
- package/dist/dialects/doris.js +2 -0
- package/dist/dialects/doris.js.map +1 -0
- package/dist/dialects/dremio.cjs +2 -0
- package/dist/dialects/dremio.cjs.map +1 -0
- package/dist/dialects/dremio.d.cts +522 -0
- package/dist/dialects/dremio.d.ts +522 -0
- package/dist/dialects/dremio.js +2 -0
- package/dist/dialects/dremio.js.map +1 -0
- package/dist/dialects/drill.cjs +2 -0
- package/dist/dialects/drill.cjs.map +1 -0
- package/dist/dialects/drill.d.cts +512 -0
- package/dist/dialects/drill.d.ts +512 -0
- package/dist/dialects/drill.js +2 -0
- package/dist/dialects/drill.js.map +1 -0
- package/dist/dialects/druid.cjs +2 -0
- package/dist/dialects/druid.cjs.map +1 -0
- package/dist/dialects/druid.d.cts +17 -0
- package/dist/dialects/druid.d.ts +17 -0
- package/dist/dialects/druid.js +2 -0
- package/dist/dialects/druid.js.map +1 -0
- package/dist/dialects/duckdb.cjs +86 -0
- package/dist/dialects/duckdb.cjs.map +1 -0
- package/dist/dialects/duckdb.d.cts +756 -0
- package/dist/dialects/duckdb.d.ts +756 -0
- package/dist/dialects/duckdb.js +86 -0
- package/dist/dialects/duckdb.js.map +1 -0
- package/dist/dialects/dune.cjs +2 -0
- package/dist/dialects/dune.cjs.map +1 -0
- package/dist/dialects/dune.d.cts +21 -0
- package/dist/dialects/dune.d.ts +21 -0
- package/dist/dialects/dune.js +2 -0
- package/dist/dialects/dune.js.map +1 -0
- package/dist/dialects/exasol.cjs +2 -0
- package/dist/dialects/exasol.cjs.map +1 -0
- package/dist/dialects/exasol.d.cts +507 -0
- package/dist/dialects/exasol.d.ts +507 -0
- package/dist/dialects/exasol.js +2 -0
- package/dist/dialects/exasol.js.map +1 -0
- package/dist/dialects/fabric.cjs +2 -0
- package/dist/dialects/fabric.cjs.map +1 -0
- package/dist/dialects/fabric.d.cts +463 -0
- package/dist/dialects/fabric.d.ts +463 -0
- package/dist/dialects/fabric.js +2 -0
- package/dist/dialects/fabric.js.map +1 -0
- package/dist/dialects/hive.cjs +2 -0
- package/dist/dialects/hive.cjs.map +1 -0
- package/dist/dialects/hive.d.cts +585 -0
- package/dist/dialects/hive.d.ts +585 -0
- package/dist/dialects/hive.js +2 -0
- package/dist/dialects/hive.js.map +1 -0
- package/dist/dialects/materialize.cjs +2 -0
- package/dist/dialects/materialize.cjs.map +1 -0
- package/dist/dialects/materialize.d.cts +890 -0
- package/dist/dialects/materialize.d.ts +890 -0
- package/dist/dialects/materialize.js +2 -0
- package/dist/dialects/materialize.js.map +1 -0
- package/dist/dialects/mysql.cjs +2 -0
- package/dist/dialects/mysql.cjs.map +1 -0
- package/dist/dialects/mysql.d.cts +292 -0
- package/dist/dialects/mysql.d.ts +292 -0
- package/dist/dialects/mysql.js +2 -0
- package/dist/dialects/mysql.js.map +1 -0
- package/dist/dialects/oracle.cjs +2 -0
- package/dist/dialects/oracle.cjs.map +1 -0
- package/dist/dialects/oracle.d.cts +539 -0
- package/dist/dialects/oracle.d.ts +539 -0
- package/dist/dialects/oracle.js +2 -0
- package/dist/dialects/oracle.js.map +1 -0
- package/dist/dialects/postgres.cjs +2 -0
- package/dist/dialects/postgres.cjs.map +1 -0
- package/dist/dialects/postgres.d.cts +587 -0
- package/dist/dialects/postgres.d.ts +587 -0
- package/dist/dialects/postgres.js +2 -0
- package/dist/dialects/postgres.js.map +1 -0
- package/dist/dialects/presto.cjs +2 -0
- package/dist/dialects/presto.cjs.map +1 -0
- package/dist/dialects/presto.d.cts +173 -0
- package/dist/dialects/presto.d.ts +173 -0
- package/dist/dialects/presto.js +2 -0
- package/dist/dialects/presto.js.map +1 -0
- package/dist/dialects/prql.cjs +2 -0
- package/dist/dialects/prql.cjs.map +1 -0
- package/dist/dialects/prql.d.cts +496 -0
- package/dist/dialects/prql.d.ts +496 -0
- package/dist/dialects/prql.js +2 -0
- package/dist/dialects/prql.js.map +1 -0
- package/dist/dialects/redshift.cjs +2 -0
- package/dist/dialects/redshift.cjs.map +1 -0
- package/dist/dialects/redshift.d.cts +132 -0
- package/dist/dialects/redshift.d.ts +132 -0
- package/dist/dialects/redshift.js +2 -0
- package/dist/dialects/redshift.js.map +1 -0
- package/dist/dialects/risingwave.cjs +2 -0
- package/dist/dialects/risingwave.cjs.map +1 -0
- package/dist/dialects/risingwave.d.cts +478 -0
- package/dist/dialects/risingwave.d.ts +478 -0
- package/dist/dialects/risingwave.js +2 -0
- package/dist/dialects/risingwave.js.map +1 -0
- package/dist/dialects/singlestore.cjs +2 -0
- package/dist/dialects/singlestore.cjs.map +1 -0
- package/dist/dialects/singlestore.d.cts +73 -0
- package/dist/dialects/singlestore.d.ts +73 -0
- package/dist/dialects/singlestore.js +2 -0
- package/dist/dialects/singlestore.js.map +1 -0
- package/dist/dialects/snowflake.cjs +3 -0
- package/dist/dialects/snowflake.cjs.map +1 -0
- package/dist/dialects/snowflake.d.cts +320 -0
- package/dist/dialects/snowflake.d.ts +320 -0
- package/dist/dialects/snowflake.js +3 -0
- package/dist/dialects/snowflake.js.map +1 -0
- package/dist/dialects/solr.cjs +2 -0
- package/dist/dialects/solr.cjs.map +1 -0
- package/dist/dialects/solr.d.cts +458 -0
- package/dist/dialects/solr.d.ts +458 -0
- package/dist/dialects/solr.js +2 -0
- package/dist/dialects/solr.js.map +1 -0
- package/dist/dialects/spark.cjs +2 -0
- package/dist/dialects/spark.cjs.map +1 -0
- package/dist/dialects/spark.d.cts +484 -0
- package/dist/dialects/spark.d.ts +484 -0
- package/dist/dialects/spark.js +2 -0
- package/dist/dialects/spark.js.map +1 -0
- package/dist/dialects/spark2.cjs +2 -0
- package/dist/dialects/spark2.cjs.map +1 -0
- package/dist/dialects/spark2.d.cts +486 -0
- package/dist/dialects/spark2.d.ts +486 -0
- package/dist/dialects/spark2.js +2 -0
- package/dist/dialects/spark2.js.map +1 -0
- package/dist/dialects/sqlite.cjs +2 -0
- package/dist/dialects/sqlite.cjs.map +1 -0
- package/dist/dialects/sqlite.d.cts +510 -0
- package/dist/dialects/sqlite.d.ts +510 -0
- package/dist/dialects/sqlite.js +2 -0
- package/dist/dialects/sqlite.js.map +1 -0
- package/dist/dialects/starrocks.cjs +2 -0
- package/dist/dialects/starrocks.cjs.map +1 -0
- package/dist/dialects/starrocks.d.cts +518 -0
- package/dist/dialects/starrocks.d.ts +518 -0
- package/dist/dialects/starrocks.js +2 -0
- package/dist/dialects/starrocks.js.map +1 -0
- package/dist/dialects/tableau.cjs +2 -0
- package/dist/dialects/tableau.cjs.map +1 -0
- package/dist/dialects/tableau.d.cts +466 -0
- package/dist/dialects/tableau.d.ts +466 -0
- package/dist/dialects/tableau.js +2 -0
- package/dist/dialects/tableau.js.map +1 -0
- package/dist/dialects/teradata.cjs +2 -0
- package/dist/dialects/teradata.cjs.map +1 -0
- package/dist/dialects/teradata.d.cts +539 -0
- package/dist/dialects/teradata.d.ts +539 -0
- package/dist/dialects/teradata.js +2 -0
- package/dist/dialects/teradata.js.map +1 -0
- package/dist/dialects/trino.cjs +2 -0
- package/dist/dialects/trino.cjs.map +1 -0
- package/dist/dialects/trino.d.cts +465 -0
- package/dist/dialects/trino.d.ts +465 -0
- package/dist/dialects/trino.js +2 -0
- package/dist/dialects/trino.js.map +1 -0
- package/dist/dialects/tsql.cjs +2 -0
- package/dist/dialects/tsql.cjs.map +1 -0
- package/dist/dialects/tsql.d.cts +703 -0
- package/dist/dialects/tsql.d.ts +703 -0
- package/dist/dialects/tsql.js +2 -0
- package/dist/dialects/tsql.js.map +1 -0
- package/dist/index.cjs +5 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -14178
- package/dist/index.d.ts +3 -14178
- package/dist/index.js +5 -25
- package/dist/index.js.map +1 -1
- package/dist/tokens-VcMD09XM.d.cts +15805 -0
- package/dist/tokens-VcMD09XM.d.ts +15805 -0
- package/package.json +171 -5
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
import { d as Dialects, l as TokenType, E as Expression, i as Parser, cU as EncodePropertyExpr, cV as WatermarkColumnConstraintExpr, G as Generator, aj as PropertiesLocation, cW as ComputedColumnConstraintExpr, b5 as DataTypeExpr } from '../tokens-VcMD09XM.js';
|
|
2
|
+
import { Postgres } from './postgres.js';
|
|
3
|
+
|
|
4
|
+
declare class RisingWaveTokenizer extends Postgres.Tokenizer {
|
|
5
|
+
static get ORIGINAL_KEYWORDS(): {
|
|
6
|
+
SINK: TokenType;
|
|
7
|
+
SOURCE: TokenType;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
declare class RisingWaveParser extends Postgres.Parser {
|
|
11
|
+
static get ID_VAR_TOKENS(): Set<TokenType>;
|
|
12
|
+
static get NO_PAREN_FUNCTIONS(): {
|
|
13
|
+
lParen?: typeof Expression | undefined;
|
|
14
|
+
rParen?: typeof Expression | undefined;
|
|
15
|
+
lBracket?: typeof Expression | undefined;
|
|
16
|
+
rBracket?: typeof Expression | undefined;
|
|
17
|
+
lBrace?: typeof Expression | undefined;
|
|
18
|
+
rBrace?: typeof Expression | undefined;
|
|
19
|
+
comma?: typeof Expression | undefined;
|
|
20
|
+
dot?: typeof Expression | undefined;
|
|
21
|
+
dash?: typeof Expression | undefined;
|
|
22
|
+
plus?: typeof Expression | undefined;
|
|
23
|
+
colon?: typeof Expression | undefined;
|
|
24
|
+
dotcolon?: typeof Expression | undefined;
|
|
25
|
+
dcolon?: typeof Expression | undefined;
|
|
26
|
+
dcolondollar?: typeof Expression | undefined;
|
|
27
|
+
dcolonpercent?: typeof Expression | undefined;
|
|
28
|
+
dcolonqmark?: typeof Expression | undefined;
|
|
29
|
+
dqmark?: typeof Expression | undefined;
|
|
30
|
+
semicolon?: typeof Expression | undefined;
|
|
31
|
+
star?: typeof Expression | undefined;
|
|
32
|
+
backslash?: typeof Expression | undefined;
|
|
33
|
+
slash?: typeof Expression | undefined;
|
|
34
|
+
lt?: typeof Expression | undefined;
|
|
35
|
+
lte?: typeof Expression | undefined;
|
|
36
|
+
gt?: typeof Expression | undefined;
|
|
37
|
+
gte?: typeof Expression | undefined;
|
|
38
|
+
not?: typeof Expression | undefined;
|
|
39
|
+
eq?: typeof Expression | undefined;
|
|
40
|
+
neq?: typeof Expression | undefined;
|
|
41
|
+
nullsafeEq?: typeof Expression | undefined;
|
|
42
|
+
colonEq?: typeof Expression | undefined;
|
|
43
|
+
colonGt?: typeof Expression | undefined;
|
|
44
|
+
ncolonGt?: typeof Expression | undefined;
|
|
45
|
+
and?: typeof Expression | undefined;
|
|
46
|
+
or?: typeof Expression | undefined;
|
|
47
|
+
amp?: typeof Expression | undefined;
|
|
48
|
+
dpipe?: typeof Expression | undefined;
|
|
49
|
+
pipeGt?: typeof Expression | undefined;
|
|
50
|
+
pipe?: typeof Expression | undefined;
|
|
51
|
+
pipeSlash?: typeof Expression | undefined;
|
|
52
|
+
dpipeSlash?: typeof Expression | undefined;
|
|
53
|
+
caret?: typeof Expression | undefined;
|
|
54
|
+
caretAt?: typeof Expression | undefined;
|
|
55
|
+
tilde?: typeof Expression | undefined;
|
|
56
|
+
arrow?: typeof Expression | undefined;
|
|
57
|
+
darrow?: typeof Expression | undefined;
|
|
58
|
+
farrow?: typeof Expression | undefined;
|
|
59
|
+
hash?: typeof Expression | undefined;
|
|
60
|
+
hashArrow?: typeof Expression | undefined;
|
|
61
|
+
dhashArrow?: typeof Expression | undefined;
|
|
62
|
+
lrArrow?: typeof Expression | undefined;
|
|
63
|
+
dat?: typeof Expression | undefined;
|
|
64
|
+
ltAt?: typeof Expression | undefined;
|
|
65
|
+
atGt?: typeof Expression | undefined;
|
|
66
|
+
dollar?: typeof Expression | undefined;
|
|
67
|
+
parameter?: typeof Expression | undefined;
|
|
68
|
+
session?: typeof Expression | undefined;
|
|
69
|
+
sessionParameter?: typeof Expression | undefined;
|
|
70
|
+
sessionUser?: typeof Expression | undefined;
|
|
71
|
+
damp?: typeof Expression | undefined;
|
|
72
|
+
ampLt?: typeof Expression | undefined;
|
|
73
|
+
ampGt?: typeof Expression | undefined;
|
|
74
|
+
adjacent?: typeof Expression | undefined;
|
|
75
|
+
xor?: typeof Expression | undefined;
|
|
76
|
+
dstar?: typeof Expression | undefined;
|
|
77
|
+
qmarkAmp?: typeof Expression | undefined;
|
|
78
|
+
qmarkPipe?: typeof Expression | undefined;
|
|
79
|
+
hashDash?: typeof Expression | undefined;
|
|
80
|
+
exclamation?: typeof Expression | undefined;
|
|
81
|
+
uriStart?: typeof Expression | undefined;
|
|
82
|
+
blockStart?: typeof Expression | undefined;
|
|
83
|
+
blockEnd?: typeof Expression | undefined;
|
|
84
|
+
space?: typeof Expression | undefined;
|
|
85
|
+
break?: typeof Expression | undefined;
|
|
86
|
+
string?: typeof Expression | undefined;
|
|
87
|
+
number?: typeof Expression | undefined;
|
|
88
|
+
identifier?: typeof Expression | undefined;
|
|
89
|
+
database?: typeof Expression | undefined;
|
|
90
|
+
column?: typeof Expression | undefined;
|
|
91
|
+
columnDef?: typeof Expression | undefined;
|
|
92
|
+
schema?: typeof Expression | undefined;
|
|
93
|
+
table?: typeof Expression | undefined;
|
|
94
|
+
warehouse?: typeof Expression | undefined;
|
|
95
|
+
stage?: typeof Expression | undefined;
|
|
96
|
+
streamlit?: typeof Expression | undefined;
|
|
97
|
+
var?: typeof Expression | undefined;
|
|
98
|
+
bitString?: typeof Expression | undefined;
|
|
99
|
+
hexString?: typeof Expression | undefined;
|
|
100
|
+
byteString?: typeof Expression | undefined;
|
|
101
|
+
nationalString?: typeof Expression | undefined;
|
|
102
|
+
rawString?: typeof Expression | undefined;
|
|
103
|
+
heredocString?: typeof Expression | undefined;
|
|
104
|
+
unicodeString?: typeof Expression | undefined;
|
|
105
|
+
bit?: typeof Expression | undefined;
|
|
106
|
+
boolean?: typeof Expression | undefined;
|
|
107
|
+
tinyint?: typeof Expression | undefined;
|
|
108
|
+
utinyint?: typeof Expression | undefined;
|
|
109
|
+
smallint?: typeof Expression | undefined;
|
|
110
|
+
usmallint?: typeof Expression | undefined;
|
|
111
|
+
mediumint?: typeof Expression | undefined;
|
|
112
|
+
umediumint?: typeof Expression | undefined;
|
|
113
|
+
int?: typeof Expression | undefined;
|
|
114
|
+
uint?: typeof Expression | undefined;
|
|
115
|
+
bigint?: typeof Expression | undefined;
|
|
116
|
+
ubigint?: typeof Expression | undefined;
|
|
117
|
+
bignum?: typeof Expression | undefined;
|
|
118
|
+
int128?: typeof Expression | undefined;
|
|
119
|
+
uint128?: typeof Expression | undefined;
|
|
120
|
+
int256?: typeof Expression | undefined;
|
|
121
|
+
uint256?: typeof Expression | undefined;
|
|
122
|
+
float?: typeof Expression | undefined;
|
|
123
|
+
double?: typeof Expression | undefined;
|
|
124
|
+
udouble?: typeof Expression | undefined;
|
|
125
|
+
decimal?: typeof Expression | undefined;
|
|
126
|
+
decimal32?: typeof Expression | undefined;
|
|
127
|
+
decimal64?: typeof Expression | undefined;
|
|
128
|
+
decimal128?: typeof Expression | undefined;
|
|
129
|
+
decimal256?: typeof Expression | undefined;
|
|
130
|
+
decfloat?: typeof Expression | undefined;
|
|
131
|
+
udecimal?: typeof Expression | undefined;
|
|
132
|
+
bigdecimal?: typeof Expression | undefined;
|
|
133
|
+
char?: typeof Expression | undefined;
|
|
134
|
+
nchar?: typeof Expression | undefined;
|
|
135
|
+
varchar?: typeof Expression | undefined;
|
|
136
|
+
nvarchar?: typeof Expression | undefined;
|
|
137
|
+
bpchar?: typeof Expression | undefined;
|
|
138
|
+
text?: typeof Expression | undefined;
|
|
139
|
+
mediumtext?: typeof Expression | undefined;
|
|
140
|
+
longtext?: typeof Expression | undefined;
|
|
141
|
+
blob?: typeof Expression | undefined;
|
|
142
|
+
mediumblob?: typeof Expression | undefined;
|
|
143
|
+
longblob?: typeof Expression | undefined;
|
|
144
|
+
tinyblob?: typeof Expression | undefined;
|
|
145
|
+
tinytext?: typeof Expression | undefined;
|
|
146
|
+
name?: typeof Expression | undefined;
|
|
147
|
+
binary?: typeof Expression | undefined;
|
|
148
|
+
varbinary?: typeof Expression | undefined;
|
|
149
|
+
json?: typeof Expression | undefined;
|
|
150
|
+
jsonb?: typeof Expression | undefined;
|
|
151
|
+
time?: typeof Expression | undefined;
|
|
152
|
+
timetz?: typeof Expression | undefined;
|
|
153
|
+
timeNs?: typeof Expression | undefined;
|
|
154
|
+
timestamp?: typeof Expression | undefined;
|
|
155
|
+
timestamptz?: typeof Expression | undefined;
|
|
156
|
+
timestampltz?: typeof Expression | undefined;
|
|
157
|
+
timestampntz?: typeof Expression | undefined;
|
|
158
|
+
timestampS?: typeof Expression | undefined;
|
|
159
|
+
timestampMs?: typeof Expression | undefined;
|
|
160
|
+
timestampNs?: typeof Expression | undefined;
|
|
161
|
+
datetime?: typeof Expression | undefined;
|
|
162
|
+
datetime2?: typeof Expression | undefined;
|
|
163
|
+
datetime64?: typeof Expression | undefined;
|
|
164
|
+
smalldatetime?: typeof Expression | undefined;
|
|
165
|
+
date?: typeof Expression | undefined;
|
|
166
|
+
date32?: typeof Expression | undefined;
|
|
167
|
+
int4range?: typeof Expression | undefined;
|
|
168
|
+
int4multirange?: typeof Expression | undefined;
|
|
169
|
+
int8range?: typeof Expression | undefined;
|
|
170
|
+
int8multirange?: typeof Expression | undefined;
|
|
171
|
+
numrange?: typeof Expression | undefined;
|
|
172
|
+
nummultirange?: typeof Expression | undefined;
|
|
173
|
+
tsrange?: typeof Expression | undefined;
|
|
174
|
+
tsmultirange?: typeof Expression | undefined;
|
|
175
|
+
tstzrange?: typeof Expression | undefined;
|
|
176
|
+
tstzmultirange?: typeof Expression | undefined;
|
|
177
|
+
daterange?: typeof Expression | undefined;
|
|
178
|
+
datemultirange?: typeof Expression | undefined;
|
|
179
|
+
uuid?: typeof Expression | undefined;
|
|
180
|
+
geography?: typeof Expression | undefined;
|
|
181
|
+
geographypoint?: typeof Expression | undefined;
|
|
182
|
+
nullable?: typeof Expression | undefined;
|
|
183
|
+
geometry?: typeof Expression | undefined;
|
|
184
|
+
point?: typeof Expression | undefined;
|
|
185
|
+
ring?: typeof Expression | undefined;
|
|
186
|
+
linestring?: typeof Expression | undefined;
|
|
187
|
+
localtime?: typeof Expression | undefined;
|
|
188
|
+
localtimestamp?: typeof Expression | undefined;
|
|
189
|
+
systimestamp?: typeof Expression | undefined;
|
|
190
|
+
multilinestring?: typeof Expression | undefined;
|
|
191
|
+
polygon?: typeof Expression | undefined;
|
|
192
|
+
multipolygon?: typeof Expression | undefined;
|
|
193
|
+
hllsketch?: typeof Expression | undefined;
|
|
194
|
+
hstore?: typeof Expression | undefined;
|
|
195
|
+
super?: typeof Expression | undefined;
|
|
196
|
+
serial?: typeof Expression | undefined;
|
|
197
|
+
smallserial?: typeof Expression | undefined;
|
|
198
|
+
bigserial?: typeof Expression | undefined;
|
|
199
|
+
xml?: typeof Expression | undefined;
|
|
200
|
+
year?: typeof Expression | undefined;
|
|
201
|
+
userdefined?: typeof Expression | undefined;
|
|
202
|
+
money?: typeof Expression | undefined;
|
|
203
|
+
smallmoney?: typeof Expression | undefined;
|
|
204
|
+
rowversion?: typeof Expression | undefined;
|
|
205
|
+
image?: typeof Expression | undefined;
|
|
206
|
+
variant?: typeof Expression | undefined;
|
|
207
|
+
object?: typeof Expression | undefined;
|
|
208
|
+
inet?: typeof Expression | undefined;
|
|
209
|
+
ipaddress?: typeof Expression | undefined;
|
|
210
|
+
ipprefix?: typeof Expression | undefined;
|
|
211
|
+
ipv4?: typeof Expression | undefined;
|
|
212
|
+
ipv6?: typeof Expression | undefined;
|
|
213
|
+
enum?: typeof Expression | undefined;
|
|
214
|
+
enum8?: typeof Expression | undefined;
|
|
215
|
+
enum16?: typeof Expression | undefined;
|
|
216
|
+
fixedstring?: typeof Expression | undefined;
|
|
217
|
+
lowcardinality?: typeof Expression | undefined;
|
|
218
|
+
nested?: typeof Expression | undefined;
|
|
219
|
+
aggregatefunction?: typeof Expression | undefined;
|
|
220
|
+
simpleaggregatefunction?: typeof Expression | undefined;
|
|
221
|
+
tdigest?: typeof Expression | undefined;
|
|
222
|
+
unknown?: typeof Expression | undefined;
|
|
223
|
+
vector?: typeof Expression | undefined;
|
|
224
|
+
dynamic?: typeof Expression | undefined;
|
|
225
|
+
void?: typeof Expression | undefined;
|
|
226
|
+
alias?: typeof Expression | undefined;
|
|
227
|
+
alter?: typeof Expression | undefined;
|
|
228
|
+
all?: typeof Expression | undefined;
|
|
229
|
+
anti?: typeof Expression | undefined;
|
|
230
|
+
any?: typeof Expression | undefined;
|
|
231
|
+
apply?: typeof Expression | undefined;
|
|
232
|
+
array?: typeof Expression | undefined;
|
|
233
|
+
asc?: typeof Expression | undefined;
|
|
234
|
+
asof?: typeof Expression | undefined;
|
|
235
|
+
attach?: typeof Expression | undefined;
|
|
236
|
+
autoIncrement?: typeof Expression | undefined;
|
|
237
|
+
begin?: typeof Expression | undefined;
|
|
238
|
+
between?: typeof Expression | undefined;
|
|
239
|
+
bulkCollectInto?: typeof Expression | undefined;
|
|
240
|
+
cache?: typeof Expression | undefined;
|
|
241
|
+
case?: typeof Expression | undefined;
|
|
242
|
+
characterSet?: typeof Expression | undefined;
|
|
243
|
+
clusterBy?: typeof Expression | undefined;
|
|
244
|
+
collate?: typeof Expression | undefined;
|
|
245
|
+
command?: typeof Expression | undefined;
|
|
246
|
+
comment?: typeof Expression | undefined;
|
|
247
|
+
commit?: typeof Expression | undefined;
|
|
248
|
+
connectBy?: typeof Expression | undefined;
|
|
249
|
+
constraint?: typeof Expression | undefined;
|
|
250
|
+
copy?: typeof Expression | undefined;
|
|
251
|
+
create?: typeof Expression | undefined;
|
|
252
|
+
cross?: typeof Expression | undefined;
|
|
253
|
+
cube?: typeof Expression | undefined;
|
|
254
|
+
currentDate?: typeof Expression | undefined;
|
|
255
|
+
currentDatetime?: typeof Expression | undefined;
|
|
256
|
+
currentSchema?: typeof Expression | undefined;
|
|
257
|
+
currentTime?: typeof Expression | undefined;
|
|
258
|
+
currentTimestamp?: typeof Expression | undefined;
|
|
259
|
+
currentUser?: typeof Expression | undefined;
|
|
260
|
+
currentRole?: typeof Expression | undefined;
|
|
261
|
+
currentCatalog?: typeof Expression | undefined;
|
|
262
|
+
declare?: typeof Expression | undefined;
|
|
263
|
+
default?: typeof Expression | undefined;
|
|
264
|
+
delete?: typeof Expression | undefined;
|
|
265
|
+
desc?: typeof Expression | undefined;
|
|
266
|
+
describe?: typeof Expression | undefined;
|
|
267
|
+
detach?: typeof Expression | undefined;
|
|
268
|
+
dictionary?: typeof Expression | undefined;
|
|
269
|
+
distinct?: typeof Expression | undefined;
|
|
270
|
+
distributeBy?: typeof Expression | undefined;
|
|
271
|
+
div?: typeof Expression | undefined;
|
|
272
|
+
drop?: typeof Expression | undefined;
|
|
273
|
+
else?: typeof Expression | undefined;
|
|
274
|
+
end?: typeof Expression | undefined;
|
|
275
|
+
escape?: typeof Expression | undefined;
|
|
276
|
+
except?: typeof Expression | undefined;
|
|
277
|
+
execute?: typeof Expression | undefined;
|
|
278
|
+
exists?: typeof Expression | undefined;
|
|
279
|
+
false?: typeof Expression | undefined;
|
|
280
|
+
fetch?: typeof Expression | undefined;
|
|
281
|
+
file?: typeof Expression | undefined;
|
|
282
|
+
fileFormat?: typeof Expression | undefined;
|
|
283
|
+
filter?: typeof Expression | undefined;
|
|
284
|
+
final?: typeof Expression | undefined;
|
|
285
|
+
first?: typeof Expression | undefined;
|
|
286
|
+
for?: typeof Expression | undefined;
|
|
287
|
+
force?: typeof Expression | undefined;
|
|
288
|
+
foreignKey?: typeof Expression | undefined;
|
|
289
|
+
format?: typeof Expression | undefined;
|
|
290
|
+
from?: typeof Expression | undefined;
|
|
291
|
+
full?: typeof Expression | undefined;
|
|
292
|
+
function?: typeof Expression | undefined;
|
|
293
|
+
get?: typeof Expression | undefined;
|
|
294
|
+
glob?: typeof Expression | undefined;
|
|
295
|
+
global?: typeof Expression | undefined;
|
|
296
|
+
grant?: typeof Expression | undefined;
|
|
297
|
+
groupBy?: typeof Expression | undefined;
|
|
298
|
+
groupingSets?: typeof Expression | undefined;
|
|
299
|
+
having?: typeof Expression | undefined;
|
|
300
|
+
hint?: typeof Expression | undefined;
|
|
301
|
+
ignore?: typeof Expression | undefined;
|
|
302
|
+
ilike?: typeof Expression | undefined;
|
|
303
|
+
in?: typeof Expression | undefined;
|
|
304
|
+
index?: typeof Expression | undefined;
|
|
305
|
+
indexedBy?: typeof Expression | undefined;
|
|
306
|
+
inner?: typeof Expression | undefined;
|
|
307
|
+
insert?: typeof Expression | undefined;
|
|
308
|
+
install?: typeof Expression | undefined;
|
|
309
|
+
intersect?: typeof Expression | undefined;
|
|
310
|
+
interval?: typeof Expression | undefined;
|
|
311
|
+
into?: typeof Expression | undefined;
|
|
312
|
+
introducer?: typeof Expression | undefined;
|
|
313
|
+
irlike?: typeof Expression | undefined;
|
|
314
|
+
is?: typeof Expression | undefined;
|
|
315
|
+
isnull?: typeof Expression | undefined;
|
|
316
|
+
join?: typeof Expression | undefined;
|
|
317
|
+
joinMarker?: typeof Expression | undefined;
|
|
318
|
+
keep?: typeof Expression | undefined;
|
|
319
|
+
key?: typeof Expression | undefined;
|
|
320
|
+
kill?: typeof Expression | undefined;
|
|
321
|
+
language?: typeof Expression | undefined;
|
|
322
|
+
lateral?: typeof Expression | undefined;
|
|
323
|
+
left?: typeof Expression | undefined;
|
|
324
|
+
like?: typeof Expression | undefined;
|
|
325
|
+
limit?: typeof Expression | undefined;
|
|
326
|
+
list?: typeof Expression | undefined;
|
|
327
|
+
load?: typeof Expression | undefined;
|
|
328
|
+
lock?: typeof Expression | undefined;
|
|
329
|
+
map?: typeof Expression | undefined;
|
|
330
|
+
match?: typeof Expression | undefined;
|
|
331
|
+
matchCondition?: typeof Expression | undefined;
|
|
332
|
+
matchRecognize?: typeof Expression | undefined;
|
|
333
|
+
memberOf?: typeof Expression | undefined;
|
|
334
|
+
merge?: typeof Expression | undefined;
|
|
335
|
+
mod?: typeof Expression | undefined;
|
|
336
|
+
model?: typeof Expression | undefined;
|
|
337
|
+
natural?: typeof Expression | undefined;
|
|
338
|
+
next?: typeof Expression | undefined;
|
|
339
|
+
nothing?: typeof Expression | undefined;
|
|
340
|
+
notnull?: typeof Expression | undefined;
|
|
341
|
+
null?: typeof Expression | undefined;
|
|
342
|
+
objectIdentifier?: typeof Expression | undefined;
|
|
343
|
+
offset?: typeof Expression | undefined;
|
|
344
|
+
on?: typeof Expression | undefined;
|
|
345
|
+
only?: typeof Expression | undefined;
|
|
346
|
+
operator?: typeof Expression | undefined;
|
|
347
|
+
orderBy?: typeof Expression | undefined;
|
|
348
|
+
orderSiblingsBy?: typeof Expression | undefined;
|
|
349
|
+
ordered?: typeof Expression | undefined;
|
|
350
|
+
ordinality?: typeof Expression | undefined;
|
|
351
|
+
out?: typeof Expression | undefined;
|
|
352
|
+
inout?: typeof Expression | undefined;
|
|
353
|
+
outer?: typeof Expression | undefined;
|
|
354
|
+
over?: typeof Expression | undefined;
|
|
355
|
+
overlaps?: typeof Expression | undefined;
|
|
356
|
+
overwrite?: typeof Expression | undefined;
|
|
357
|
+
partition?: typeof Expression | undefined;
|
|
358
|
+
partitionBy?: typeof Expression | undefined;
|
|
359
|
+
percent?: typeof Expression | undefined;
|
|
360
|
+
pivot?: typeof Expression | undefined;
|
|
361
|
+
placeholder?: typeof Expression | undefined;
|
|
362
|
+
positional?: typeof Expression | undefined;
|
|
363
|
+
pragma?: typeof Expression | undefined;
|
|
364
|
+
prewhere?: typeof Expression | undefined;
|
|
365
|
+
primaryKey?: typeof Expression | undefined;
|
|
366
|
+
procedure?: typeof Expression | undefined;
|
|
367
|
+
properties?: typeof Expression | undefined;
|
|
368
|
+
pseudoType?: typeof Expression | undefined;
|
|
369
|
+
put?: typeof Expression | undefined;
|
|
370
|
+
qualify?: typeof Expression | undefined;
|
|
371
|
+
quote?: typeof Expression | undefined;
|
|
372
|
+
qdcolon?: typeof Expression | undefined;
|
|
373
|
+
range?: typeof Expression | undefined;
|
|
374
|
+
recursive?: typeof Expression | undefined;
|
|
375
|
+
refresh?: typeof Expression | undefined;
|
|
376
|
+
rename?: typeof Expression | undefined;
|
|
377
|
+
replace?: typeof Expression | undefined;
|
|
378
|
+
returning?: typeof Expression | undefined;
|
|
379
|
+
revoke?: typeof Expression | undefined;
|
|
380
|
+
references?: typeof Expression | undefined;
|
|
381
|
+
right?: typeof Expression | undefined;
|
|
382
|
+
rlike?: typeof Expression | undefined;
|
|
383
|
+
rollback?: typeof Expression | undefined;
|
|
384
|
+
rollup?: typeof Expression | undefined;
|
|
385
|
+
row?: typeof Expression | undefined;
|
|
386
|
+
rows?: typeof Expression | undefined;
|
|
387
|
+
select?: typeof Expression | undefined;
|
|
388
|
+
semi?: typeof Expression | undefined;
|
|
389
|
+
separator?: typeof Expression | undefined;
|
|
390
|
+
sequence?: typeof Expression | undefined;
|
|
391
|
+
serdeProperties?: typeof Expression | undefined;
|
|
392
|
+
set?: typeof Expression | undefined;
|
|
393
|
+
settings?: typeof Expression | undefined;
|
|
394
|
+
show?: typeof Expression | undefined;
|
|
395
|
+
similarTo?: typeof Expression | undefined;
|
|
396
|
+
some?: typeof Expression | undefined;
|
|
397
|
+
sortBy?: typeof Expression | undefined;
|
|
398
|
+
soundsLike?: typeof Expression | undefined;
|
|
399
|
+
startWith?: typeof Expression | undefined;
|
|
400
|
+
storageIntegration?: typeof Expression | undefined;
|
|
401
|
+
straightJoin?: typeof Expression | undefined;
|
|
402
|
+
struct?: typeof Expression | undefined;
|
|
403
|
+
summarize?: typeof Expression | undefined;
|
|
404
|
+
tableSample?: typeof Expression | undefined;
|
|
405
|
+
tag?: typeof Expression | undefined;
|
|
406
|
+
temporary?: typeof Expression | undefined;
|
|
407
|
+
top?: typeof Expression | undefined;
|
|
408
|
+
then?: typeof Expression | undefined;
|
|
409
|
+
true?: typeof Expression | undefined;
|
|
410
|
+
truncate?: typeof Expression | undefined;
|
|
411
|
+
uncache?: typeof Expression | undefined;
|
|
412
|
+
union?: typeof Expression | undefined;
|
|
413
|
+
unnest?: typeof Expression | undefined;
|
|
414
|
+
unpivot?: typeof Expression | undefined;
|
|
415
|
+
update?: typeof Expression | undefined;
|
|
416
|
+
use?: typeof Expression | undefined;
|
|
417
|
+
using?: typeof Expression | undefined;
|
|
418
|
+
values?: typeof Expression | undefined;
|
|
419
|
+
variadic?: typeof Expression | undefined;
|
|
420
|
+
view?: typeof Expression | undefined;
|
|
421
|
+
semanticView?: typeof Expression | undefined;
|
|
422
|
+
volatile?: typeof Expression | undefined;
|
|
423
|
+
when?: typeof Expression | undefined;
|
|
424
|
+
where?: typeof Expression | undefined;
|
|
425
|
+
window?: typeof Expression | undefined;
|
|
426
|
+
with?: typeof Expression | undefined;
|
|
427
|
+
unique?: typeof Expression | undefined;
|
|
428
|
+
utcDate?: typeof Expression | undefined;
|
|
429
|
+
utcTime?: typeof Expression | undefined;
|
|
430
|
+
utcTimestamp?: typeof Expression | undefined;
|
|
431
|
+
versionSnapshot?: typeof Expression | undefined;
|
|
432
|
+
timestampSnapshot?: typeof Expression | undefined;
|
|
433
|
+
option?: typeof Expression | undefined;
|
|
434
|
+
sink?: typeof Expression | undefined;
|
|
435
|
+
source?: typeof Expression | undefined;
|
|
436
|
+
analyze?: typeof Expression | undefined;
|
|
437
|
+
namespace?: typeof Expression | undefined;
|
|
438
|
+
export?: typeof Expression | undefined;
|
|
439
|
+
hiveTokenStream?: typeof Expression | undefined;
|
|
440
|
+
};
|
|
441
|
+
static WRAPPED_TRANSFORM_COLUMN_CONSTRAINT: boolean;
|
|
442
|
+
static get PROPERTY_PARSERS(): {
|
|
443
|
+
ENCODE: (this: Parser) => EncodePropertyExpr;
|
|
444
|
+
INCLUDE: (this: Parser) => Expression | undefined;
|
|
445
|
+
KEY: (this: Parser) => EncodePropertyExpr;
|
|
446
|
+
};
|
|
447
|
+
static get CONSTRAINT_PARSERS(): {
|
|
448
|
+
WATERMARK: (this: Parser) => WatermarkColumnConstraintExpr;
|
|
449
|
+
};
|
|
450
|
+
static get SCHEMA_UNNAMED_CONSTRAINTS(): Set<string>;
|
|
451
|
+
parseTableHints(): Expression[] | undefined;
|
|
452
|
+
parseIncludeProperty(): Expression | undefined;
|
|
453
|
+
parseEncodeProperty(key?: boolean | undefined): EncodePropertyExpr;
|
|
454
|
+
static get TABLE_ALIAS_TOKENS(): Set<TokenType>;
|
|
455
|
+
}
|
|
456
|
+
declare class RisingWaveGenerator extends Postgres.Generator {
|
|
457
|
+
static get AFTER_HAVING_MODIFIER_TRANSFORMS(): Map<string, (this: Generator, e: Expression) => string>;
|
|
458
|
+
static SUPPORTS_DECODE_CASE: boolean;
|
|
459
|
+
static TRY_SUPPORTED: boolean;
|
|
460
|
+
static SUPPORTS_UESCAPE: boolean;
|
|
461
|
+
static LOCKING_READS_SUPPORTED: boolean;
|
|
462
|
+
static SUPPORTS_BETWEEN_FLAGS: boolean;
|
|
463
|
+
static get ORIGINAL_TRANSFORMS(): Map<typeof Expression, (this: Generator, e: any) => string>;
|
|
464
|
+
static get PROPERTIES_LOCATION(): Map<typeof Expression, PropertiesLocation>;
|
|
465
|
+
static get EXPRESSION_PRECEDES_PROPERTIES_CREATABLES(): Set<string>;
|
|
466
|
+
computedColumnConstraintSql(expression: ComputedColumnConstraintExpr): string;
|
|
467
|
+
dataTypeSql(expression: DataTypeExpr): string;
|
|
468
|
+
}
|
|
469
|
+
declare class RisingWave extends Postgres {
|
|
470
|
+
static DIALECT_NAME: Dialects;
|
|
471
|
+
static REQUIRES_PARENTHESIZED_STRUCT_ACCESS: boolean;
|
|
472
|
+
static SUPPORTS_STRUCT_STAR_EXPANSION: boolean;
|
|
473
|
+
static Tokenizer: typeof RisingWaveTokenizer;
|
|
474
|
+
static Parser: typeof RisingWaveParser;
|
|
475
|
+
static Generator: typeof RisingWaveGenerator;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
export { RisingWave };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as r}from"../chunk-FCGUTI7Y.js";import"../chunk-ZBFGQPJR.js";import{Qd as h,Rd as l,Td as C,Za as R,a as A,b as c,c as P,d as s,eb as d,kd as N,lp as f,op as m,r as n,za as I}from"../chunk-KCNOE4DZ.js";var x,y,O,T=class extends(y=r.Tokenizer,x=[n],y){static get ORIGINAL_KEYWORDS(){return{...r.Tokenizer.KEYWORDS,SINK:"sink",SOURCE:"source"}}};O=A(y),s(O,10,"ORIGINAL_KEYWORDS",x,T),c(O,T),P(O,3,T);var D,L,M,F,U,K,V,p,o=class extends(V=r.Parser,K=[n],U=[n],F=[n],M=[n],L=[n],D=[n],V){static get ID_VAR_TOKENS(){return new Set([...I.ID_VAR_TOKENS,"sessionUser","currentCatalog","straightJoin"])}static get NO_PAREN_FUNCTIONS(){let t={...r.Parser.NO_PAREN_FUNCTIONS};return delete t.localtime,delete t.localtimestamp,t}static get PROPERTY_PARSERS(){return{...r.Parser.PROPERTY_PARSERS,ENCODE:function(){return this.parseEncodeProperty()},INCLUDE:function(){return this.parseIncludeProperty()},KEY:function(){return this.parseEncodeProperty(!0)}}}static get CONSTRAINT_PARSERS(){return{...r.Parser.CONSTRAINT_PARSERS,WATERMARK:function(){return this.expression(d,{this:this.match("for")&&this.parseColumn(),expression:this.match("alias")&&this.parseDisjunction()})}}}static get SCHEMA_UNNAMED_CONSTRAINTS(){return new Set([...r.Parser.SCHEMA_UNNAMED_CONSTRAINTS,"WATERMARK"])}parseTableHints(){}parseIncludeProperty(){let t,E,a=this.parseVarOrString();this.match("alias")||(t=this.parseField(),t&&(E=this.expression(R,{this:t,kind:this.parseTypes()}))),this.match("alias");let Y=this.parseIdVar({tokens:this.constructor.ALIAS_TOKENS});return this.expression(l,{this:a,alias:Y,columnDef:E})}parseEncodeProperty(t){this.matchTextSeq("ENCODE");let E=this.parseVarOrString(),a;return this.match("lParen",{advance:!1})&&(a=this.expression(C,{expressions:this.parseWrappedProperties()})),this.expression(h,{this:E,properties:a,key:t})}static get TABLE_ALIAS_TOKENS(){return new Set([...r.Parser.TABLE_ALIAS_TOKENS,"straightJoin"])}};p=A(V),s(p,10,"ID_VAR_TOKENS",K,o),s(p,10,"NO_PAREN_FUNCTIONS",U,o),s(p,10,"PROPERTY_PARSERS",F,o),s(p,10,"CONSTRAINT_PARSERS",M,o),s(p,10,"SCHEMA_UNNAMED_CONSTRAINTS",L,o),s(p,10,"TABLE_ALIAS_TOKENS",D,o),c(p,o),P(p,3,o),o.WRAPPED_TRANSFORM_COLUMN_CONSTRAINT=!1;var q,H,k,w,G,i,e=class extends(G=r.Generator,w=[n],k=[n],H=[n],q=[n],G){static get AFTER_HAVING_MODIFIER_TRANSFORMS(){let t=new Map(super.AFTER_HAVING_MODIFIER_TRANSFORMS);return["cluster","distribute","sort"].forEach(E=>t.delete(E)),t}static get ORIGINAL_TRANSFORMS(){return new Map([...r.Generator.TRANSFORMS,[N,function(E){return`FORMAT ${this.sql(E.args.this)}`}]])}static get PROPERTIES_LOCATION(){let t=new Map(r.Generator.PROPERTIES_LOCATION);return t.set(N,"postExpression"),t}static get EXPRESSION_PRECEDES_PROPERTIES_CREATABLES(){return new Set(["SINK"])}computedColumnConstraintSql(t){return f.prototype.computedColumnConstraintSql.call(this,t)}dataTypeSql(t){if(t.isType("map")&&t.args.expressions?.length===2){let[E,a]=t.args.expressions;return`MAP(${this.sql(E)}, ${this.sql(a)})`}return super.dataTypeSql(t)}};i=A(G),s(i,10,"AFTER_HAVING_MODIFIER_TRANSFORMS",w,e),s(i,10,"ORIGINAL_TRANSFORMS",k,e),s(i,10,"PROPERTIES_LOCATION",H,e),s(i,10,"EXPRESSION_PRECEDES_PROPERTIES_CREATABLES",q,e),c(i,e),P(i,3,e),e.SUPPORTS_DECODE_CASE=!1,e.TRY_SUPPORTED=!1,e.SUPPORTS_UESCAPE=!1,e.LOCKING_READS_SUPPORTED=!1,e.SUPPORTS_BETWEEN_FLAGS=!1;var S=class extends r{};S.DIALECT_NAME="risingwave",S.REQUIRES_PARENTHESIZED_STRUCT_ACCESS=!0,S.SUPPORTS_STRUCT_STAR_EXPANSION=!0,S.Tokenizer=T,S.Parser=o,S.Generator=e;m.register("risingwave",S);export{S as RisingWave};
|
|
2
|
+
//# sourceMappingURL=risingwave.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/dialects/risingwave.ts"],"sourcesContent":["import {\n Generator,\n} from '../generator';\nimport type {\n Expression,\n DataTypeExpr,\n ComputedColumnConstraintExpr,\n} from '../expressions';\nimport {\n PropertiesExpr,\n DataTypeExprKind,\n PropertiesLocation,\n FileFormatPropertyExpr,\n EncodePropertyExpr,\n WatermarkColumnConstraintExpr,\n ColumnDefExpr,\n IncludePropertyExpr,\n} from '../expressions';\nimport {\n TokenType,\n} from '../tokens';\nimport {\n Parser,\n} from '../parser';\nimport {\n cache,\n} from '../port_internals';\nimport {\n Dialect, Dialects,\n} from './dialect';\nimport {\n Postgres,\n} from './postgres';\n\nclass RisingWaveTokenizer extends Postgres.Tokenizer {\n @cache\n static get ORIGINAL_KEYWORDS () {\n return {\n ...Postgres.Tokenizer.KEYWORDS,\n SINK: TokenType.SINK,\n SOURCE: TokenType.SOURCE,\n };\n }\n}\n\nclass RisingWaveParser extends Postgres.Parser {\n @cache\n static get ID_VAR_TOKENS (): Set<TokenType> {\n return new Set([\n ...Parser.ID_VAR_TOKENS,\n TokenType.SESSION_USER,\n TokenType.CURRENT_CATALOG,\n TokenType.STRAIGHT_JOIN,\n ]);\n }\n\n // port from _Dialect metaclass logic\n @cache\n static get NO_PAREN_FUNCTIONS () {\n const noParenFunctions = {\n ...Postgres.Parser.NO_PAREN_FUNCTIONS,\n };\n delete noParenFunctions[TokenType.LOCALTIME];\n delete noParenFunctions[TokenType.LOCALTIMESTAMP];\n return noParenFunctions;\n }\n\n static WRAPPED_TRANSFORM_COLUMN_CONSTRAINT = false;\n\n @cache\n static get PROPERTY_PARSERS () {\n return {\n ...Postgres.Parser.PROPERTY_PARSERS,\n ENCODE: function (this: Parser) {\n return (this as RisingWaveParser).parseEncodeProperty();\n },\n INCLUDE: function (this: Parser) {\n return (this as RisingWaveParser).parseIncludeProperty();\n },\n KEY: function (this: Parser) {\n return (this as RisingWaveParser).parseEncodeProperty(true);\n },\n };\n }\n\n @cache\n static get CONSTRAINT_PARSERS () {\n return {\n ...Postgres.Parser.CONSTRAINT_PARSERS,\n WATERMARK: function (this: Parser) {\n return this.expression(WatermarkColumnConstraintExpr, {\n this: (this as RisingWaveParser).match(TokenType.FOR) && (this as RisingWaveParser).parseColumn(),\n expression: (this as RisingWaveParser).match(TokenType.ALIAS) && (this as RisingWaveParser).parseDisjunction(),\n });\n },\n };\n }\n\n @cache\n static get SCHEMA_UNNAMED_CONSTRAINTS () {\n return new Set([\n ...Postgres.Parser.SCHEMA_UNNAMED_CONSTRAINTS,\n 'WATERMARK',\n ]);\n }\n\n parseTableHints (): Expression[] | undefined {\n // There is no hint in risingwave.\n // Do nothing here to avoid WITH keywords conflict in CREATE SINK statement.\n return undefined;\n }\n\n parseIncludeProperty (): Expression | undefined {\n let header: Expression | undefined = undefined;\n let coldef: Expression | undefined = undefined;\n\n const thisNode = this.parseVarOrString();\n\n if (!this.match(TokenType.ALIAS)) {\n header = this.parseField();\n if (header) {\n coldef = this.expression(ColumnDefExpr, {\n this: header,\n kind: this.parseTypes(),\n });\n }\n }\n\n this.match(TokenType.ALIAS);\n const alias = this.parseIdVar({\n tokens: (this.constructor as typeof RisingWaveParser).ALIAS_TOKENS,\n });\n\n return this.expression(IncludePropertyExpr, {\n this: thisNode,\n alias: alias,\n columnDef: coldef,\n });\n }\n\n parseEncodeProperty (key?: boolean | undefined): EncodePropertyExpr {\n this.matchTextSeq('ENCODE');\n const thisNode = this.parseVarOrString();\n\n let properties: PropertiesExpr | undefined = undefined;\n if (this.match(TokenType.L_PAREN, {\n advance: false,\n })) {\n properties = this.expression(PropertiesExpr, {\n expressions: this.parseWrappedProperties(),\n });\n }\n\n return this.expression(EncodePropertyExpr, {\n this: thisNode,\n properties: properties,\n key: key,\n });\n }\n\n // port from _Dialect metaclass logic\n @cache\n static get TABLE_ALIAS_TOKENS (): Set<TokenType> {\n return new Set([\n ...Postgres.Parser.TABLE_ALIAS_TOKENS,\n TokenType.STRAIGHT_JOIN,\n ]);\n }\n}\nclass RisingWaveGenerator extends Postgres.Generator {\n // port from _Dialect metaclass logic\n @cache\n static get AFTER_HAVING_MODIFIER_TRANSFORMS () {\n const modifiers = new Map(super.AFTER_HAVING_MODIFIER_TRANSFORMS);\n [\n 'cluster',\n 'distribute',\n 'sort',\n ].forEach((m) => modifiers.delete(m));\n return modifiers;\n }\n\n // port from _Dialect metaclass logic\n static SUPPORTS_DECODE_CASE = false;\n // port from _Dialect metaclass logic\n static TRY_SUPPORTED = false;\n // port from _Dialect metaclass logic\n static SUPPORTS_UESCAPE = false;\n static LOCKING_READS_SUPPORTED = false;\n static SUPPORTS_BETWEEN_FLAGS = false;\n\n @cache\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static get ORIGINAL_TRANSFORMS (): Map<typeof Expression, (this: Generator, e: any) => string> {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const transforms = new Map<typeof Expression, (this: Generator, e: any) => string>([\n ...Postgres.Generator.TRANSFORMS,\n [\n FileFormatPropertyExpr,\n function (this: Generator, e: FileFormatPropertyExpr) {\n return `FORMAT ${this.sql(e.args.this)}`;\n },\n ],\n ]);\n return transforms;\n }\n\n @cache\n static get PROPERTIES_LOCATION () {\n const m = new Map(Postgres.Generator.PROPERTIES_LOCATION);\n m.set(FileFormatPropertyExpr, PropertiesLocation.POST_EXPRESSION);\n return m;\n }\n\n @cache\n static get EXPRESSION_PRECEDES_PROPERTIES_CREATABLES () {\n return new Set([\n 'SINK',\n ]);\n }\n\n computedColumnConstraintSql (expression: ComputedColumnConstraintExpr): string {\n return Generator.prototype.computedColumnConstraintSql.call(this, expression);\n }\n\n dataTypeSql (expression: DataTypeExpr): string {\n if (expression.isType(DataTypeExprKind.MAP) && expression.args.expressions?.length === 2) {\n const [\n keyType,\n valueType,\n ] = expression.args.expressions;\n return `MAP(${this.sql(keyType)}, ${this.sql(valueType)})`;\n }\n\n return super.dataTypeSql(expression);\n }\n}\n\nexport class RisingWave extends Postgres {\n static DIALECT_NAME = Dialects.RISINGWAVE;\n static REQUIRES_PARENTHESIZED_STRUCT_ACCESS = true;\n static SUPPORTS_STRUCT_STAR_EXPANSION = true;\n\n static Tokenizer = RisingWaveTokenizer;\n static Parser = RisingWaveParser;\n static Generator = RisingWaveGenerator;\n}\n\nDialect.register(Dialects.RISINGWAVE, RisingWave);\n"],"mappings":"mNAAA,IAAAA,EAAAC,EAAAC,EAkCMC,EAAN,cAAkCF,EAAAG,EAAS,UACzCJ,EAAA,CAACK,GAD+BJ,EAAmB,CAEnD,WAAW,mBAAqB,CAC9B,MAAO,CACL,GAAGG,EAAS,UAAU,SACtB,YACA,eACF,CACF,CACF,EATAF,EAAAI,EAAAL,GAEEM,EAAAL,EAAA,GAAW,oBADXF,EADIG,GAANK,EAAAN,EAAMC,GAANM,EAAAP,EAAA,EAAMC,GAlCN,IAAAO,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAd,EAAAC,EA6CMc,EAAN,cAA+Bf,EAAAG,EAAS,OACtCW,EAAA,CAACV,GAWDS,EAAA,CAACT,GAYDQ,EAAA,CAACR,GAgBDO,EAAA,CAACP,GAaDM,EAAA,CAACN,GA+DDK,EAAA,CAACL,GApH4BJ,EAAgB,CAE7C,WAAW,eAAiC,CAC1C,OAAO,IAAI,IAAI,CACb,GAAGgB,EAAO,2DAIZ,CAAC,CACH,CAIA,WAAW,oBAAsB,CAC/B,IAAMC,EAAmB,CACvB,GAAGd,EAAS,OAAO,kBACrB,EACA,cAAOc,EAAiB,UACxB,OAAOA,EAAiB,eACjBA,CACT,CAKA,WAAW,kBAAoB,CAC7B,MAAO,CACL,GAAGd,EAAS,OAAO,iBACnB,OAAQ,UAAwB,CAC9B,OAAQ,KAA0B,oBAAoB,CACxD,EACA,QAAS,UAAwB,CAC/B,OAAQ,KAA0B,qBAAqB,CACzD,EACA,IAAK,UAAwB,CAC3B,OAAQ,KAA0B,oBAAoB,EAAI,CAC5D,CACF,CACF,CAGA,WAAW,oBAAsB,CAC/B,MAAO,CACL,GAAGA,EAAS,OAAO,mBACnB,UAAW,UAAwB,CACjC,OAAO,KAAK,WAAWe,EAA+B,CACpD,KAAO,KAA0B,WAAmB,GAAM,KAA0B,YAAY,EAChG,WAAa,KAA0B,aAAqB,GAAM,KAA0B,iBAAiB,CAC/G,CAAC,CACH,CACF,CACF,CAGA,WAAW,4BAA8B,CACvC,OAAO,IAAI,IAAI,CACb,GAAGf,EAAS,OAAO,2BACnB,WACF,CAAC,CACH,CAEA,iBAA6C,CAI7C,CAEA,sBAAgD,CAC9C,IAAIgB,EACAC,EAEEC,EAAW,KAAK,iBAAiB,EAElC,KAAK,aAAqB,IAC7BF,EAAS,KAAK,WAAW,EACrBA,IACFC,EAAS,KAAK,WAAWE,EAAe,CACtC,KAAMH,EACN,KAAM,KAAK,WAAW,CACxB,CAAC,IAIL,KAAK,aAAqB,EAC1B,IAAMI,EAAQ,KAAK,WAAW,CAC5B,OAAS,KAAK,YAAwC,YACxD,CAAC,EAED,OAAO,KAAK,WAAWC,EAAqB,CAC1C,KAAMH,EACN,MAAOE,EACP,UAAWH,CACb,CAAC,CACH,CAEA,oBAAqBK,EAA+C,CAClE,KAAK,aAAa,QAAQ,EAC1B,IAAMJ,EAAW,KAAK,iBAAiB,EAEnCK,EACJ,OAAI,KAAK,eAAyB,CAChC,QAAS,EACX,CAAC,IACCA,EAAa,KAAK,WAAWC,EAAgB,CAC3C,YAAa,KAAK,uBAAuB,CAC3C,CAAC,GAGI,KAAK,WAAWC,EAAoB,CACzC,KAAMP,EACN,WAAYK,EACZ,IAAKD,CACP,CAAC,CACH,CAIA,WAAW,oBAAsC,CAC/C,OAAO,IAAI,IAAI,CACb,GAAGtB,EAAS,OAAO,iCAErB,CAAC,CACH,CACF,EA3HAF,EAAAI,EAAAL,GAEEM,EAAAL,EAAA,GAAW,gBADXa,EADIC,GAaJT,EAAAL,EAAA,GAAW,qBADXY,EAZIE,GAyBJT,EAAAL,EAAA,GAAW,mBADXW,EAxBIG,GAyCJT,EAAAL,EAAA,GAAW,qBADXU,EAxCII,GAsDJT,EAAAL,EAAA,GAAW,6BADXS,EArDIK,GAqHJT,EAAAL,EAAA,GAAW,qBADXQ,EApHIM,GAANR,EAAAN,EAAMc,GAANP,EAAAP,EAAA,EAAMc,KAsBG,oCAAsC,GAnE/C,IAAAc,EAAAC,EAAAC,EAAAC,EAAAhC,EAAAC,EAyKMgC,EAAN,cAAkCjC,EAAAG,EAAS,UAEzC6B,EAAA,CAAC5B,GAoBD2B,EAAA,CAAC3B,GAgBD0B,EAAA,CAAC1B,GAODyB,EAAA,CAACzB,GA7C+BJ,EAAmB,CAGnD,WAAW,kCAAoC,CAC7C,IAAMkC,EAAY,IAAI,IAAI,MAAM,gCAAgC,EAChE,OACE,UACA,aACA,MACF,EAAE,QAASC,GAAMD,EAAU,OAAOC,CAAC,CAAC,EAC7BD,CACT,CAaA,WAAW,qBAAoF,CAW7F,OATmB,IAAI,IAA4D,CACjF,GAAG/B,EAAS,UAAU,WACtB,CACEiC,EACA,SAA2BC,EAA2B,CACpD,MAAO,UAAU,KAAK,IAAIA,EAAE,KAAK,IAAI,CAAC,EACxC,CACF,CACF,CAAC,CAEH,CAGA,WAAW,qBAAuB,CAChC,IAAMF,EAAI,IAAI,IAAIhC,EAAS,UAAU,mBAAmB,EACxD,OAAAgC,EAAE,IAAIC,kBAA0D,EACzDD,CACT,CAGA,WAAW,2CAA6C,CACtD,OAAO,IAAI,IAAI,CACb,MACF,CAAC,CACH,CAEA,4BAA6BG,EAAkD,CAC7E,OAAOC,EAAU,UAAU,4BAA4B,KAAK,KAAMD,CAAU,CAC9E,CAEA,YAAaA,EAAkC,CAC7C,GAAIA,EAAW,YAA2B,GAAKA,EAAW,KAAK,aAAa,SAAW,EAAG,CACxF,GAAM,CACJE,EACAC,CACF,EAAIH,EAAW,KAAK,YACpB,MAAO,OAAO,KAAK,IAAIE,CAAO,CAAC,KAAK,KAAK,IAAIC,CAAS,CAAC,GACzD,CAEA,OAAO,MAAM,YAAYH,CAAU,CACrC,CACF,EAnEArC,EAAAI,EAAAL,GAGEM,EAAAL,EAAA,GAAW,mCADX+B,EAFIC,GAwBJ3B,EAAAL,EAAA,GAAW,sBAFX8B,EAtBIE,GAuCJ3B,EAAAL,EAAA,GAAW,sBADX6B,EAtCIG,GA8CJ3B,EAAAL,EAAA,GAAW,4CADX4B,EA7CII,GAAN1B,EAAAN,EAAMgC,GAANzB,EAAAP,EAAA,EAAMgC,KAcG,qBAAuB,GAd1BA,EAgBG,cAAgB,GAhBnBA,EAkBG,iBAAmB,GAlBtBA,EAmBG,wBAA0B,GAnB7BA,EAoBG,uBAAyB,GAiD3B,IAAMS,EAAN,cAAyBvC,CAAS,CAQzC,EARauC,EACJ,aAAe,aADXA,EAEJ,qCAAuC,GAFnCA,EAGJ,+BAAiC,GAH7BA,EAKJ,UAAYxC,EALRwC,EAMJ,OAAS3B,EANL2B,EAOJ,UAAYT,EAGrBU,EAAQ,sBAA8BD,CAAU","names":["_ORIGINAL_KEYWORDS_dec","_a","_init","RisingWaveTokenizer","Postgres","cache","__decoratorStart","__decorateElement","__decoratorMetadata","__runInitializers","_TABLE_ALIAS_TOKENS_dec","_SCHEMA_UNNAMED_CONSTRAINTS_dec","_CONSTRAINT_PARSERS_dec","_PROPERTY_PARSERS_dec","_NO_PAREN_FUNCTIONS_dec","_ID_VAR_TOKENS_dec","RisingWaveParser","Parser","noParenFunctions","WatermarkColumnConstraintExpr","header","coldef","thisNode","ColumnDefExpr","alias","IncludePropertyExpr","key","properties","PropertiesExpr","EncodePropertyExpr","_EXPRESSION_PRECEDES_PROPERTIES_CREATABLES_dec","_PROPERTIES_LOCATION_dec","_ORIGINAL_TRANSFORMS_dec","_AFTER_HAVING_MODIFIER_TRANSFORMS_dec","RisingWaveGenerator","modifiers","m","FileFormatPropertyExpr","e","expression","Generator","keyType","valueType","RisingWave","Dialect"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkR7C3ZHVKcjs = require('../chunk-R7C3ZHVK.cjs');var _chunk2Z3O2CFMcjs = require('../chunk-2Z3O2CFM.cjs');function O(M,N="time"){return new (0, _chunk2Z3O2CFMcjs.Cg)({this:M,to:_chunk2Z3O2CFMcjs.ac.build(N,{expressions:[new (0, _chunk2Z3O2CFMcjs.$b)({this:_chunk2Z3O2CFMcjs.$c.number(6)})]})})}var fe,xe,Se,v,x=class extends(Se=_chunkR7C3ZHVKcjs.j.Tokenizer,xe=[_chunk2Z3O2CFMcjs.r],fe=[_chunk2Z3O2CFMcjs.r],Se){static get BYTE_STRINGS(){return[["e'","'"],["E'","'"]]}static get ORIGINAL_KEYWORDS(){return{..._chunkR7C3ZHVKcjs.j.Tokenizer.KEYWORDS,BSON:"jsonb",GEOGRAPHYPOINT:"geographypoint",TIMESTAMP:"timestamp",UTC_DATE:"utcDate",UTC_TIME:"utcTime",UTC_TIMESTAMP:"utcTimestamp",":>":"colonGt","!:>":"ncolonGt","::$":"dcolondollar","::%":"dcolonpercent","::?":"dcolonqmark",RECORD:"struct"}}};v=_chunk2Z3O2CFMcjs.a.call(void 0, Se),_chunk2Z3O2CFMcjs.d.call(void 0, v,10,"BYTE_STRINGS",xe,x),_chunk2Z3O2CFMcjs.d.call(void 0, v,10,"ORIGINAL_KEYWORDS",fe,x),_chunk2Z3O2CFMcjs.b.call(void 0, v,x),_chunk2Z3O2CFMcjs.c.call(void 0, v,3,x);var Oe,Ie,Ne,Ce,ye,De,Pe,Le,Me,Ue,m,u=class extends(Ue=_chunkR7C3ZHVKcjs.j.Parser,Me=[_chunk2Z3O2CFMcjs.r],Le=[_chunk2Z3O2CFMcjs.r],Pe=[_chunk2Z3O2CFMcjs.r],De=[_chunk2Z3O2CFMcjs.r],ye=[_chunk2Z3O2CFMcjs.r],Ce=[_chunk2Z3O2CFMcjs.r],Ne=[_chunk2Z3O2CFMcjs.r],Ie=[_chunk2Z3O2CFMcjs.r],Oe=[_chunk2Z3O2CFMcjs.r],Ue){static get ID_VAR_TOKENS(){return new Set([..._chunk2Z3O2CFMcjs.za.ID_VAR_TOKENS,"sessionUser","currentCatalog","straightJoin"])}static get FUNCTIONS(){return{..._chunkR7C3ZHVKcjs.j.Parser.FUNCTIONS,TO_DATE:_chunk2Z3O2CFMcjs.Kp.call(void 0, _chunk2Z3O2CFMcjs.Pl,{dialect:"singlestore"}),TO_TIMESTAMP:_chunk2Z3O2CFMcjs.Kp.call(void 0, _chunk2Z3O2CFMcjs.xl,{dialect:"singlestore"}),TO_CHAR:_chunk2Z3O2CFMcjs.Kp.call(void 0, _chunk2Z3O2CFMcjs.Qf,{dialect:"singlestore"}),STR_TO_DATE:_chunk2Z3O2CFMcjs.Kp.call(void 0, _chunk2Z3O2CFMcjs.wl,{dialect:"mysql"}),DATE_FORMAT:_chunk2Z3O2CFMcjs.Kp.call(void 0, _chunk2Z3O2CFMcjs.Hl,{dialect:"mysql"}),TIME_FORMAT:t=>new (0, _chunk2Z3O2CFMcjs.Hl)({this:O(_chunk2Z3O2CFMcjs.ca.call(void 0, t,0)),format:_chunkR7C3ZHVKcjs.j.formatTime(_chunk2Z3O2CFMcjs.ca.call(void 0, t,1))}),HOUR:t=>new (0, _chunk2Z3O2CFMcjs.Cg)({this:new (0, _chunk2Z3O2CFMcjs.Hl)({this:O(_chunk2Z3O2CFMcjs.ca.call(void 0, t,0)),format:_chunkR7C3ZHVKcjs.j.formatTime(_chunk2Z3O2CFMcjs.$c.string("%k"))}),to:_chunk2Z3O2CFMcjs.ac.build("int")}),MICROSECOND:t=>new (0, _chunk2Z3O2CFMcjs.Cg)({this:new (0, _chunk2Z3O2CFMcjs.Hl)({this:O(_chunk2Z3O2CFMcjs.ca.call(void 0, t,0)),format:_chunkR7C3ZHVKcjs.j.formatTime(_chunk2Z3O2CFMcjs.$c.string("%f"))}),to:_chunk2Z3O2CFMcjs.ac.build("int")}),SECOND:t=>new (0, _chunk2Z3O2CFMcjs.Cg)({this:new (0, _chunk2Z3O2CFMcjs.Hl)({this:O(_chunk2Z3O2CFMcjs.ca.call(void 0, t,0)),format:_chunkR7C3ZHVKcjs.j.formatTime(_chunk2Z3O2CFMcjs.$c.string("%s"))}),to:_chunk2Z3O2CFMcjs.ac.build("int")}),MINUTE:t=>new (0, _chunk2Z3O2CFMcjs.Cg)({this:new (0, _chunk2Z3O2CFMcjs.Hl)({this:O(_chunk2Z3O2CFMcjs.ca.call(void 0, t,0)),format:_chunkR7C3ZHVKcjs.j.formatTime(_chunk2Z3O2CFMcjs.$c.string("%i"))}),to:_chunk2Z3O2CFMcjs.ac.build("int")}),MONTHNAME:t=>new (0, _chunk2Z3O2CFMcjs.Hl)({this:_chunk2Z3O2CFMcjs.ca.call(void 0, t,0),format:_chunkR7C3ZHVKcjs.j.formatTime(_chunk2Z3O2CFMcjs.$c.string("%M"))}),WEEKDAY:t=>new (0, _chunk2Z3O2CFMcjs.Ve)({this:new (0, _chunk2Z3O2CFMcjs.Fh)({this:_chunk2Z3O2CFMcjs.ca.call(void 0, t,0)}).add(5).mod(7)}),UNIX_TIMESTAMP:t=>_chunk2Z3O2CFMcjs.yl.fromArgList(t),FROM_UNIXTIME:_chunk2Z3O2CFMcjs.Kp.call(void 0, _chunk2Z3O2CFMcjs.Zl,{dialect:"mysql"}),TIME_BUCKET:t=>new (0, _chunk2Z3O2CFMcjs.vh)({this:_chunk2Z3O2CFMcjs.ca.call(void 0, t,0),expression:_chunk2Z3O2CFMcjs.ca.call(void 0, t,1),origin:_chunk2Z3O2CFMcjs.ca.call(void 0, t,2)}),BSON_EXTRACT_BSON:_chunk2Z3O2CFMcjs.zq.call(void 0, _chunk2Z3O2CFMcjs.xj),BSON_EXTRACT_STRING:_chunk2Z3O2CFMcjs.zq.call(void 0, _chunk2Z3O2CFMcjs.yj,{jsonType:"STRING"}),BSON_EXTRACT_DOUBLE:_chunk2Z3O2CFMcjs.zq.call(void 0, _chunk2Z3O2CFMcjs.yj,{jsonType:"DOUBLE"}),BSON_EXTRACT_BIGINT:_chunk2Z3O2CFMcjs.zq.call(void 0, _chunk2Z3O2CFMcjs.yj,{jsonType:"BIGINT"}),JSON_EXTRACT_JSON:_chunk2Z3O2CFMcjs.zq.call(void 0, _chunk2Z3O2CFMcjs.uj),JSON_EXTRACT_STRING:_chunk2Z3O2CFMcjs.zq.call(void 0, _chunk2Z3O2CFMcjs.wj,{jsonType:"STRING"}),JSON_EXTRACT_DOUBLE:_chunk2Z3O2CFMcjs.zq.call(void 0, _chunk2Z3O2CFMcjs.wj,{jsonType:"DOUBLE"}),JSON_EXTRACT_BIGINT:_chunk2Z3O2CFMcjs.zq.call(void 0, _chunk2Z3O2CFMcjs.wj,{jsonType:"BIGINT"}),JSON_ARRAY_CONTAINS_STRING:t=>new (0, _chunk2Z3O2CFMcjs.Bj)({this:_chunk2Z3O2CFMcjs.ca.call(void 0, t,1),expression:_chunk2Z3O2CFMcjs.ca.call(void 0, t,0),jsonType:"STRING"}),JSON_ARRAY_CONTAINS_DOUBLE:t=>new (0, _chunk2Z3O2CFMcjs.Bj)({this:_chunk2Z3O2CFMcjs.ca.call(void 0, t,1),expression:_chunk2Z3O2CFMcjs.ca.call(void 0, t,0),jsonType:"DOUBLE"}),JSON_ARRAY_CONTAINS_JSON:t=>new (0, _chunk2Z3O2CFMcjs.Bj)({this:_chunk2Z3O2CFMcjs.ca.call(void 0, t,1),expression:_chunk2Z3O2CFMcjs.ca.call(void 0, t,0),jsonType:"JSON"}),JSON_KEYS:t=>new (0, _chunk2Z3O2CFMcjs.ij)({this:_chunk2Z3O2CFMcjs.ca.call(void 0, t,0),expressions:t.slice(1)}),JSON_PRETTY:t=>_chunk2Z3O2CFMcjs.zj.fromArgList(t),JSON_BUILD_ARRAY:t=>new (0, _chunk2Z3O2CFMcjs.lj)({expressions:t}),JSON_BUILD_OBJECT:t=>new (0, _chunk2Z3O2CFMcjs.kj)({expressions:t}),DATE:t=>_chunk2Z3O2CFMcjs.li.fromArgList(t),DAYNAME:t=>new (0, _chunk2Z3O2CFMcjs.Hl)({this:_chunk2Z3O2CFMcjs.ca.call(void 0, t,0),format:_chunkR7C3ZHVKcjs.j.formatTime(_chunk2Z3O2CFMcjs.$c.string("%W"))}),TIMESTAMPDIFF:t=>new (0, _chunk2Z3O2CFMcjs.ai)({this:_chunk2Z3O2CFMcjs.ca.call(void 0, t,2),expression:_chunk2Z3O2CFMcjs.ca.call(void 0, t,1),unit:_chunk2Z3O2CFMcjs.ca.call(void 0, t,0)}),APPROX_COUNT_DISTINCT:t=>_chunk2Z3O2CFMcjs.Km.fromArgList(t),APPROX_PERCENTILE:t=>new (0, _chunk2Z3O2CFMcjs.Zn)({this:_chunk2Z3O2CFMcjs.ca.call(void 0, t,0),quantile:_chunk2Z3O2CFMcjs.ca.call(void 0, t,1),errorTolerance:_chunk2Z3O2CFMcjs.ca.call(void 0, t,2)}),VARIANCE:t=>_chunk2Z3O2CFMcjs.Sn.fromArgList(t),INSTR:t=>_chunk2Z3O2CFMcjs.Mg.fromArgList(t),REGEXP_MATCH:t=>new (0, _chunk2Z3O2CFMcjs.Jk)({this:_chunk2Z3O2CFMcjs.ca.call(void 0, t,0),expression:_chunk2Z3O2CFMcjs.ca.call(void 0, t,1),parameters:_chunk2Z3O2CFMcjs.ca.call(void 0, t,2)}),REGEXP_SUBSTR:t=>new (0, _chunk2Z3O2CFMcjs.Ik)({this:_chunk2Z3O2CFMcjs.ca.call(void 0, t,0),expression:_chunk2Z3O2CFMcjs.ca.call(void 0, t,1),position:_chunk2Z3O2CFMcjs.ca.call(void 0, t,2),occurrence:_chunk2Z3O2CFMcjs.ca.call(void 0, t,3),parameters:_chunk2Z3O2CFMcjs.ca.call(void 0, t,4)}),REDUCE:t=>new (0, _chunk2Z3O2CFMcjs.Hk)({initial:_chunk2Z3O2CFMcjs.ca.call(void 0, t,0),this:_chunk2Z3O2CFMcjs.ca.call(void 0, t,1),merge:_chunk2Z3O2CFMcjs.ca.call(void 0, t,2)})}}static get FUNCTION_PARSERS(){return{..._chunkR7C3ZHVKcjs.j.Parser.FUNCTION_PARSERS,JSON_AGG:function(){return this.expression(_chunk2Z3O2CFMcjs.pn,{this:this.parseTerm(),order:this.parseOrder()})}}}static get NO_PAREN_FUNCTIONS(){return{..._chunkR7C3ZHVKcjs.j.Parser.NO_PAREN_FUNCTIONS,utcDate:_chunk2Z3O2CFMcjs.rh,utcTime:_chunk2Z3O2CFMcjs.sh,utcTimestamp:_chunk2Z3O2CFMcjs.th}}static get CAST_COLUMN_OPERATORS(){return new Set(["colonGt","ncolonGt"])}static get COLUMN_OPERATORS(){return(()=>{let e={..._chunkR7C3ZHVKcjs.j.Parser.COLUMN_OPERATORS,colonGt:function(t,r){return this.expression(_chunk2Z3O2CFMcjs.Cg,{this:t,to:r})},ncolonGt:function(t,r){return this.expression(_chunk2Z3O2CFMcjs.bn,{this:t,to:r})},dcolon:function(t,r){return _chunk2Z3O2CFMcjs.zq.call(void 0, (0, _chunk2Z3O2CFMcjs.uj))([t,_chunk2Z3O2CFMcjs.$c.string(r.name)])},dcolondollar:function(t,r){return _chunk2Z3O2CFMcjs.zq.call(void 0, _chunk2Z3O2CFMcjs.wj,{jsonType:"STRING"})([t,_chunk2Z3O2CFMcjs.$c.string(r.name)])},dcolonpercent:function(t,r){return _chunk2Z3O2CFMcjs.zq.call(void 0, _chunk2Z3O2CFMcjs.wj,{jsonType:"DOUBLE"})([t,_chunk2Z3O2CFMcjs.$c.string(r.name)])},dcolonqmark:function(t,r){return this.expression(_chunk2Z3O2CFMcjs.mj,{this:t,path:_optionalChain([r, 'optionalAccess', _2 => _2.name]),fromDcolonqmark:!0})}};return delete e.arrow,delete e.darrow,delete e.hashArrow,delete e.dhashArrow,delete e.placeholder,e})()}static get SHOW_PARSERS(){return{..._chunkR7C3ZHVKcjs.j.Parser.SHOW_PARSERS,AGGREGATES:_chunkR7C3ZHVKcjs.a.call(void 0, "AGGREGATES"),"CDC EXTRACTOR POOL":_chunkR7C3ZHVKcjs.a.call(void 0, "CDC EXTRACTOR POOL"),"CREATE AGGREGATE":_chunkR7C3ZHVKcjs.a.call(void 0, "CREATE AGGREGATE",{target:!0}),"CREATE PIPELINE":_chunkR7C3ZHVKcjs.a.call(void 0, "CREATE PIPELINE",{target:!0}),"CREATE PROJECTION":_chunkR7C3ZHVKcjs.a.call(void 0, "CREATE PROJECTION",{target:!0}),"DATABASE STATUS":_chunkR7C3ZHVKcjs.a.call(void 0, "DATABASE STATUS"),"DISTRIBUTED_PLANCACHE STATUS":_chunkR7C3ZHVKcjs.a.call(void 0, "DISTRIBUTED_PLANCACHE STATUS"),"FULLTEXT SERVICE METRICS LOCAL":_chunkR7C3ZHVKcjs.a.call(void 0, "FULLTEXT SERVICE METRICS LOCAL"),"FULLTEXT SERVICE METRICS FOR NODE":_chunkR7C3ZHVKcjs.a.call(void 0, "FULLTEXT SERVICE METRICS FOR NODE",{target:!0}),"FULLTEXT SERVICE STATUS":_chunkR7C3ZHVKcjs.a.call(void 0, "FULLTEXT SERVICE STATUS"),FUNCTIONS:_chunkR7C3ZHVKcjs.a.call(void 0, "FUNCTIONS"),GROUPS:_chunkR7C3ZHVKcjs.a.call(void 0, "GROUPS"),"GROUPS FOR ROLE":_chunkR7C3ZHVKcjs.a.call(void 0, "GROUPS FOR ROLE",{target:!0}),"GROUPS FOR USER":_chunkR7C3ZHVKcjs.a.call(void 0, "GROUPS FOR USER",{target:!0}),INDEXES:_chunkR7C3ZHVKcjs.a.call(void 0, "INDEX",{target:"FROM"}),KEYS:_chunkR7C3ZHVKcjs.a.call(void 0, "INDEX",{target:"FROM"}),LINKS:_chunkR7C3ZHVKcjs.a.call(void 0, "LINKS",{target:"ON"}),"LOAD ERRORS":_chunkR7C3ZHVKcjs.a.call(void 0, "LOAD ERRORS"),"LOAD WARNINGS":_chunkR7C3ZHVKcjs.a.call(void 0, "LOAD WARNINGS"),PARTITIONS:_chunkR7C3ZHVKcjs.a.call(void 0, "PARTITIONS",{target:"ON"}),PIPELINES:_chunkR7C3ZHVKcjs.a.call(void 0, "PIPELINES"),PLAN:_chunkR7C3ZHVKcjs.a.call(void 0, "PLAN",{target:!0}),PLANCACHE:_chunkR7C3ZHVKcjs.a.call(void 0, "PLANCACHE"),PROCEDURES:_chunkR7C3ZHVKcjs.a.call(void 0, "PROCEDURES"),PROJECTIONS:_chunkR7C3ZHVKcjs.a.call(void 0, "PROJECTIONS",{target:"ON TABLE"}),"REPLICATION STATUS":_chunkR7C3ZHVKcjs.a.call(void 0, "REPLICATION STATUS"),REPRODUCTION:_chunkR7C3ZHVKcjs.a.call(void 0, "REPRODUCTION"),"RESOURCE POOLS":_chunkR7C3ZHVKcjs.a.call(void 0, "RESOURCE POOLS"),ROLES:_chunkR7C3ZHVKcjs.a.call(void 0, "ROLES"),"ROLES FOR USER":_chunkR7C3ZHVKcjs.a.call(void 0, "ROLES FOR USER",{target:!0}),"ROLES FOR GROUP":_chunkR7C3ZHVKcjs.a.call(void 0, "ROLES FOR GROUP",{target:!0}),"STATUS EXTENDED":_chunkR7C3ZHVKcjs.a.call(void 0, "STATUS EXTENDED"),USERS:_chunkR7C3ZHVKcjs.a.call(void 0, "USERS"),"USERS FOR ROLE":_chunkR7C3ZHVKcjs.a.call(void 0, "USERS FOR ROLE",{target:!0}),"USERS FOR GROUP":_chunkR7C3ZHVKcjs.a.call(void 0, "USERS FOR GROUP",{target:!0})}}static get ALTER_PARSERS(){return{..._chunkR7C3ZHVKcjs.j.Parser.ALTER_PARSERS,CHANGE:function(){return this.expression(_chunk2Z3O2CFMcjs.ab,{this:this.parseColumn(),to:this.parseColumn()})}}}parseVectorExpressions(e){let t=e[1].name.toUpperCase(),r=this.dialect._constructor.VECTOR_TYPE_ALIASES;return t in r&&(t=r[t]),[_chunk2Z3O2CFMcjs.ac.build(t,{dialect:this.dialect}),e[0]]}static get TABLE_ALIAS_TOKENS(){return new Set([..._chunkR7C3ZHVKcjs.j.Parser.TABLE_ALIAS_TOKENS,"straightJoin"])}};m=_chunk2Z3O2CFMcjs.a.call(void 0, Ue),_chunk2Z3O2CFMcjs.d.call(void 0, m,10,"ID_VAR_TOKENS",Me,u),_chunk2Z3O2CFMcjs.d.call(void 0, m,10,"FUNCTIONS",Le,u),_chunk2Z3O2CFMcjs.d.call(void 0, m,10,"FUNCTION_PARSERS",Pe,u),_chunk2Z3O2CFMcjs.d.call(void 0, m,10,"NO_PAREN_FUNCTIONS",De,u),_chunk2Z3O2CFMcjs.d.call(void 0, m,10,"CAST_COLUMN_OPERATORS",ye,u),_chunk2Z3O2CFMcjs.d.call(void 0, m,10,"COLUMN_OPERATORS",Ce,u),_chunk2Z3O2CFMcjs.d.call(void 0, m,10,"SHOW_PARSERS",Ne,u),_chunk2Z3O2CFMcjs.d.call(void 0, m,10,"ALTER_PARSERS",Ie,u),_chunk2Z3O2CFMcjs.d.call(void 0, m,10,"TABLE_ALIAS_TOKENS",Oe,u),_chunk2Z3O2CFMcjs.b.call(void 0, m,u),_chunk2Z3O2CFMcjs.c.call(void 0, m,3,u);var Ge,be,we,qe,ve,ke,Fe,Je,je,g,l=class extends(je=_chunkR7C3ZHVKcjs.j.Generator,Je=[_chunk2Z3O2CFMcjs.r],Fe=[_chunk2Z3O2CFMcjs.r],ke=[_chunk2Z3O2CFMcjs.r],ve=[_chunk2Z3O2CFMcjs.r],qe=[_chunk2Z3O2CFMcjs.r],we=[_chunk2Z3O2CFMcjs.r],be=[_chunk2Z3O2CFMcjs.r],Ge=[_chunk2Z3O2CFMcjs.r],je){static get AFTER_HAVING_MODIFIER_TRANSFORMS(){let e=new Map(super.AFTER_HAVING_MODIFIER_TRANSFORMS);return["cluster","distribute","sort"].forEach(t=>e.delete(t)),e}static get NULL_ORDERING_SUPPORTED(){return"supported"}static get STRUCT_DELIMITER(){return["(",")"]}static get SUPPORTED_JSON_PATH_PARTS(){return new Set([_chunk2Z3O2CFMcjs.ie,_chunk2Z3O2CFMcjs.je,_chunk2Z3O2CFMcjs.ke])}static get ORIGINAL_TRANSFORMS(){let e=new Map([..._chunkR7C3ZHVKcjs.j.Generator.TRANSFORMS,[_chunk2Z3O2CFMcjs.Pl,function(t){return t.args.format?this.func("TO_DATE",[t.args.this,this.formatTime(t)]):this.func("DATE",[t.args.this])}],[_chunk2Z3O2CFMcjs.xl,function(t){return this.func("TO_TIMESTAMP",[t.args.this,this.formatTime(t)])}],[_chunk2Z3O2CFMcjs.Qf,function(t){return this.func("TO_CHAR",[t.args.this,this.formatTime(t)])}],[_chunk2Z3O2CFMcjs.wl,function(t){return this.func("STR_TO_DATE",[t.args.this,this.formatTime(t,_chunkR7C3ZHVKcjs.j.INVERSE_TIME_MAPPING,_chunkR7C3ZHVKcjs.j.INVERSE_TIME_TRIE)])}],[_chunk2Z3O2CFMcjs.Hl,function(t){return this.func("DATE_FORMAT",[t.args.this,this.formatTime(t,_chunkR7C3ZHVKcjs.j.INVERSE_TIME_MAPPING,_chunkR7C3ZHVKcjs.j.INVERSE_TIME_TRIE)])}],[_chunk2Z3O2CFMcjs.li,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"zone","expressions"),_chunk2Z3O2CFMcjs.pp.call(void 0, "DATE").call(this,t)}],[_chunk2Z3O2CFMcjs.Cg,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"format","action","default"),`${this.sql(t.args.this)} :> ${this.sql(t.args.to)}`}],[_chunk2Z3O2CFMcjs.bn,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"format","action","default"),`${this.sql(t.args.this)} !:> ${this.sql(t.args.to)}`}],[_chunk2Z3O2CFMcjs.Dg,function(t){return this.sql(new (0, _chunk2Z3O2CFMcjs.Cg)({this:t.args.this,to:_chunk2Z3O2CFMcjs.ac.build(_optionalChain([t, 'access', _3 => _3.args, 'access', _4 => _4.to, 'optionalAccess', _5 => _5.name]))}))}],[_chunk2Z3O2CFMcjs.yl,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"format"),_chunk2Z3O2CFMcjs.pp.call(void 0, "UNIX_TIMESTAMP").call(this,t)}],[_chunk2Z3O2CFMcjs.Il,_chunk2Z3O2CFMcjs.pp.call(void 0, "UNIX_TIMESTAMP")],[_chunk2Z3O2CFMcjs.Ll,_chunk2Z3O2CFMcjs.pp.call(void 0, "UNIX_TIMESTAMP")],[_chunk2Z3O2CFMcjs.$l,_chunk2Z3O2CFMcjs.pp.call(void 0, "UNIX_TIMESTAMP")],[_chunk2Z3O2CFMcjs.Yl,function(t){return this.func("FROM_UNIXTIME",[t.args.this,this.formatTime(t,_chunkR7C3ZHVKcjs.j.INVERSE_TIME_MAPPING,_chunkR7C3ZHVKcjs.j.INVERSE_TIME_TRIE)])}],[_chunk2Z3O2CFMcjs.Zl,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"scale","zone","hours","minutes"),this.func("FROM_UNIXTIME",[t.args.this,this.formatTime(t,_chunkR7C3ZHVKcjs.j.INVERSE_TIME_MAPPING,_chunkR7C3ZHVKcjs.j.INVERSE_TIME_TRIE)])}],[_chunk2Z3O2CFMcjs._l,function(t){return`FROM_UNIXTIME(${this.sql(t.args.this)}) :> TEXT`}],[_chunk2Z3O2CFMcjs.vh,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"unit","zone"),this.func("TIME_BUCKET",[t.args.this,t.args.expression,t.args.origin])}],[_chunk2Z3O2CFMcjs.Jl,function(t){return this.sql(new (0, _chunk2Z3O2CFMcjs.Cg)({this:t.args.this,to:_chunk2Z3O2CFMcjs.ac.build("date")}))}],[_chunk2Z3O2CFMcjs.lc,function(t){return this.func("CONVERT_TZ",[t.args.this,t.args.zone,"'UTC'"])}],[_chunk2Z3O2CFMcjs.ri,function(t){return`STR_TO_DATE(${this.sql(t.args.this)}, ${I.DATEINT_FORMAT})`}],[_chunk2Z3O2CFMcjs.ki,function(t){return`(DATE_FORMAT(${this.sql(t.args.this)}, ${I.DATEINT_FORMAT}) :> INT)`}],[_chunk2Z3O2CFMcjs.Tl,function(t){return`(DATE_FORMAT(${this.sql(t.args.this)}, ${I.DATEINT_FORMAT}) :> INT)`}],[_chunk2Z3O2CFMcjs.Gl,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"zone"),`${this.sql(t.args.this)} :> TIME`}],[_chunk2Z3O2CFMcjs.Ah,_chunkR7C3ZHVKcjs.i.call(void 0, _chunkR7C3ZHVKcjs.g.call(void 0, "ADD"))],[_chunk2Z3O2CFMcjs.Dh,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"zone"),_chunk2Z3O2CFMcjs.Qp.call(void 0, ).call(this,t)}],[_chunk2Z3O2CFMcjs.Bh,_chunk2Z3O2CFMcjs.Pp.call(void 0, "DATE","SUB")],[_chunk2Z3O2CFMcjs.Ch,_chunk2Z3O2CFMcjs.Nq],[_chunk2Z3O2CFMcjs.yh,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"zone"),_chunk2Z3O2CFMcjs.Qp.call(void 0, ).call(this,t)}],[_chunk2Z3O2CFMcjs.xh,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"zone"),t.args.unit!==void 0?_chunk2Z3O2CFMcjs.Nq.call(this,t):this.func("DATEDIFF",[t.args.this,t.args.expression])}],[_chunk2Z3O2CFMcjs.Ol,function(t){return t.args.unit!==void 0?_chunk2Z3O2CFMcjs.Nq.call(this,t):this.func("DATEDIFF",[t.args.this,t.args.expression])}],[_chunk2Z3O2CFMcjs.bi,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"zone"),_chunk2Z3O2CFMcjs.Qp.call(void 0, ).call(this,t)}],[_chunk2Z3O2CFMcjs.ah,function(t){return this.sql(O(new (0, _chunk2Z3O2CFMcjs.fh)({this:_chunk2Z3O2CFMcjs.$c.number(6)}),"datetime"))}],[_chunk2Z3O2CFMcjs.uj,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"onlyJsonTypes","expressions","variantExtract","jsonQuery","option","quote","onCondition","requiresJson"),_chunk2Z3O2CFMcjs.Aq.call(void 0, "JSON_EXTRACT_JSON").call(this,t)}],[_chunk2Z3O2CFMcjs.xj,_chunk2Z3O2CFMcjs.Aq.call(void 0, "BSON_EXTRACT_BSON")],[_chunk2Z3O2CFMcjs.ie,_chunk2Z3O2CFMcjs.Bq],[_chunk2Z3O2CFMcjs.ke,function(t){return this.jsonPathPart(t.args.this)}],[_chunk2Z3O2CFMcjs.je,()=>""],[_chunk2Z3O2CFMcjs.zj,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"options","isJson"),_chunk2Z3O2CFMcjs.pp.call(void 0, "JSON_PRETTY").call(this,t)}],[_chunk2Z3O2CFMcjs.pn,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"nullHandling","returnType","strict"),this.func("JSON_AGG",[t.args.this],{suffix:`${this.sql(t.args.order)})`})}],[_chunk2Z3O2CFMcjs.lj,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"nullHandling","returnType","strict"),_chunk2Z3O2CFMcjs.pp.call(void 0, "JSON_BUILD_ARRAY").call(this,t)}],[_chunk2Z3O2CFMcjs.tj,function(t){return this.func("BSON_MATCH_ANY_EXISTS",[t.args.this,t.args.path])}],[_chunk2Z3O2CFMcjs.mj,function(t){return t.args.fromDcolonqmark?`${this.sql(t.args.this)}::?${this.sql(t.args.path)}`:this.func("JSON_MATCH_ANY_EXISTS",[t.args.this,t.args.path])}],[_chunk2Z3O2CFMcjs.kj,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"nullHandling","uniqueKeys","returnType","encoding"),_chunk2Z3O2CFMcjs.pp.call(void 0, "JSON_BUILD_OBJECT").call(this,t)}],[_chunk2Z3O2CFMcjs.Gh,function(t){return`((${this.func("DAYOFWEEK",[t.args.this])} % 7) + 1)`}],[_chunk2Z3O2CFMcjs.Hh,_chunk2Z3O2CFMcjs.pp.call(void 0, "DAY")],[_chunk2Z3O2CFMcjs.Km,_chunk2Z3O2CFMcjs.pp.call(void 0, "APPROX_COUNT_DISTINCT")],[_chunk2Z3O2CFMcjs.Lm,_chunk2Z3O2CFMcjs.pp.call(void 0, "APPROX_COUNT_DISTINCT")],[_chunk2Z3O2CFMcjs.fn,_chunk2Z3O2CFMcjs.aq],[_chunk2Z3O2CFMcjs.qn,function(t){return`MAX(ABS(${this.sql(t.args.this)}))`}],[_chunk2Z3O2CFMcjs.rn,function(t){return`MIN(ABS(${this.sql(t.args.this)}))`}],[_chunk2Z3O2CFMcjs.Zn,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"accuracy","weight"),this.func("APPROX_PERCENTILE",[t.args.this,t.args.quantile,t.args.errorTolerance])}],[_chunk2Z3O2CFMcjs.Rn,_chunk2Z3O2CFMcjs.pp.call(void 0, "VAR_SAMP")],[_chunk2Z3O2CFMcjs.Sn,_chunk2Z3O2CFMcjs.pp.call(void 0, "VAR_POP")],[_chunk2Z3O2CFMcjs.mn,_chunk2Z3O2CFMcjs.mq],[_chunk2Z3O2CFMcjs.Ng,function(t){return this.sql(new (0, _chunk2Z3O2CFMcjs.zk)({this:t.args.this,expression:_chunk2Z3O2CFMcjs.$c.number(1).div(_chunk2Z3O2CFMcjs.$c.number(3))}))}],[_chunk2Z3O2CFMcjs.Lk,function(t){return this.binary(t,"RLIKE")}],[_chunk2Z3O2CFMcjs.Rk,function(t){return this.func("LPAD",[_chunk2Z3O2CFMcjs.$c.string(""),new (0, _chunk2Z3O2CFMcjs.Qe)({this:this.func("LENGTH",[t.args.this]),expression:_optionalChain([t, 'access', _6 => _6.args, 'access', _7 => _7.times, 'optionalAccess', _8 => _8[0]])}),t.args.this])}],[_chunk2Z3O2CFMcjs.bj,function(t){return`(${this.sql(t.args.this)} RLIKE '^[\\x00-\\x7f]*$')`}],[_chunk2Z3O2CFMcjs.hk,function(t){return this.func("UNHEX",[this.func("MD5",[t.args.this])])}],[_chunk2Z3O2CFMcjs.Mg,_chunk2Z3O2CFMcjs.pp.call(void 0, "INSTR")],[_chunk2Z3O2CFMcjs.Jk,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"position","occurrence","group"),this.func("REGEXP_MATCH",[t.args.this,t.args.expression,t.args.parameters])}],[_chunk2Z3O2CFMcjs.Ik,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"group"),this.func("REGEXP_SUBSTR",[t.args.this,t.args.expression,t.args.position,t.args.occurrence,t.args.parameters])}],[_chunk2Z3O2CFMcjs.rl,function(t){return this.func("REGEXP_INSTR",[t.args.this,this.func("CONCAT",[_chunk2Z3O2CFMcjs.$c.string("^"),t.args.expression])])}],[_chunk2Z3O2CFMcjs.Bl,function(t){return this.func("CONV",[t.args.this,t.args.expression,_chunk2Z3O2CFMcjs.$c.number(10)])}],[_chunk2Z3O2CFMcjs.Mk,function(t){return this.binary(new (0, _chunk2Z3O2CFMcjs.Lk)({this:new (0, _chunk2Z3O2CFMcjs.Uj)({this:t.args.this}),expression:new (0, _chunk2Z3O2CFMcjs.Uj)({this:t.args.expression})}),"RLIKE")}],[_chunk2Z3O2CFMcjs.El,function(t){return this.func("CONCAT",[this.func("SUBSTRING",[t.args.this,_chunk2Z3O2CFMcjs.$c.number(1),_optionalChain([t, 'access', _9 => _9.args, 'access', _10 => _10.start, 'optionalAccess', _11 => _11.sub, 'call', _12 => _12(1)])]),t.args.expression,this.func("SUBSTRING",[t.args.this,_optionalChain([t, 'access', _13 => _13.args, 'access', _14 => _14.start, 'optionalAccess', _15 => _15.add, 'call', _16 => _16(t.args.length)])])])}],[_chunk2Z3O2CFMcjs.tb,function(t){return this.nationalSql(t,{prefix:""})}],[_chunk2Z3O2CFMcjs.Hk,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"finish"),this.func("REDUCE",[t.args.initial,t.args.this,t.args.merge])}],[_chunk2Z3O2CFMcjs.fk,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"modifier"),this.matchAgainstSql(t)}],[_chunk2Z3O2CFMcjs.Ta,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"history","terse","offset","startsWith","limit","from","scope","scopeKind","mutex","query","channel","log","types","privileges"),this.showSql(t)}],[_chunk2Z3O2CFMcjs.La,function(t){return _chunk2Z3O2CFMcjs.kp.call(this,t,"style","kind","expressions","partition","format"),this.describeSql(t)}]]);return e.delete(_chunk2Z3O2CFMcjs.wj),e.delete(_chunk2Z3O2CFMcjs.$g),e}static get UNSUPPORTED_TYPES(){return new Set(["array","aggregatefunction","simpleaggregatefunction","bigserial","bpchar","datemultirange","daterange","dynamic","hllsketch","hstore","image","inet","int128","int256","int4multirange","int4range","int8multirange","int8range","interval","ipaddress","ipprefix","ipv4","ipv6","list","map","lowcardinality","money","multilinestring","name","nested","nothing","null","nummultirange","numrange","object","range","rowversion","serial","smallserial","smallmoney","super","timetz","timestampntz","timestampltz","timestamptz","timestampNs","tsmultirange","tsrange","tstzmultirange","tstzrange","uint128","uint256","union","unknown","user-defined","uuid","variant","xml","tdigest"])}static get TYPE_MAPPING(){return new Map([..._chunkR7C3ZHVKcjs.j.Generator.TYPE_MAPPING,["bigdecimal","DECIMAL"],["bit","BOOLEAN"],["date32","DATE"],["datetime64","DATETIME"],["decimal32","DECIMAL"],["decimal64","DECIMAL"],["decimal128","DECIMAL"],["decimal256","DECIMAL"],["enum8","ENUM"],["enum16","ENUM"],["fixedstring","TEXT"],["geometry","GEOGRAPHY"],["point","GEOGRAPHYPOINT"],["ring","GEOGRAPHY"],["linestring","GEOGRAPHY"],["polygon","GEOGRAPHY"],["multipolygon","GEOGRAPHY"],["struct","RECORD"],["jsonb","BSON"],["timestamp","TIMESTAMP"],["timestampS","TIMESTAMP"],["timestampMs","TIMESTAMP(6)"]])}static get RESERVED_KEYWORDS(){return new Set(["abs","absolute","access","account","acos","action","add","adddate","addtime","admin","aes_decrypt","aes_encrypt","after","against","aggregate","aggregates","aggregator","aggregator_id","aggregator_plan_hash","aggregators","algorithm","all","also","alter","always","analyse","analyze","and","anti_join","any","any_value","approx_count_distinct","approx_count_distinct_accumulate","approx_count_distinct_combine","approx_count_distinct_estimate","approx_geography_intersects","approx_percentile","arghistory","arrange","arrangement","array","as","asc","ascii","asensitive","asin","asm","assertion","assignment","ast","asymmetric","async","at","atan","atan2","attach","attribute","authorization","auto","auto_increment","auto_reprovision","autostats","autostats_cardinality_mode","autostats_enabled","autostats_histogram_mode","autostats_sampling","availability","avg","avg_row_length","avro","azure","background","_background_threads_for_cleanup","backup","backup_history","backup_id","backward","batch","batches","batch_interval","_batch_size_limit","before","begin","between","bigint","bin","binary","_binary","bit","bit_and","bit_count","bit_or","bit_xor","blob","bool","boolean","bootstrap","both","_bt","btree","bucket_count","by","byte","byte_length","cache","call","call_for_pipeline","called","capture","cascade","cascaded","case","cast","catalog","ceil","ceiling","chain","change","char","character","characteristics","character_length","char_length","charset","check","checkpoint","_check_can_connect","_check_consistency","checksum","_checksum","class","clear","client","client_found_rows","close","cluster","clustered","cnf","coalesce","coercibility","collate","collation","collect","column","columnar","columns","columnstore","columnstore_segment_rows","comment","comments","commit","committed","_commit_log_tail","compact","compile","compressed","compression","concat","concat_ws","concurrent","concurrently","condition","configuration","connection","connection_id","connections","config","constraint","constraints","content","continue","_continue_replay","conv","conversion","convert","convert_tz","copy","_core","cos","cost","cot","count","create","credentials","cross","cube","csv","cume_dist","curdate","current","current_catalog","current_date","current_role","current_schema","current_security_groups","current_security_roles","current_time","current_timestamp","current_user","cursor","curtime","cycle","data","database","databases","date","date_add","datediff","date_format","date_sub","date_trunc","datetime","day","day_hour","day_microsecond","day_minute","dayname","dayofmonth","dayofweek","dayofyear","day_second","deallocate","dec","decimal","declare","decode","default","defaults","deferrable","deferred","defined","definer","degrees","delayed","delay_key_write","delete","delimiter","delimiters","dense_rank","desc","describe","detach","deterministic","dictionary","differential","directory","disable","discard","_disconnect","disk","distinct","distinctrow","distributed_joins","div","do","document","domain","dot_product","double","drop","_drop_profile","dual","dump","duplicate","dynamic","earliest","each","echo","election","else","elseif","elt","enable","enclosed","encoding","encrypted","end","engine","engines","enum","errors","escape","escaped","estimate","euclidean_distance","event","events","except","exclude","excluding","exclusive","execute","exists","exit","exp","explain","extended","extension","external","external_host","external_port","extract","extractor","extractors","extra_join","_failover","failed_login_attempts","failure","false","family","fault","fetch","field","fields","file","files","fill","first","first_value","fix_alter","fixed","float","float4","float8","floor","flush","following","for","force","force_compiled_mode","force_interpreter_mode","foreground","foreign","format","forward","found_rows","freeze","from","from_base64","from_days","from_unixtime","fs","_fsync","full","fulltext","function","functions","gc","gcs","get_format","_gc","_gcx","generate","geography","geography_area","geography_contains","geography_distance","geography_intersects","geography_latitude","geography_length","geography_longitude","geographypoint","geography_point","geography_within_distance","geometry","geometry_area","geometry_contains","geometry_distance","geometry_filter","geometry_intersects","geometry_length","geometrypoint","geometry_point","geometry_within_distance","geometry_x","geometry_y","global","_global_version_timestamp","grant","granted","grants","greatest","group","grouping","groups","group_concat","gzip","handle","handler","hard_cpu_limit_percentage","hash","has_temp_tables","having","hdfs","header","heartbeat_no_logging","hex","highlight","high_priority","hold","holding","host","hosts","hour","hour_microsecond","hour_minute","hour_second","identified","identity","if","ifnull","ignore","ifnull","ilike","immediate","immutable","implicit","import","in","including","increment","incremental","index","indexes","inet_aton","inet_ntoa","inet6_aton","inet6_ntoa","infile","inherit","inherits","_init_profile","init","initcap","initialize","initially","inject","inline","inner","inout","input","insensitive","insert","insert_method","instance","instead","instr","int","int1","int2","int3","int4","int8","integer","_internal_dynamic_typecast","interpreter_mode","intersect","interval","into","invoker","is","isnull","isolation","iterate","join","json","json_agg","json_array_contains_double","json_array_contains_json","json_array_contains_string","json_array_push_double","json_array_push_json","json_array_push_string","json_delete_key","json_extract_double","json_extract_json","json_extract_string","json_extract_bigint","json_get_type","json_length","json_set_double","json_set_json","json_set_string","json_splice_double","json_splice_json","json_splice_string","kafka","key","key_block_size","keys","kill","killall","label","lag","language","large","last","last_day","last_insert_id","last_value","lateral","latest","lc_collate","lc_ctype","lcase","lead","leading","leaf","leakproof","least","leave","leaves","left","length","level","license","like","limit","lines","listen","llvm","ln","load","loaddata_where","_load","local","localtime","localtimestamp","locate","location","lock","log","log10","log2","long","longblob","longtext","loop","lower","low_priority","lpad","_ls","ltrim","lz4","management","_management_thread","mapping","master","match","materialized","max","maxvalue","max_concurrency","max_errors","max_partitions_per_batch","max_queue_depth","max_retries_per_batch_partition","max_rows","mbc","md5","mpl","median","mediumblob","mediumint","mediumtext","member","memory","memory_percentage","_memsql_table_id_lookup","memsql","memsql_deserialize","memsql_imitating_kafka","memsql_serialize","merge","metadata","microsecond","middleint","min","min_rows","minus","minute","minute_microsecond","minute_second","minvalue","mod","mode","model","modifies","modify","month","monthname","months_between","move","mpl","names","named","namespace","national","natural","nchar","next","no","node","none","no_query_rewrite","noparam","not","nothing","notify","now","nowait","no_write_to_binlog","norely","nth_value","ntile","null","nullcols","nullif","nulls","numeric","nvarchar","object","octet_length","of","off","offline","offset","offsets","oids","on","online","only","open","operator","optimization","optimize","optimizer","optimizer_state","option","options","optionally","or","order","ordered_serialize","orphan","out","out_of_order","outer","outfile","over","overlaps","overlay","owned","owner","pack_keys","paired","parser","parquet","partial","partition","partition_id","partitioning","partitions","passing","password","password_lock_time","pause","_pause_replay","percent_rank","percentile_cont","percentile_disc","periodic","persisted","pi","pipeline","pipelines","pivot","placing","plan","plans","plancache","plugins","pool","pools","port","position","pow","power","preceding","precision","prepare","prepared","preserve","primary","prior","privileges","procedural","procedure","procedures","process","processlist","profile","profiles","program","promote","proxy","purge","quarter","queries","query","query_timeout","queue","quote","radians","rand","range","rank","read","_read","reads","real","reassign","rebalance","recheck","record","recursive","redundancy","redundant","ref","reference","references","refresh","regexp","reindex","relative","release","reload","rely","remote","remove","rename","repair","_repair_table","repeat","repeatable","_repl","_reprovisioning","replace","replica","replicate","replicating","replication","durability","require","resource","resource_pool","reset","restart","restore","restrict","result","_resurrect","retry","return","returning","returns","reverse","revoke","rg_pool","right","right_anti_join","right_semi_join","right_straight_join","rlike","role","roles","rollback","rollup","round","routine","row","row_count","row_format","row_number","rows","rowstore","rule","rpad","_rpc","rtrim","running","s3","safe","save","savepoint","scalar","schema","schemas","schema_binding","scroll","search","second","second_microsecond","sec_to_time","security","select","semi_join","_send_threads","sensitive","separator","sequence","sequences","serial","serializable","series","service_user","server","session","session_user","set","setof","security_lists_intersect","sha","sha1","sha2","shard","sharded","sharded_id","share","show","shutdown","sigmoid","sign","signal","similar","simple","site","signed","sin","skip","skipped_batches","sleep","_sleep","smallint","snapshot","_snapshot","_snapshots","soft_cpu_limit_percentage","some","soname","sparse","spatial","spatial_check_index","specific","split","sql","sql_big_result","sql_buffer_result","sql_cache","sql_calc_found_rows","sqlexception","sql_mode","sql_no_cache","sql_no_logging","sql_small_result","sqlstate","sqlwarning","sqrt","ssl","stable","standalone","start","starting","state","statement","statistics","stats","status","std","stddev","stddev_pop","stddev_samp","stdin","stdout","stop","storage","str_to_date","straight_join","strict","string","strip","subdate","substr","substring","substring_index","success","sum","super","symmetric","sync_snapshot","sync","_sync","_sync2","_sync_partitions","_sync_snapshot","synchronize","sysid","system","table","table_checksum","tables","tablespace","tags","tan","target_size","task","temp","template","temporary","temptable","_term_bump","terminate","terminated","test","text","then","time","timediff","time_bucket","time_format","timeout","timestamp","timestampadd","timestampdiff","timezone","time_to_sec","tinyblob","tinyint","tinytext","to","to_base64","to_char","to_date","to_days","to_json","to_number","to_seconds","to_timestamp","tracelogs","traditional","trailing","transform","transaction","_transactions_experimental","treat","trigger","triggers","trim","true","trunc","truncate","trusted","two_phase","_twopcid","type","types","ucase","unbounded","uncommitted","undefined","undo","unencrypted","unenforced","unhex","unhold","unicode","union","unique","_unittest","unix_timestamp","unknown","unlisten","_unload","unlock","unlogged","unpivot","unsigned","until","update","upgrade","upper","usage","use","user","users","using","utc_date","utc_time","utc_timestamp","_utf8","vacuum","valid","validate","validator","value","values","varbinary","varchar","varcharacter","variables","variadic","variance","var_pop","var_samp","varying","vector_sub","verbose","version","view","void","volatile","voting","wait","_wake","warnings","week","weekday","weekofyear","when","where","while","whitespace","window","with","without","within","_wm_heartbeat","work","workload","wrapper","write","xact_id","xor","year","year_month","yes","zerofill","zone"])}jsonExtractScalarSql(e){let t=e.args.jsonType,r=t===void 0?"JSON_EXTRACT_JSON":`JSON_EXTRACT_${t}`;return _chunk2Z3O2CFMcjs.Aq.call(void 0, r).call(this,e)}jsonbExtractScalarSql(e){let t=e.args.jsonType,r=t===void 0?"BSON_EXTRACT_BSON":`BSON_EXTRACT_${t}`;return _chunk2Z3O2CFMcjs.Aq.call(void 0, r).call(this,e)}jsonExtractArraySql(e){return this.unsupported("Arrays are not supported in SingleStore"),this.functionFallbackSql(e)}jsonValueSql(e){_chunk2Z3O2CFMcjs.kp.call(this,e,"onCondition");let t=new (0, _chunk2Z3O2CFMcjs.wj)({this:e.args.this,expression:e.args.path,jsonType:"STRING"}),r=e.args.returning;return r!==void 0&&(t=new (0, _chunk2Z3O2CFMcjs.Cg)({this:t,to:r})),this.sql(t)}allSql(e){return this.unsupported("ALL subquery predicate is not supported in SingleStore"),super.allSql(e)}jsonArrayContainsSql(e){let t=e.text("jsonType").toUpperCase();return t?this.func(`JSON_ARRAY_CONTAINS_${t}`,[e.args.expression,e.args.this]):this.func("JSON_ARRAY_CONTAINS_JSON",[e.args.expression,this.func("TO_JSON",[e.args.this])])}dataTypeSql(e){if(_chunk2Z3O2CFMcjs.kp.call(this,e,"kind","values"),e.args.nested&&!e.isType("struct")&&this.unsupported(`Argument 'nested' is not supported for representation of '${e.args.this}' in SingleStore`),e.isType("varbinary")&&!_optionalChain([e, 'access', _17 => _17.args, 'access', _18 => _18.expressions, 'optionalAccess', _19 => _19.length]))return"BLOB";if(e.isType(["decimal32","decimal64","decimal128","decimal256"])){let t=this.expressions(e,{flat:!0}),r;return e.isType("decimal32")?r="9":e.isType("decimal64")?r="18":e.isType("decimal128")?r="38":r="65",t?`DECIMAL(${r}, ${t[0]})`:`DECIMAL(${r})`}if(e.isType("vector")){let t=e.args.expressions||[];if(t.length===2){let r=this.sql(t[0]),S=this.dialect.constructor.INVERSE_VECTOR_TYPE_ALIASES;return r in S&&(r=S[r]),`VECTOR(${this.sql(t[1])}, ${r})`}}return super.dataTypeSql(e)}collateSql(e){return this.binary(e,":> LONGTEXT COLLATE")}currentDateSql(e){let t=e.args.this;if(t){if(t instanceof _chunk2Z3O2CFMcjs.$c&&_optionalChain([t, 'access', _20 => _20.args, 'access', _21 => _21.this, 'optionalAccess', _22 => _22.toLowerCase, 'call', _23 => _23()])==="utc")return this.func("UTC_DATE",[]);this.unsupported("CurrentDate with timezone is not supported in SingleStore")}return this.func("CURRENT_DATE",[])}currentTimeSql(e){let t=e.args.this;if(t){if(t instanceof _chunk2Z3O2CFMcjs.$c&&_optionalChain([t, 'access', _24 => _24.args, 'access', _25 => _25.this, 'optionalAccess', _26 => _26.toLowerCase, 'call', _27 => _27()])==="utc")return this.func("UTC_TIME",[]);if(t instanceof _chunk2Z3O2CFMcjs.$c&&t.isNumber)return this.func("CURRENT_TIME",[t]);this.unsupported("CurrentTime with timezone is not supported in SingleStore")}return this.func("CURRENT_TIME",[])}currentTimestampSql(e){let t=e.args.this;if(t){if(t instanceof _chunk2Z3O2CFMcjs.$c&&_optionalChain([t, 'access', _28 => _28.args, 'access', _29 => _29.this, 'optionalAccess', _30 => _30.toLowerCase, 'call', _31 => _31()])==="utc")return this.func("UTC_TIMESTAMP",[]);if(t instanceof _chunk2Z3O2CFMcjs.$c&&t.isNumber)return this.func("CURRENT_TIMESTAMP",[t]);this.unsupported("CurrentTimestamp with timezone is not supported in SingleStore")}return this.func("CURRENT_TIMESTAMP",[])}standardHashSql(e){let t=e.args.expression;if(t===void 0)return this.func("SHA",[e.args.this]);if(t instanceof _chunk2Z3O2CFMcjs.$c){let r=_optionalChain([t, 'access', _32 => _32.args, 'access', _33 => _33.this, 'optionalAccess', _34 => _34.toLowerCase, 'call', _35 => _35()]);return r==="sha"?this.func("SHA",[e.args.this]):r==="md5"?this.func("MD5",[e.args.this]):(this.unsupported(`${t.args.this} hash method is not supported in SingleStore`),this.func("SHA",[e.args.this]))}return this.unsupported("STANDARD_HASH function is not supported in SingleStore"),this.func("SHA",[e.args.this])}truncateTableSql(e){_chunk2Z3O2CFMcjs.kp.call(this,e,"isDatabase","exists","cluster","identity","option","partition");let t=[];for(let r of _nullishCoalesce(e.args.expressions, () => ([])))t.push(`TRUNCATE ${this.sql(r)}`);return t.join("; ")}renameColumnSql(e){_chunk2Z3O2CFMcjs.kp.call(this,e,"exists");let t=this.sql(e,"this"),r=this.sql(e,"to");return`CHANGE ${t} ${r}`}alterColumnSql(e){_chunk2Z3O2CFMcjs.kp.call(this,e,"drop","comment","allowNull","visible","using");let t=super.alterColumnSql(e),r=this.sql(e,"collate"),S=r?` COLLATE ${r}`:"";return`${t}${S}`}computedColumnConstraintSql(e){let t=this.sql(e,"this"),r=e.args.notNull?" NOT NULL":"",S=this.sql(e,"dataType")||"AUTO";return`AS ${t} PERSISTED ${S}${r}`}};g=_chunk2Z3O2CFMcjs.a.call(void 0, je),_chunk2Z3O2CFMcjs.d.call(void 0, g,10,"AFTER_HAVING_MODIFIER_TRANSFORMS",Je,l),_chunk2Z3O2CFMcjs.d.call(void 0, g,10,"NULL_ORDERING_SUPPORTED",Fe,l),_chunk2Z3O2CFMcjs.d.call(void 0, g,10,"STRUCT_DELIMITER",ke,l),_chunk2Z3O2CFMcjs.d.call(void 0, g,10,"SUPPORTED_JSON_PATH_PARTS",ve,l),_chunk2Z3O2CFMcjs.d.call(void 0, g,10,"ORIGINAL_TRANSFORMS",qe,l),_chunk2Z3O2CFMcjs.d.call(void 0, g,10,"UNSUPPORTED_TYPES",we,l),_chunk2Z3O2CFMcjs.d.call(void 0, g,10,"TYPE_MAPPING",be,l),_chunk2Z3O2CFMcjs.d.call(void 0, g,10,"RESERVED_KEYWORDS",Ge,l),_chunk2Z3O2CFMcjs.b.call(void 0, g,l),_chunk2Z3O2CFMcjs.c.call(void 0, g,3,l),l.SUPPORTS_DECODE_CASE=!1,l.TRY_SUPPORTED=!1,l.SUPPORTS_UESCAPE=!1,l.MATCH_AGAINST_TABLE_PREFIX="TABLE ",l.UNICODE_SUBSTITUTE=(e,t)=>String.fromCharCode(parseInt(t,16));var Be,He,Xe,Ye,L,T=class T extends(Ye=_chunkR7C3ZHVKcjs.j,Xe=[_chunk2Z3O2CFMcjs.r],He=[_chunk2Z3O2CFMcjs.r],Be=[_chunk2Z3O2CFMcjs.r],Ye){static get TIME_MAPPING(){return{D:"%u",DD:"%d",DY:"%a",HH:"%I",HH12:"%I",HH24:"%H",MI:"%M",MM:"%m",MON:"%b",MONTH:"%B",SS:"%S",RR:"%y",YY:"%y",YYYY:"%Y",FF6:"%f"}}static get VECTOR_TYPE_ALIASES(){return{I8:"TINYINT",I16:"SMALLINT",I32:"INT",I64:"BIGINT",F32:"FLOAT",F64:"DOUBLE"}}static get INVERSE_VECTOR_TYPE_ALIASES(){return Object.fromEntries(Object.entries(T.VECTOR_TYPE_ALIASES).map(([e,t])=>[t,e]))}};L=_chunk2Z3O2CFMcjs.a.call(void 0, Ye),_chunk2Z3O2CFMcjs.d.call(void 0, L,10,"TIME_MAPPING",Xe,T),_chunk2Z3O2CFMcjs.d.call(void 0, L,10,"VECTOR_TYPE_ALIASES",He,T),_chunk2Z3O2CFMcjs.d.call(void 0, L,10,"INVERSE_VECTOR_TYPE_ALIASES",Be,T),_chunk2Z3O2CFMcjs.b.call(void 0, L,T),_chunk2Z3O2CFMcjs.c.call(void 0, L,3,T),T.DIALECT_NAME="singlestore",T.SUPPORTS_ORDER_BY_ALL=!0,T.Tokenizer=x,T.Parser=u,T.Generator=l;var I=T;_chunk2Z3O2CFMcjs.op.register("singlestore",I);exports.SingleStore = I;
|
|
2
|
+
//# sourceMappingURL=singlestore.cjs.map
|