@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,463 @@
|
|
|
1
|
+
import { d as Dialects, a0 as NormalizationStrategy, l as TokenType, E as Expression, b8 as CreateExpr, a6 as CommandExpr, G as Generator, $ as DataTypeExprKind, b5 as DataTypeExpr, at as CastExpr, ao as AtTimeZoneExpr, bd as UnixToTimeExpr } from '../tokens-VcMD09XM.js';
|
|
2
|
+
import { TSQL } from './tsql.js';
|
|
3
|
+
|
|
4
|
+
declare class FabricTokenizer extends TSQL.Tokenizer {
|
|
5
|
+
static get ORIGINAL_KEYWORDS(): Record<string, TokenType>;
|
|
6
|
+
}
|
|
7
|
+
declare class FabricParser extends TSQL.Parser {
|
|
8
|
+
static get ID_VAR_TOKENS(): Set<TokenType>;
|
|
9
|
+
static get NO_PAREN_FUNCTIONS(): {
|
|
10
|
+
lParen?: typeof Expression | undefined;
|
|
11
|
+
rParen?: typeof Expression | undefined;
|
|
12
|
+
lBracket?: typeof Expression | undefined;
|
|
13
|
+
rBracket?: typeof Expression | undefined;
|
|
14
|
+
lBrace?: typeof Expression | undefined;
|
|
15
|
+
rBrace?: typeof Expression | undefined;
|
|
16
|
+
comma?: typeof Expression | undefined;
|
|
17
|
+
dot?: typeof Expression | undefined;
|
|
18
|
+
dash?: typeof Expression | undefined;
|
|
19
|
+
plus?: typeof Expression | undefined;
|
|
20
|
+
colon?: typeof Expression | undefined;
|
|
21
|
+
dotcolon?: typeof Expression | undefined;
|
|
22
|
+
dcolon?: typeof Expression | undefined;
|
|
23
|
+
dcolondollar?: typeof Expression | undefined;
|
|
24
|
+
dcolonpercent?: typeof Expression | undefined;
|
|
25
|
+
dcolonqmark?: typeof Expression | undefined;
|
|
26
|
+
dqmark?: typeof Expression | undefined;
|
|
27
|
+
semicolon?: typeof Expression | undefined;
|
|
28
|
+
star?: typeof Expression | undefined;
|
|
29
|
+
backslash?: typeof Expression | undefined;
|
|
30
|
+
slash?: typeof Expression | undefined;
|
|
31
|
+
lt?: typeof Expression | undefined;
|
|
32
|
+
lte?: typeof Expression | undefined;
|
|
33
|
+
gt?: typeof Expression | undefined;
|
|
34
|
+
gte?: typeof Expression | undefined;
|
|
35
|
+
not?: typeof Expression | undefined;
|
|
36
|
+
eq?: typeof Expression | undefined;
|
|
37
|
+
neq?: typeof Expression | undefined;
|
|
38
|
+
nullsafeEq?: typeof Expression | undefined;
|
|
39
|
+
colonEq?: typeof Expression | undefined;
|
|
40
|
+
colonGt?: typeof Expression | undefined;
|
|
41
|
+
ncolonGt?: typeof Expression | undefined;
|
|
42
|
+
and?: typeof Expression | undefined;
|
|
43
|
+
or?: typeof Expression | undefined;
|
|
44
|
+
amp?: typeof Expression | undefined;
|
|
45
|
+
dpipe?: typeof Expression | undefined;
|
|
46
|
+
pipeGt?: typeof Expression | undefined;
|
|
47
|
+
pipe?: typeof Expression | undefined;
|
|
48
|
+
pipeSlash?: typeof Expression | undefined;
|
|
49
|
+
dpipeSlash?: typeof Expression | undefined;
|
|
50
|
+
caret?: typeof Expression | undefined;
|
|
51
|
+
caretAt?: typeof Expression | undefined;
|
|
52
|
+
tilde?: typeof Expression | undefined;
|
|
53
|
+
arrow?: typeof Expression | undefined;
|
|
54
|
+
darrow?: typeof Expression | undefined;
|
|
55
|
+
farrow?: typeof Expression | undefined;
|
|
56
|
+
hash?: typeof Expression | undefined;
|
|
57
|
+
hashArrow?: typeof Expression | undefined;
|
|
58
|
+
dhashArrow?: typeof Expression | undefined;
|
|
59
|
+
lrArrow?: typeof Expression | undefined;
|
|
60
|
+
dat?: typeof Expression | undefined;
|
|
61
|
+
ltAt?: typeof Expression | undefined;
|
|
62
|
+
atGt?: typeof Expression | undefined;
|
|
63
|
+
dollar?: typeof Expression | undefined;
|
|
64
|
+
parameter?: typeof Expression | undefined;
|
|
65
|
+
session?: typeof Expression | undefined;
|
|
66
|
+
sessionParameter?: typeof Expression | undefined;
|
|
67
|
+
sessionUser?: typeof Expression | undefined;
|
|
68
|
+
damp?: typeof Expression | undefined;
|
|
69
|
+
ampLt?: typeof Expression | undefined;
|
|
70
|
+
ampGt?: typeof Expression | undefined;
|
|
71
|
+
adjacent?: typeof Expression | undefined;
|
|
72
|
+
xor?: typeof Expression | undefined;
|
|
73
|
+
dstar?: typeof Expression | undefined;
|
|
74
|
+
qmarkAmp?: typeof Expression | undefined;
|
|
75
|
+
qmarkPipe?: typeof Expression | undefined;
|
|
76
|
+
hashDash?: typeof Expression | undefined;
|
|
77
|
+
exclamation?: typeof Expression | undefined;
|
|
78
|
+
uriStart?: typeof Expression | undefined;
|
|
79
|
+
blockStart?: typeof Expression | undefined;
|
|
80
|
+
blockEnd?: typeof Expression | undefined;
|
|
81
|
+
space?: typeof Expression | undefined;
|
|
82
|
+
break?: typeof Expression | undefined;
|
|
83
|
+
string?: typeof Expression | undefined;
|
|
84
|
+
number?: typeof Expression | undefined;
|
|
85
|
+
identifier?: typeof Expression | undefined;
|
|
86
|
+
database?: typeof Expression | undefined;
|
|
87
|
+
column?: typeof Expression | undefined;
|
|
88
|
+
columnDef?: typeof Expression | undefined;
|
|
89
|
+
schema?: typeof Expression | undefined;
|
|
90
|
+
table?: typeof Expression | undefined;
|
|
91
|
+
warehouse?: typeof Expression | undefined;
|
|
92
|
+
stage?: typeof Expression | undefined;
|
|
93
|
+
streamlit?: typeof Expression | undefined;
|
|
94
|
+
var?: typeof Expression | undefined;
|
|
95
|
+
bitString?: typeof Expression | undefined;
|
|
96
|
+
hexString?: typeof Expression | undefined;
|
|
97
|
+
byteString?: typeof Expression | undefined;
|
|
98
|
+
nationalString?: typeof Expression | undefined;
|
|
99
|
+
rawString?: typeof Expression | undefined;
|
|
100
|
+
heredocString?: typeof Expression | undefined;
|
|
101
|
+
unicodeString?: typeof Expression | undefined;
|
|
102
|
+
bit?: typeof Expression | undefined;
|
|
103
|
+
boolean?: typeof Expression | undefined;
|
|
104
|
+
tinyint?: typeof Expression | undefined;
|
|
105
|
+
utinyint?: typeof Expression | undefined;
|
|
106
|
+
smallint?: typeof Expression | undefined;
|
|
107
|
+
usmallint?: typeof Expression | undefined;
|
|
108
|
+
mediumint?: typeof Expression | undefined;
|
|
109
|
+
umediumint?: typeof Expression | undefined;
|
|
110
|
+
int?: typeof Expression | undefined;
|
|
111
|
+
uint?: typeof Expression | undefined;
|
|
112
|
+
bigint?: typeof Expression | undefined;
|
|
113
|
+
ubigint?: typeof Expression | undefined;
|
|
114
|
+
bignum?: typeof Expression | undefined;
|
|
115
|
+
int128?: typeof Expression | undefined;
|
|
116
|
+
uint128?: typeof Expression | undefined;
|
|
117
|
+
int256?: typeof Expression | undefined;
|
|
118
|
+
uint256?: typeof Expression | undefined;
|
|
119
|
+
float?: typeof Expression | undefined;
|
|
120
|
+
double?: typeof Expression | undefined;
|
|
121
|
+
udouble?: typeof Expression | undefined;
|
|
122
|
+
decimal?: typeof Expression | undefined;
|
|
123
|
+
decimal32?: typeof Expression | undefined;
|
|
124
|
+
decimal64?: typeof Expression | undefined;
|
|
125
|
+
decimal128?: typeof Expression | undefined;
|
|
126
|
+
decimal256?: typeof Expression | undefined;
|
|
127
|
+
decfloat?: typeof Expression | undefined;
|
|
128
|
+
udecimal?: typeof Expression | undefined;
|
|
129
|
+
bigdecimal?: typeof Expression | undefined;
|
|
130
|
+
char?: typeof Expression | undefined;
|
|
131
|
+
nchar?: typeof Expression | undefined;
|
|
132
|
+
varchar?: typeof Expression | undefined;
|
|
133
|
+
nvarchar?: typeof Expression | undefined;
|
|
134
|
+
bpchar?: typeof Expression | undefined;
|
|
135
|
+
text?: typeof Expression | undefined;
|
|
136
|
+
mediumtext?: typeof Expression | undefined;
|
|
137
|
+
longtext?: typeof Expression | undefined;
|
|
138
|
+
blob?: typeof Expression | undefined;
|
|
139
|
+
mediumblob?: typeof Expression | undefined;
|
|
140
|
+
longblob?: typeof Expression | undefined;
|
|
141
|
+
tinyblob?: typeof Expression | undefined;
|
|
142
|
+
tinytext?: typeof Expression | undefined;
|
|
143
|
+
name?: typeof Expression | undefined;
|
|
144
|
+
binary?: typeof Expression | undefined;
|
|
145
|
+
varbinary?: typeof Expression | undefined;
|
|
146
|
+
json?: typeof Expression | undefined;
|
|
147
|
+
jsonb?: typeof Expression | undefined;
|
|
148
|
+
time?: typeof Expression | undefined;
|
|
149
|
+
timetz?: typeof Expression | undefined;
|
|
150
|
+
timeNs?: typeof Expression | undefined;
|
|
151
|
+
timestamp?: typeof Expression | undefined;
|
|
152
|
+
timestamptz?: typeof Expression | undefined;
|
|
153
|
+
timestampltz?: typeof Expression | undefined;
|
|
154
|
+
timestampntz?: typeof Expression | undefined;
|
|
155
|
+
timestampS?: typeof Expression | undefined;
|
|
156
|
+
timestampMs?: typeof Expression | undefined;
|
|
157
|
+
timestampNs?: typeof Expression | undefined;
|
|
158
|
+
datetime?: typeof Expression | undefined;
|
|
159
|
+
datetime2?: typeof Expression | undefined;
|
|
160
|
+
datetime64?: typeof Expression | undefined;
|
|
161
|
+
smalldatetime?: typeof Expression | undefined;
|
|
162
|
+
date?: typeof Expression | undefined;
|
|
163
|
+
date32?: typeof Expression | undefined;
|
|
164
|
+
int4range?: typeof Expression | undefined;
|
|
165
|
+
int4multirange?: typeof Expression | undefined;
|
|
166
|
+
int8range?: typeof Expression | undefined;
|
|
167
|
+
int8multirange?: typeof Expression | undefined;
|
|
168
|
+
numrange?: typeof Expression | undefined;
|
|
169
|
+
nummultirange?: typeof Expression | undefined;
|
|
170
|
+
tsrange?: typeof Expression | undefined;
|
|
171
|
+
tsmultirange?: typeof Expression | undefined;
|
|
172
|
+
tstzrange?: typeof Expression | undefined;
|
|
173
|
+
tstzmultirange?: typeof Expression | undefined;
|
|
174
|
+
daterange?: typeof Expression | undefined;
|
|
175
|
+
datemultirange?: typeof Expression | undefined;
|
|
176
|
+
uuid?: typeof Expression | undefined;
|
|
177
|
+
geography?: typeof Expression | undefined;
|
|
178
|
+
geographypoint?: typeof Expression | undefined;
|
|
179
|
+
nullable?: typeof Expression | undefined;
|
|
180
|
+
geometry?: typeof Expression | undefined;
|
|
181
|
+
point?: typeof Expression | undefined;
|
|
182
|
+
ring?: typeof Expression | undefined;
|
|
183
|
+
linestring?: typeof Expression | undefined;
|
|
184
|
+
localtime?: typeof Expression | undefined;
|
|
185
|
+
localtimestamp?: typeof Expression | undefined;
|
|
186
|
+
systimestamp?: typeof Expression | undefined;
|
|
187
|
+
multilinestring?: typeof Expression | undefined;
|
|
188
|
+
polygon?: typeof Expression | undefined;
|
|
189
|
+
multipolygon?: typeof Expression | undefined;
|
|
190
|
+
hllsketch?: typeof Expression | undefined;
|
|
191
|
+
hstore?: typeof Expression | undefined;
|
|
192
|
+
super?: typeof Expression | undefined;
|
|
193
|
+
serial?: typeof Expression | undefined;
|
|
194
|
+
smallserial?: typeof Expression | undefined;
|
|
195
|
+
bigserial?: typeof Expression | undefined;
|
|
196
|
+
xml?: typeof Expression | undefined;
|
|
197
|
+
year?: typeof Expression | undefined;
|
|
198
|
+
userdefined?: typeof Expression | undefined;
|
|
199
|
+
money?: typeof Expression | undefined;
|
|
200
|
+
smallmoney?: typeof Expression | undefined;
|
|
201
|
+
rowversion?: typeof Expression | undefined;
|
|
202
|
+
image?: typeof Expression | undefined;
|
|
203
|
+
variant?: typeof Expression | undefined;
|
|
204
|
+
object?: typeof Expression | undefined;
|
|
205
|
+
inet?: typeof Expression | undefined;
|
|
206
|
+
ipaddress?: typeof Expression | undefined;
|
|
207
|
+
ipprefix?: typeof Expression | undefined;
|
|
208
|
+
ipv4?: typeof Expression | undefined;
|
|
209
|
+
ipv6?: typeof Expression | undefined;
|
|
210
|
+
enum?: typeof Expression | undefined;
|
|
211
|
+
enum8?: typeof Expression | undefined;
|
|
212
|
+
enum16?: typeof Expression | undefined;
|
|
213
|
+
fixedstring?: typeof Expression | undefined;
|
|
214
|
+
lowcardinality?: typeof Expression | undefined;
|
|
215
|
+
nested?: typeof Expression | undefined;
|
|
216
|
+
aggregatefunction?: typeof Expression | undefined;
|
|
217
|
+
simpleaggregatefunction?: typeof Expression | undefined;
|
|
218
|
+
tdigest?: typeof Expression | undefined;
|
|
219
|
+
unknown?: typeof Expression | undefined;
|
|
220
|
+
vector?: typeof Expression | undefined;
|
|
221
|
+
dynamic?: typeof Expression | undefined;
|
|
222
|
+
void?: typeof Expression | undefined;
|
|
223
|
+
alias?: typeof Expression | undefined;
|
|
224
|
+
alter?: typeof Expression | undefined;
|
|
225
|
+
all?: typeof Expression | undefined;
|
|
226
|
+
anti?: typeof Expression | undefined;
|
|
227
|
+
any?: typeof Expression | undefined;
|
|
228
|
+
apply?: typeof Expression | undefined;
|
|
229
|
+
array?: typeof Expression | undefined;
|
|
230
|
+
asc?: typeof Expression | undefined;
|
|
231
|
+
asof?: typeof Expression | undefined;
|
|
232
|
+
attach?: typeof Expression | undefined;
|
|
233
|
+
autoIncrement?: typeof Expression | undefined;
|
|
234
|
+
begin?: typeof Expression | undefined;
|
|
235
|
+
between?: typeof Expression | undefined;
|
|
236
|
+
bulkCollectInto?: typeof Expression | undefined;
|
|
237
|
+
cache?: typeof Expression | undefined;
|
|
238
|
+
case?: typeof Expression | undefined;
|
|
239
|
+
characterSet?: typeof Expression | undefined;
|
|
240
|
+
clusterBy?: typeof Expression | undefined;
|
|
241
|
+
collate?: typeof Expression | undefined;
|
|
242
|
+
command?: typeof Expression | undefined;
|
|
243
|
+
comment?: typeof Expression | undefined;
|
|
244
|
+
commit?: typeof Expression | undefined;
|
|
245
|
+
connectBy?: typeof Expression | undefined;
|
|
246
|
+
constraint?: typeof Expression | undefined;
|
|
247
|
+
copy?: typeof Expression | undefined;
|
|
248
|
+
create?: typeof Expression | undefined;
|
|
249
|
+
cross?: typeof Expression | undefined;
|
|
250
|
+
cube?: typeof Expression | undefined;
|
|
251
|
+
currentDate?: typeof Expression | undefined;
|
|
252
|
+
currentDatetime?: typeof Expression | undefined;
|
|
253
|
+
currentSchema?: typeof Expression | undefined;
|
|
254
|
+
currentTime?: typeof Expression | undefined;
|
|
255
|
+
currentTimestamp?: typeof Expression | undefined;
|
|
256
|
+
currentUser?: typeof Expression | undefined;
|
|
257
|
+
currentRole?: typeof Expression | undefined;
|
|
258
|
+
currentCatalog?: typeof Expression | undefined;
|
|
259
|
+
declare?: typeof Expression | undefined;
|
|
260
|
+
default?: typeof Expression | undefined;
|
|
261
|
+
delete?: typeof Expression | undefined;
|
|
262
|
+
desc?: typeof Expression | undefined;
|
|
263
|
+
describe?: typeof Expression | undefined;
|
|
264
|
+
detach?: typeof Expression | undefined;
|
|
265
|
+
dictionary?: typeof Expression | undefined;
|
|
266
|
+
distinct?: typeof Expression | undefined;
|
|
267
|
+
distributeBy?: typeof Expression | undefined;
|
|
268
|
+
div?: typeof Expression | undefined;
|
|
269
|
+
drop?: typeof Expression | undefined;
|
|
270
|
+
else?: typeof Expression | undefined;
|
|
271
|
+
end?: typeof Expression | undefined;
|
|
272
|
+
escape?: typeof Expression | undefined;
|
|
273
|
+
except?: typeof Expression | undefined;
|
|
274
|
+
execute?: typeof Expression | undefined;
|
|
275
|
+
exists?: typeof Expression | undefined;
|
|
276
|
+
false?: typeof Expression | undefined;
|
|
277
|
+
fetch?: typeof Expression | undefined;
|
|
278
|
+
file?: typeof Expression | undefined;
|
|
279
|
+
fileFormat?: typeof Expression | undefined;
|
|
280
|
+
filter?: typeof Expression | undefined;
|
|
281
|
+
final?: typeof Expression | undefined;
|
|
282
|
+
first?: typeof Expression | undefined;
|
|
283
|
+
for?: typeof Expression | undefined;
|
|
284
|
+
force?: typeof Expression | undefined;
|
|
285
|
+
foreignKey?: typeof Expression | undefined;
|
|
286
|
+
format?: typeof Expression | undefined;
|
|
287
|
+
from?: typeof Expression | undefined;
|
|
288
|
+
full?: typeof Expression | undefined;
|
|
289
|
+
function?: typeof Expression | undefined;
|
|
290
|
+
get?: typeof Expression | undefined;
|
|
291
|
+
glob?: typeof Expression | undefined;
|
|
292
|
+
global?: typeof Expression | undefined;
|
|
293
|
+
grant?: typeof Expression | undefined;
|
|
294
|
+
groupBy?: typeof Expression | undefined;
|
|
295
|
+
groupingSets?: typeof Expression | undefined;
|
|
296
|
+
having?: typeof Expression | undefined;
|
|
297
|
+
hint?: typeof Expression | undefined;
|
|
298
|
+
ignore?: typeof Expression | undefined;
|
|
299
|
+
ilike?: typeof Expression | undefined;
|
|
300
|
+
in?: typeof Expression | undefined;
|
|
301
|
+
index?: typeof Expression | undefined;
|
|
302
|
+
indexedBy?: typeof Expression | undefined;
|
|
303
|
+
inner?: typeof Expression | undefined;
|
|
304
|
+
insert?: typeof Expression | undefined;
|
|
305
|
+
install?: typeof Expression | undefined;
|
|
306
|
+
intersect?: typeof Expression | undefined;
|
|
307
|
+
interval?: typeof Expression | undefined;
|
|
308
|
+
into?: typeof Expression | undefined;
|
|
309
|
+
introducer?: typeof Expression | undefined;
|
|
310
|
+
irlike?: typeof Expression | undefined;
|
|
311
|
+
is?: typeof Expression | undefined;
|
|
312
|
+
isnull?: typeof Expression | undefined;
|
|
313
|
+
join?: typeof Expression | undefined;
|
|
314
|
+
joinMarker?: typeof Expression | undefined;
|
|
315
|
+
keep?: typeof Expression | undefined;
|
|
316
|
+
key?: typeof Expression | undefined;
|
|
317
|
+
kill?: typeof Expression | undefined;
|
|
318
|
+
language?: typeof Expression | undefined;
|
|
319
|
+
lateral?: typeof Expression | undefined;
|
|
320
|
+
left?: typeof Expression | undefined;
|
|
321
|
+
like?: typeof Expression | undefined;
|
|
322
|
+
limit?: typeof Expression | undefined;
|
|
323
|
+
list?: typeof Expression | undefined;
|
|
324
|
+
load?: typeof Expression | undefined;
|
|
325
|
+
lock?: typeof Expression | undefined;
|
|
326
|
+
map?: typeof Expression | undefined;
|
|
327
|
+
match?: typeof Expression | undefined;
|
|
328
|
+
matchCondition?: typeof Expression | undefined;
|
|
329
|
+
matchRecognize?: typeof Expression | undefined;
|
|
330
|
+
memberOf?: typeof Expression | undefined;
|
|
331
|
+
merge?: typeof Expression | undefined;
|
|
332
|
+
mod?: typeof Expression | undefined;
|
|
333
|
+
model?: typeof Expression | undefined;
|
|
334
|
+
natural?: typeof Expression | undefined;
|
|
335
|
+
next?: typeof Expression | undefined;
|
|
336
|
+
nothing?: typeof Expression | undefined;
|
|
337
|
+
notnull?: typeof Expression | undefined;
|
|
338
|
+
null?: typeof Expression | undefined;
|
|
339
|
+
objectIdentifier?: typeof Expression | undefined;
|
|
340
|
+
offset?: typeof Expression | undefined;
|
|
341
|
+
on?: typeof Expression | undefined;
|
|
342
|
+
only?: typeof Expression | undefined;
|
|
343
|
+
operator?: typeof Expression | undefined;
|
|
344
|
+
orderBy?: typeof Expression | undefined;
|
|
345
|
+
orderSiblingsBy?: typeof Expression | undefined;
|
|
346
|
+
ordered?: typeof Expression | undefined;
|
|
347
|
+
ordinality?: typeof Expression | undefined;
|
|
348
|
+
out?: typeof Expression | undefined;
|
|
349
|
+
inout?: typeof Expression | undefined;
|
|
350
|
+
outer?: typeof Expression | undefined;
|
|
351
|
+
over?: typeof Expression | undefined;
|
|
352
|
+
overlaps?: typeof Expression | undefined;
|
|
353
|
+
overwrite?: typeof Expression | undefined;
|
|
354
|
+
partition?: typeof Expression | undefined;
|
|
355
|
+
partitionBy?: typeof Expression | undefined;
|
|
356
|
+
percent?: typeof Expression | undefined;
|
|
357
|
+
pivot?: typeof Expression | undefined;
|
|
358
|
+
placeholder?: typeof Expression | undefined;
|
|
359
|
+
positional?: typeof Expression | undefined;
|
|
360
|
+
pragma?: typeof Expression | undefined;
|
|
361
|
+
prewhere?: typeof Expression | undefined;
|
|
362
|
+
primaryKey?: typeof Expression | undefined;
|
|
363
|
+
procedure?: typeof Expression | undefined;
|
|
364
|
+
properties?: typeof Expression | undefined;
|
|
365
|
+
pseudoType?: typeof Expression | undefined;
|
|
366
|
+
put?: typeof Expression | undefined;
|
|
367
|
+
qualify?: typeof Expression | undefined;
|
|
368
|
+
quote?: typeof Expression | undefined;
|
|
369
|
+
qdcolon?: typeof Expression | undefined;
|
|
370
|
+
range?: typeof Expression | undefined;
|
|
371
|
+
recursive?: typeof Expression | undefined;
|
|
372
|
+
refresh?: typeof Expression | undefined;
|
|
373
|
+
rename?: typeof Expression | undefined;
|
|
374
|
+
replace?: typeof Expression | undefined;
|
|
375
|
+
returning?: typeof Expression | undefined;
|
|
376
|
+
revoke?: typeof Expression | undefined;
|
|
377
|
+
references?: typeof Expression | undefined;
|
|
378
|
+
right?: typeof Expression | undefined;
|
|
379
|
+
rlike?: typeof Expression | undefined;
|
|
380
|
+
rollback?: typeof Expression | undefined;
|
|
381
|
+
rollup?: typeof Expression | undefined;
|
|
382
|
+
row?: typeof Expression | undefined;
|
|
383
|
+
rows?: typeof Expression | undefined;
|
|
384
|
+
select?: typeof Expression | undefined;
|
|
385
|
+
semi?: typeof Expression | undefined;
|
|
386
|
+
separator?: typeof Expression | undefined;
|
|
387
|
+
sequence?: typeof Expression | undefined;
|
|
388
|
+
serdeProperties?: typeof Expression | undefined;
|
|
389
|
+
set?: typeof Expression | undefined;
|
|
390
|
+
settings?: typeof Expression | undefined;
|
|
391
|
+
show?: typeof Expression | undefined;
|
|
392
|
+
similarTo?: typeof Expression | undefined;
|
|
393
|
+
some?: typeof Expression | undefined;
|
|
394
|
+
sortBy?: typeof Expression | undefined;
|
|
395
|
+
soundsLike?: typeof Expression | undefined;
|
|
396
|
+
startWith?: typeof Expression | undefined;
|
|
397
|
+
storageIntegration?: typeof Expression | undefined;
|
|
398
|
+
straightJoin?: typeof Expression | undefined;
|
|
399
|
+
struct?: typeof Expression | undefined;
|
|
400
|
+
summarize?: typeof Expression | undefined;
|
|
401
|
+
tableSample?: typeof Expression | undefined;
|
|
402
|
+
tag?: typeof Expression | undefined;
|
|
403
|
+
temporary?: typeof Expression | undefined;
|
|
404
|
+
top?: typeof Expression | undefined;
|
|
405
|
+
then?: typeof Expression | undefined;
|
|
406
|
+
true?: typeof Expression | undefined;
|
|
407
|
+
truncate?: typeof Expression | undefined;
|
|
408
|
+
uncache?: typeof Expression | undefined;
|
|
409
|
+
union?: typeof Expression | undefined;
|
|
410
|
+
unnest?: typeof Expression | undefined;
|
|
411
|
+
unpivot?: typeof Expression | undefined;
|
|
412
|
+
update?: typeof Expression | undefined;
|
|
413
|
+
use?: typeof Expression | undefined;
|
|
414
|
+
using?: typeof Expression | undefined;
|
|
415
|
+
values?: typeof Expression | undefined;
|
|
416
|
+
variadic?: typeof Expression | undefined;
|
|
417
|
+
view?: typeof Expression | undefined;
|
|
418
|
+
semanticView?: typeof Expression | undefined;
|
|
419
|
+
volatile?: typeof Expression | undefined;
|
|
420
|
+
when?: typeof Expression | undefined;
|
|
421
|
+
where?: typeof Expression | undefined;
|
|
422
|
+
window?: typeof Expression | undefined;
|
|
423
|
+
with?: typeof Expression | undefined;
|
|
424
|
+
unique?: typeof Expression | undefined;
|
|
425
|
+
utcDate?: typeof Expression | undefined;
|
|
426
|
+
utcTime?: typeof Expression | undefined;
|
|
427
|
+
utcTimestamp?: typeof Expression | undefined;
|
|
428
|
+
versionSnapshot?: typeof Expression | undefined;
|
|
429
|
+
timestampSnapshot?: typeof Expression | undefined;
|
|
430
|
+
option?: typeof Expression | undefined;
|
|
431
|
+
sink?: typeof Expression | undefined;
|
|
432
|
+
source?: typeof Expression | undefined;
|
|
433
|
+
analyze?: typeof Expression | undefined;
|
|
434
|
+
namespace?: typeof Expression | undefined;
|
|
435
|
+
export?: typeof Expression | undefined;
|
|
436
|
+
hiveTokenStream?: typeof Expression | undefined;
|
|
437
|
+
};
|
|
438
|
+
parseCreate(): CreateExpr | CommandExpr;
|
|
439
|
+
static get TABLE_ALIAS_TOKENS(): Set<TokenType>;
|
|
440
|
+
}
|
|
441
|
+
declare class FabricGenerator extends TSQL.Generator {
|
|
442
|
+
static get AFTER_HAVING_MODIFIER_TRANSFORMS(): Map<string, (this: Generator, e: Expression) => string>;
|
|
443
|
+
static SUPPORTS_DECODE_CASE: boolean;
|
|
444
|
+
static TRY_SUPPORTED: boolean;
|
|
445
|
+
static SUPPORTS_UESCAPE: boolean;
|
|
446
|
+
static get TYPE_MAPPING(): Map<DataTypeExprKind | string, string>;
|
|
447
|
+
static get ORIGINAL_TRANSFORMS(): Map<typeof Expression, (this: Generator, e: Expression) => string>;
|
|
448
|
+
dataTypeSql(expression: DataTypeExpr): string;
|
|
449
|
+
castSql(expression: CastExpr, options?: {
|
|
450
|
+
safePrefix?: string;
|
|
451
|
+
}): string;
|
|
452
|
+
atTimeZoneSql(expression: AtTimeZoneExpr): string;
|
|
453
|
+
unixToTimeSql(expression: UnixToTimeExpr): string;
|
|
454
|
+
}
|
|
455
|
+
declare class Fabric extends TSQL {
|
|
456
|
+
static DIALECT_NAME: Dialects;
|
|
457
|
+
static get NORMALIZATION_STRATEGY(): NormalizationStrategy;
|
|
458
|
+
static Tokenizer: typeof FabricTokenizer;
|
|
459
|
+
static Parser: typeof FabricParser;
|
|
460
|
+
static Generator: typeof FabricGenerator;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
export { Fabric, FabricGenerator, FabricParser, FabricTokenizer };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d as i}from"../chunk-NRJHX2GZ.js";import{$b as S,$c as g,Ao as u,Cg as H,Eo as G,Ja as D,Po as w,Vb as C,Wd as Z,Za as x,Zl as q,a as m,ac as I,b as N,c as R,d as o,kc as y,mo as h,no as K,op as B,r as p,uh as Y,za as V}from"../chunk-KCNOE4DZ.js";function _(n,T=6){let t=n.find(S),e=T;if(t&&t.args.this instanceof g&&t.args.this.isNumber){let s=Number(t.args.this.toString());e=Math.min(s,T)}return new I({this:n.args.this,expressions:[new S({this:u(e)})]})}function st(n){if(n instanceof D&&n.args.kind==="table"&&n.args.this instanceof C){for(let T of n.args.this.args.expressions||[])if(T instanceof x){let t=T.args.kind;t instanceof I&&["varchar","char"].includes(t.args.this)&&(!t.args.expressions||t.args.expressions.length===0)&&t.setArgKey("expressions",[G("MAX")])}}return n}var k,$,P,f=class extends($=i.Tokenizer,k=[p],$){static get ORIGINAL_KEYWORDS(){return{...i.Tokenizer.ORIGINAL_KEYWORDS,TIMESTAMP:"timestamp",UTINYINT:"utinyint"}}};P=m($),o(P,10,"ORIGINAL_KEYWORDS",k,f),N(P,f),R(P,3,f);var W,J,Q,X,M,A=class extends(X=i.Parser,Q=[p],J=[p],W=[p],X){static get ID_VAR_TOKENS(){return new Set([...V.ID_VAR_TOKENS,"sessionUser","currentCatalog","straightJoin"])}static get NO_PAREN_FUNCTIONS(){let t={...i.Parser.NO_PAREN_FUNCTIONS};return delete t.localtime,delete t.localtimestamp,t}parseCreate(){let t=super.parseCreate();if(t instanceof D&&t.args.kind==="table"&&t.args.this instanceof C){for(let e of t.args.this.args.expressions||[])if(e instanceof x){let s=e.args.kind;s instanceof I&&["varchar","char"].includes(s.args.this)&&(!s.args.expressions||s.args.expressions.length===0)&&s.setArgKey("expressions",[u(1)])}}return t}static get TABLE_ALIAS_TOKENS(){return new Set([...i.Parser.TABLE_ALIAS_TOKENS,"straightJoin"])}};M=m(X),o(M,10,"ID_VAR_TOKENS",Q,A),o(M,10,"NO_PAREN_FUNCTIONS",J,A),o(M,10,"TABLE_ALIAS_TOKENS",W,A),N(M,A),R(M,3,A);var v,z,j,F,d,r=class extends(F=i.Generator,j=[p],z=[p],v=[p],F){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 TYPE_MAPPING(){let t=new Map(i.Generator.TYPE_MAPPING);return t.set("datetime","DATETIME2"),t.set("decimal","DECIMAL"),t.set("image","VARBINARY"),t.set("int","INT"),t.set("json","VARCHAR"),t.set("money","DECIMAL"),t.set("nchar","CHAR"),t.set("nvarchar","VARCHAR"),t.set("rowversion","ROWVERSION"),t.set("smalldatetime","DATETIME2"),t.set("smallmoney","DECIMAL"),t.set("timestamp","DATETIME2"),t.set("timestampntz","DATETIME2"),t.set("timestamptz","DATETIME2"),t.set("tinyint","SMALLINT"),t.set("utinyint","SMALLINT"),t.set("uuid","UNIQUEIDENTIFIER"),t.set("xml","VARCHAR"),t}static get ORIGINAL_TRANSFORMS(){let t=new Map(i.Generator.ORIGINAL_TRANSFORMS);return t.set(D,w([st])),t}dataTypeSql(t){return t.isType(I.TEMPORAL_TYPES)&&t.args.this!=="date"&&(t=_(t)),super.dataTypeSql(t)}castSql(t,e={}){let{safePrefix:s}=e;if(t.isType("timestamptz")){if(!(t.findAncestor(y,Z)instanceof y))return super.castSql(t,{safePrefix:s});let E=_(t.args.to,6).find(S),l=E&&E.args.this instanceof g&&E.args.this.isNumber?Number(E.args.this.toString()):6;return`CAST(${this.sql(t,"this")} AS DATETIMEOFFSET(${l}))`}return super.castSql(t,{safePrefix:s})}atTimeZoneSql(t){let e=t.find(H);if(e&&e.isType("timestamptz")){let s=e.args.to,c=_(s,6).find(S),E=c&&c.args.this instanceof g&&c.args.this.isNumber?Number(c.args.this.toString()):6;return`CAST(${super.atTimeZoneSql(t)} AS DATETIME2(${E}))`}return super.atTimeZoneSql(t)}unixToTimeSql(t){let e=t.args.scale,s=t.args.this;if(e!==void 0&&e!==q.SECONDS)return this.unsupported(`UnixToTime scale ${e} is not supported by Fabric`),"";if(!s)return"";let O=s.mul(g.number("1e6")),c=K("round",O,u(0)),E=h(c,"bigint"),l=new I({this:"datetime2",expressions:[new S({this:u(6)})]}),U=h("'1970-01-01'",l),et=new Y({this:U,expression:E,unit:u("MICROSECONDS")});return this.sql(et)}};d=m(F),o(d,10,"AFTER_HAVING_MODIFIER_TRANSFORMS",j,r),o(d,10,"TYPE_MAPPING",z,r),o(d,10,"ORIGINAL_TRANSFORMS",v,r),N(d,r),R(d,3,r),r.SUPPORTS_DECODE_CASE=!1,r.TRY_SUPPORTED=!1,r.SUPPORTS_UESCAPE=!1;var b,tt,L,a=class extends(tt=i,b=[p],tt){static get NORMALIZATION_STRATEGY(){return"caseSensitive"}};L=m(tt),o(L,10,"NORMALIZATION_STRATEGY",b,a),N(L,a),R(L,3,a),a.DIALECT_NAME="fabric",a.Tokenizer=f,a.Parser=A,a.Generator=r;B.register("fabric",a);export{a as Fabric,r as FabricGenerator,A as FabricParser,f as FabricTokenizer};
|
|
2
|
+
//# sourceMappingURL=fabric.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/dialects/fabric.ts"],"sourcesContent":["import type {\n Generator,\n} from '../generator';\nimport {\n TokenType,\n} from '../tokens';\nimport {\n type Expression,\n DataTypeExpr,\n DataTypeParamExpr,\n LiteralExpr,\n CreateExpr,\n CreateExprKind,\n type CommandExpr,\n SchemaExpr,\n ColumnDefExpr,\n DataTypeExprKind,\n AtTimeZoneExpr,\n SelectExpr,\n CastExpr,\n UnixToTimeExpr,\n DateAddExpr,\n var_,\n cast,\n func,\n literal,\n} from '../expressions';\nimport {\n preprocess,\n} from '../transforms';\nimport {\n cache,\n} from '../port_internals';\nimport {\n Parser,\n} from '../parser';\nimport {\n TSQL,\n} from './tsql';\nimport {\n Dialect, NormalizationStrategy, Dialects,\n} from './dialect';\n\nfunction capDataTypePrecision (expression: DataTypeExpr, maxPrecision: number = 6): DataTypeExpr {\n const precisionParam = expression.find(DataTypeParamExpr);\n\n let targetPrecision = maxPrecision;\n if (precisionParam && precisionParam.args.this instanceof LiteralExpr && precisionParam.args.this.isNumber) {\n const currentPrecision = Number(precisionParam.args.this.toString());\n targetPrecision = Math.min(currentPrecision, maxPrecision);\n }\n\n return new DataTypeExpr({\n this: expression.args.this,\n expressions: [\n new DataTypeParamExpr({\n this: literal(targetPrecision),\n }),\n ],\n });\n}\n\nfunction addDefaultPrecisionToVarchar (expression: Expression): Expression {\n if (\n expression instanceof CreateExpr\n && expression.args.kind === CreateExprKind.TABLE\n && expression.args.this instanceof SchemaExpr\n ) {\n for (const columnDef of expression.args.this.args.expressions || [\n ]) {\n if (columnDef instanceof ColumnDefExpr) {\n const columnType = columnDef.args.kind;\n if (\n columnType instanceof DataTypeExpr\n && [\n DataTypeExprKind.VARCHAR,\n DataTypeExprKind.CHAR,\n ].includes(columnType.args.this as DataTypeExprKind)\n && (!columnType.args.expressions || columnType.args.expressions.length === 0)\n ) {\n columnType.setArgKey('expressions', [\n var_('MAX'),\n ]);\n }\n }\n }\n }\n\n return expression;\n}\n\nexport class FabricTokenizer extends TSQL.Tokenizer {\n @cache\n static get ORIGINAL_KEYWORDS (): Record<string, TokenType> {\n return {\n ...TSQL.Tokenizer.ORIGINAL_KEYWORDS,\n TIMESTAMP: TokenType.TIMESTAMP,\n UTINYINT: TokenType.UTINYINT,\n };\n }\n}\n\nexport class FabricParser extends TSQL.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 ...TSQL.Parser.NO_PAREN_FUNCTIONS,\n };\n delete noParenFunctions[TokenType.LOCALTIME];\n delete noParenFunctions[TokenType.LOCALTIMESTAMP];\n return noParenFunctions;\n }\n\n public parseCreate (): CreateExpr | CommandExpr {\n const create = super.parseCreate();\n\n if (create instanceof CreateExpr) {\n if (create.args.kind === CreateExprKind.TABLE && create.args.this instanceof SchemaExpr) {\n for (const columnDef of create.args.this.args.expressions || [\n ]) {\n if (columnDef instanceof ColumnDefExpr) {\n const columnType = columnDef.args.kind;\n if (\n columnType instanceof DataTypeExpr\n && [\n DataTypeExprKind.VARCHAR,\n DataTypeExprKind.CHAR,\n ].includes(columnType.args.this as DataTypeExprKind)\n && (!columnType.args.expressions || columnType.args.expressions.length === 0)\n ) {\n columnType.setArgKey('expressions', [\n literal(1),\n ]);\n }\n }\n }\n }\n }\n\n return create;\n }\n\n // port from _Dialect metaclass logic\n @cache\n static get TABLE_ALIAS_TOKENS (): Set<TokenType> {\n return new Set([\n ...TSQL.Parser.TABLE_ALIAS_TOKENS,\n TokenType.STRAIGHT_JOIN,\n ]);\n }\n}\n\nexport class FabricGenerator extends TSQL.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\n @cache\n static get TYPE_MAPPING (): Map<DataTypeExprKind | string, string> {\n const mapping = new Map(TSQL.Generator.TYPE_MAPPING);\n mapping.set(DataTypeExprKind.DATETIME, 'DATETIME2');\n mapping.set(DataTypeExprKind.DECIMAL, 'DECIMAL');\n mapping.set(DataTypeExprKind.IMAGE, 'VARBINARY');\n mapping.set(DataTypeExprKind.INT, 'INT');\n mapping.set(DataTypeExprKind.JSON, 'VARCHAR');\n mapping.set(DataTypeExprKind.MONEY, 'DECIMAL');\n mapping.set(DataTypeExprKind.NCHAR, 'CHAR');\n mapping.set(DataTypeExprKind.NVARCHAR, 'VARCHAR');\n mapping.set(DataTypeExprKind.ROWVERSION, 'ROWVERSION');\n mapping.set(DataTypeExprKind.SMALLDATETIME, 'DATETIME2');\n mapping.set(DataTypeExprKind.SMALLMONEY, 'DECIMAL');\n mapping.set(DataTypeExprKind.TIMESTAMP, 'DATETIME2');\n mapping.set(DataTypeExprKind.TIMESTAMPNTZ, 'DATETIME2');\n mapping.set(DataTypeExprKind.TIMESTAMPTZ, 'DATETIME2');\n mapping.set(DataTypeExprKind.TINYINT, 'SMALLINT');\n mapping.set(DataTypeExprKind.UTINYINT, 'SMALLINT');\n mapping.set(DataTypeExprKind.UUID, 'UNIQUEIDENTIFIER');\n mapping.set(DataTypeExprKind.XML, 'VARCHAR');\n return mapping;\n };\n\n @cache\n static get ORIGINAL_TRANSFORMS (): Map<typeof Expression, (this: Generator, e: Expression) => string> {\n const m = new Map<typeof Expression, (this: Generator, e: Expression) => string>(TSQL.Generator.ORIGINAL_TRANSFORMS);\n m.set(CreateExpr, preprocess([\n addDefaultPrecisionToVarchar,\n ]));\n return m;\n };\n\n public dataTypeSql (expression: DataTypeExpr): string {\n if (\n expression.isType(DataTypeExpr.TEMPORAL_TYPES)\n && expression.args.this !== DataTypeExprKind.DATE\n ) {\n expression = capDataTypePrecision(expression);\n }\n\n return super.dataTypeSql(expression);\n }\n\n public castSql (expression: CastExpr, options: {safePrefix?: string} = {}): string {\n const {\n safePrefix,\n } = options;\n if (expression.isType(DataTypeExprKind.TIMESTAMPTZ)) {\n const atTimeZone = expression.findAncestor<AtTimeZoneExpr | SelectExpr>(AtTimeZoneExpr, SelectExpr);\n\n if (!(atTimeZone instanceof AtTimeZoneExpr)) {\n return super.castSql(expression, {\n safePrefix,\n });\n }\n\n const cappedDataType = capDataTypePrecision(expression.args.to as DataTypeExpr, 6);\n const precisionParam = cappedDataType.find(DataTypeParamExpr);\n const precisionValue = (precisionParam && precisionParam.args.this instanceof LiteralExpr && precisionParam.args.this.isNumber)\n ? Number(precisionParam.args.this.toString())\n : 6;\n\n const datetimeoffset = `CAST(${this.sql(expression, 'this')} AS DATETIMEOFFSET(${precisionValue}))`;\n\n return datetimeoffset;\n }\n\n return super.castSql(expression, {\n safePrefix,\n });\n }\n\n public atTimeZoneSql (expression: AtTimeZoneExpr): string {\n const timestamptzCast = expression.find(CastExpr);\n if (timestamptzCast && timestamptzCast.isType(DataTypeExprKind.TIMESTAMPTZ)) {\n const dataType = timestamptzCast.args.to as DataTypeExpr;\n const cappedDataType = capDataTypePrecision(dataType, 6);\n const precisionParam = cappedDataType.find(DataTypeParamExpr);\n const precision = (precisionParam && precisionParam.args.this instanceof LiteralExpr && precisionParam.args.this.isNumber)\n ? Number(precisionParam.args.this.toString())\n : 6;\n\n const atTimeZoneSqlResult = super.atTimeZoneSql(expression);\n\n return `CAST(${atTimeZoneSqlResult} AS DATETIME2(${precision}))`;\n }\n\n return super.atTimeZoneSql(expression);\n }\n\n public unixToTimeSql (expression: UnixToTimeExpr): string {\n const scale = expression.args.scale;\n const timestamp = expression.args.this;\n\n if (scale !== undefined && scale !== UnixToTimeExpr.SECONDS) {\n this.unsupported(`UnixToTime scale ${scale} is not supported by Fabric`);\n return '';\n }\n\n if (!timestamp) return '';\n const microseconds = timestamp.mul(LiteralExpr.number('1e6'));\n const rounded = func('round', microseconds, literal(0));\n const roundedMsAsBigint = cast(rounded, DataTypeExprKind.BIGINT);\n\n const datetime2Type = new DataTypeExpr({\n this: DataTypeExprKind.DATETIME2,\n expressions: [\n new DataTypeParamExpr({\n this: literal(6),\n }),\n ],\n });\n const epochStart = cast('\\'1970-01-01\\'', datetime2Type);\n\n const dateadd = new DateAddExpr({\n this: epochStart,\n expression: roundedMsAsBigint,\n unit: literal('MICROSECONDS'),\n });\n return this.sql(dateadd);\n }\n}\n\nexport class Fabric extends TSQL {\n static DIALECT_NAME = Dialects.FABRIC;\n\n @cache\n static get NORMALIZATION_STRATEGY () {\n return NormalizationStrategy.CASE_SENSITIVE;\n }\n\n static Tokenizer = FabricTokenizer;\n static Parser = FabricParser;\n static Generator = FabricGenerator;\n}\n\nDialect.register(Dialects.FABRIC, Fabric);\n"],"mappings":"8PA2CA,SAASA,EAAsBC,EAA0BC,EAAuB,EAAiB,CAC/F,IAAMC,EAAiBF,EAAW,KAAKG,CAAiB,EAEpDC,EAAkBH,EACtB,GAAIC,GAAkBA,EAAe,KAAK,gBAAgBG,GAAeH,EAAe,KAAK,KAAK,SAAU,CAC1G,IAAMI,EAAmB,OAAOJ,EAAe,KAAK,KAAK,SAAS,CAAC,EACnEE,EAAkB,KAAK,IAAIE,EAAkBL,CAAY,CAC3D,CAEA,OAAO,IAAIM,EAAa,CACtB,KAAMP,EAAW,KAAK,KACtB,YAAa,CACX,IAAIG,EAAkB,CACpB,KAAMK,EAAQJ,CAAe,CAC/B,CAAC,CACH,CACF,CAAC,CACH,CAEA,SAASK,GAA8BT,EAAoC,CACzE,GACEA,aAAsBU,GACnBV,EAAW,KAAK,OAAS,SACzBA,EAAW,KAAK,gBAAgBW,GAEnC,QAAWC,KAAaZ,EAAW,KAAK,KAAK,KAAK,aAAe,CACjE,EACE,GAAIY,aAAqBC,EAAe,CACtC,IAAMC,EAAaF,EAAU,KAAK,KAEhCE,aAAsBP,GACnB,iBAGH,EAAE,SAASO,EAAW,KAAK,IAAwB,IAC/C,CAACA,EAAW,KAAK,aAAeA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,EARR4C,EASJ,OAASlC,EATLkC,EAUJ,UAAY3B,EAGrB4B,EAAQ,kBAA0BD,CAAM","names":["capDataTypePrecision","expression","maxPrecision","precisionParam","DataTypeParamExpr","targetPrecision","LiteralExpr","currentPrecision","DataTypeExpr","literal","addDefaultPrecisionToVarchar","CreateExpr","SchemaExpr","columnDef","ColumnDefExpr","columnType","var_","_ORIGINAL_KEYWORDS_dec","_a","_init","FabricTokenizer","TSQL","cache","__decoratorStart","__decorateElement","__decoratorMetadata","__runInitializers","_TABLE_ALIAS_TOKENS_dec","_NO_PAREN_FUNCTIONS_dec","_ID_VAR_TOKENS_dec","FabricParser","Parser","noParenFunctions","create","_ORIGINAL_TRANSFORMS_dec","_TYPE_MAPPING_dec","_AFTER_HAVING_MODIFIER_TRANSFORMS_dec","FabricGenerator","modifiers","m","mapping","preprocess","options","safePrefix","AtTimeZoneExpr","SelectExpr","precisionValue","timestamptzCast","CastExpr","dataType","precision","scale","timestamp","UnixToTimeExpr","microseconds","rounded","func","roundedMsAsBigint","cast","datetime2Type","epochStart","dateadd","DateAddExpr","_NORMALIZATION_STRATEGY_dec","Fabric","Dialect"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXZQFOICXcjs = require('../chunk-XZQFOICX.cjs');require('../chunk-DOKMTZYO.cjs');require('../chunk-2Z3O2CFM.cjs');exports.Hive = _chunkXZQFOICXcjs.c; exports.buildWithIgnoreNulls = _chunkXZQFOICXcjs.b;
|
|
2
|
+
//# sourceMappingURL=hive.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/huydna/projects/sqlingo.js/dist/dialects/hive.cjs"],"names":[],"mappings":"AAAA,kIAAgD,iCAA8B,iCAA8B,uFAA4C","file":"/home/huydna/projects/sqlingo.js/dist/dialects/hive.cjs"}
|