@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,484 @@
|
|
|
1
|
+
import { d as Dialects, E as Expression, bo as TypeAnnotator, $ as DataTypeExprKind, _ as TokenPair, l as TokenType, c as Dialect, i as Parser, bg as GeneratedAsIdentityColumnConstraintExpr, cW as ComputedColumnConstraintExpr, c_ as GeneratedAsRowColumnConstraintExpr, G as Generator, aq as BracketExpr, dE as AnyValueExpr, az as DateDiffExpr, b6 as PlaceholderExpr, dd as RenameColumnExpr, dF as ReadParquetExpr } from '../tokens-VcMD09XM.js';
|
|
2
|
+
import { Spark2 } from './spark2.js';
|
|
3
|
+
import './hive.js';
|
|
4
|
+
|
|
5
|
+
declare class SparkTokenizer extends Spark2.Tokenizer {
|
|
6
|
+
static STRING_ESCAPES_ALLOWED_IN_RAW_STRINGS: boolean;
|
|
7
|
+
static get RAW_STRINGS(): TokenPair[];
|
|
8
|
+
}
|
|
9
|
+
declare class SparkParser extends Spark2.Parser {
|
|
10
|
+
static get NO_PAREN_FUNCTIONS(): {
|
|
11
|
+
lParen?: typeof Expression | undefined;
|
|
12
|
+
rParen?: typeof Expression | undefined;
|
|
13
|
+
lBracket?: typeof Expression | undefined;
|
|
14
|
+
rBracket?: typeof Expression | undefined;
|
|
15
|
+
lBrace?: typeof Expression | undefined;
|
|
16
|
+
rBrace?: typeof Expression | undefined;
|
|
17
|
+
comma?: typeof Expression | undefined;
|
|
18
|
+
dot?: typeof Expression | undefined;
|
|
19
|
+
dash?: typeof Expression | undefined;
|
|
20
|
+
plus?: typeof Expression | undefined;
|
|
21
|
+
colon?: typeof Expression | undefined;
|
|
22
|
+
dotcolon?: typeof Expression | undefined;
|
|
23
|
+
dcolon?: typeof Expression | undefined;
|
|
24
|
+
dcolondollar?: typeof Expression | undefined;
|
|
25
|
+
dcolonpercent?: typeof Expression | undefined;
|
|
26
|
+
dcolonqmark?: typeof Expression | undefined;
|
|
27
|
+
dqmark?: typeof Expression | undefined;
|
|
28
|
+
semicolon?: typeof Expression | undefined;
|
|
29
|
+
star?: typeof Expression | undefined;
|
|
30
|
+
backslash?: typeof Expression | undefined;
|
|
31
|
+
slash?: typeof Expression | undefined;
|
|
32
|
+
lt?: typeof Expression | undefined;
|
|
33
|
+
lte?: typeof Expression | undefined;
|
|
34
|
+
gt?: typeof Expression | undefined;
|
|
35
|
+
gte?: typeof Expression | undefined;
|
|
36
|
+
not?: typeof Expression | undefined;
|
|
37
|
+
eq?: typeof Expression | undefined;
|
|
38
|
+
neq?: typeof Expression | undefined;
|
|
39
|
+
nullsafeEq?: typeof Expression | undefined;
|
|
40
|
+
colonEq?: typeof Expression | undefined;
|
|
41
|
+
colonGt?: typeof Expression | undefined;
|
|
42
|
+
ncolonGt?: typeof Expression | undefined;
|
|
43
|
+
and?: typeof Expression | undefined;
|
|
44
|
+
or?: typeof Expression | undefined;
|
|
45
|
+
amp?: typeof Expression | undefined;
|
|
46
|
+
dpipe?: typeof Expression | undefined;
|
|
47
|
+
pipeGt?: typeof Expression | undefined;
|
|
48
|
+
pipe?: typeof Expression | undefined;
|
|
49
|
+
pipeSlash?: typeof Expression | undefined;
|
|
50
|
+
dpipeSlash?: typeof Expression | undefined;
|
|
51
|
+
caret?: typeof Expression | undefined;
|
|
52
|
+
caretAt?: typeof Expression | undefined;
|
|
53
|
+
tilde?: typeof Expression | undefined;
|
|
54
|
+
arrow?: typeof Expression | undefined;
|
|
55
|
+
darrow?: typeof Expression | undefined;
|
|
56
|
+
farrow?: typeof Expression | undefined;
|
|
57
|
+
hash?: typeof Expression | undefined;
|
|
58
|
+
hashArrow?: typeof Expression | undefined;
|
|
59
|
+
dhashArrow?: typeof Expression | undefined;
|
|
60
|
+
lrArrow?: typeof Expression | undefined;
|
|
61
|
+
dat?: typeof Expression | undefined;
|
|
62
|
+
ltAt?: typeof Expression | undefined;
|
|
63
|
+
atGt?: typeof Expression | undefined;
|
|
64
|
+
dollar?: typeof Expression | undefined;
|
|
65
|
+
parameter?: typeof Expression | undefined;
|
|
66
|
+
session?: typeof Expression | undefined;
|
|
67
|
+
sessionParameter?: typeof Expression | undefined;
|
|
68
|
+
sessionUser?: typeof Expression | undefined;
|
|
69
|
+
damp?: typeof Expression | undefined;
|
|
70
|
+
ampLt?: typeof Expression | undefined;
|
|
71
|
+
ampGt?: typeof Expression | undefined;
|
|
72
|
+
adjacent?: typeof Expression | undefined;
|
|
73
|
+
xor?: typeof Expression | undefined;
|
|
74
|
+
dstar?: typeof Expression | undefined;
|
|
75
|
+
qmarkAmp?: typeof Expression | undefined;
|
|
76
|
+
qmarkPipe?: typeof Expression | undefined;
|
|
77
|
+
hashDash?: typeof Expression | undefined;
|
|
78
|
+
exclamation?: typeof Expression | undefined;
|
|
79
|
+
uriStart?: typeof Expression | undefined;
|
|
80
|
+
blockStart?: typeof Expression | undefined;
|
|
81
|
+
blockEnd?: typeof Expression | undefined;
|
|
82
|
+
space?: typeof Expression | undefined;
|
|
83
|
+
break?: typeof Expression | undefined;
|
|
84
|
+
string?: typeof Expression | undefined;
|
|
85
|
+
number?: typeof Expression | undefined;
|
|
86
|
+
identifier?: typeof Expression | undefined;
|
|
87
|
+
database?: typeof Expression | undefined;
|
|
88
|
+
column?: typeof Expression | undefined;
|
|
89
|
+
columnDef?: typeof Expression | undefined;
|
|
90
|
+
schema?: typeof Expression | undefined;
|
|
91
|
+
table?: typeof Expression | undefined;
|
|
92
|
+
warehouse?: typeof Expression | undefined;
|
|
93
|
+
stage?: typeof Expression | undefined;
|
|
94
|
+
streamlit?: typeof Expression | undefined;
|
|
95
|
+
var?: typeof Expression | undefined;
|
|
96
|
+
bitString?: typeof Expression | undefined;
|
|
97
|
+
hexString?: typeof Expression | undefined;
|
|
98
|
+
byteString?: typeof Expression | undefined;
|
|
99
|
+
nationalString?: typeof Expression | undefined;
|
|
100
|
+
rawString?: typeof Expression | undefined;
|
|
101
|
+
heredocString?: typeof Expression | undefined;
|
|
102
|
+
unicodeString?: typeof Expression | undefined;
|
|
103
|
+
bit?: typeof Expression | undefined;
|
|
104
|
+
boolean?: typeof Expression | undefined;
|
|
105
|
+
tinyint?: typeof Expression | undefined;
|
|
106
|
+
utinyint?: typeof Expression | undefined;
|
|
107
|
+
smallint?: typeof Expression | undefined;
|
|
108
|
+
usmallint?: typeof Expression | undefined;
|
|
109
|
+
mediumint?: typeof Expression | undefined;
|
|
110
|
+
umediumint?: typeof Expression | undefined;
|
|
111
|
+
int?: typeof Expression | undefined;
|
|
112
|
+
uint?: typeof Expression | undefined;
|
|
113
|
+
bigint?: typeof Expression | undefined;
|
|
114
|
+
ubigint?: typeof Expression | undefined;
|
|
115
|
+
bignum?: typeof Expression | undefined;
|
|
116
|
+
int128?: typeof Expression | undefined;
|
|
117
|
+
uint128?: typeof Expression | undefined;
|
|
118
|
+
int256?: typeof Expression | undefined;
|
|
119
|
+
uint256?: typeof Expression | undefined;
|
|
120
|
+
float?: typeof Expression | undefined;
|
|
121
|
+
double?: typeof Expression | undefined;
|
|
122
|
+
udouble?: typeof Expression | undefined;
|
|
123
|
+
decimal?: typeof Expression | undefined;
|
|
124
|
+
decimal32?: typeof Expression | undefined;
|
|
125
|
+
decimal64?: typeof Expression | undefined;
|
|
126
|
+
decimal128?: typeof Expression | undefined;
|
|
127
|
+
decimal256?: typeof Expression | undefined;
|
|
128
|
+
decfloat?: typeof Expression | undefined;
|
|
129
|
+
udecimal?: typeof Expression | undefined;
|
|
130
|
+
bigdecimal?: typeof Expression | undefined;
|
|
131
|
+
char?: typeof Expression | undefined;
|
|
132
|
+
nchar?: typeof Expression | undefined;
|
|
133
|
+
varchar?: typeof Expression | undefined;
|
|
134
|
+
nvarchar?: typeof Expression | undefined;
|
|
135
|
+
bpchar?: typeof Expression | undefined;
|
|
136
|
+
text?: typeof Expression | undefined;
|
|
137
|
+
mediumtext?: typeof Expression | undefined;
|
|
138
|
+
longtext?: typeof Expression | undefined;
|
|
139
|
+
blob?: typeof Expression | undefined;
|
|
140
|
+
mediumblob?: typeof Expression | undefined;
|
|
141
|
+
longblob?: typeof Expression | undefined;
|
|
142
|
+
tinyblob?: typeof Expression | undefined;
|
|
143
|
+
tinytext?: typeof Expression | undefined;
|
|
144
|
+
name?: typeof Expression | undefined;
|
|
145
|
+
binary?: typeof Expression | undefined;
|
|
146
|
+
varbinary?: typeof Expression | undefined;
|
|
147
|
+
json?: typeof Expression | undefined;
|
|
148
|
+
jsonb?: typeof Expression | undefined;
|
|
149
|
+
time?: typeof Expression | undefined;
|
|
150
|
+
timetz?: typeof Expression | undefined;
|
|
151
|
+
timeNs?: typeof Expression | undefined;
|
|
152
|
+
timestamp?: typeof Expression | undefined;
|
|
153
|
+
timestamptz?: typeof Expression | undefined;
|
|
154
|
+
timestampltz?: typeof Expression | undefined;
|
|
155
|
+
timestampntz?: typeof Expression | undefined;
|
|
156
|
+
timestampS?: typeof Expression | undefined;
|
|
157
|
+
timestampMs?: typeof Expression | undefined;
|
|
158
|
+
timestampNs?: typeof Expression | undefined;
|
|
159
|
+
datetime?: typeof Expression | undefined;
|
|
160
|
+
datetime2?: typeof Expression | undefined;
|
|
161
|
+
datetime64?: typeof Expression | undefined;
|
|
162
|
+
smalldatetime?: typeof Expression | undefined;
|
|
163
|
+
date?: typeof Expression | undefined;
|
|
164
|
+
date32?: typeof Expression | undefined;
|
|
165
|
+
int4range?: typeof Expression | undefined;
|
|
166
|
+
int4multirange?: typeof Expression | undefined;
|
|
167
|
+
int8range?: typeof Expression | undefined;
|
|
168
|
+
int8multirange?: typeof Expression | undefined;
|
|
169
|
+
numrange?: typeof Expression | undefined;
|
|
170
|
+
nummultirange?: typeof Expression | undefined;
|
|
171
|
+
tsrange?: typeof Expression | undefined;
|
|
172
|
+
tsmultirange?: typeof Expression | undefined;
|
|
173
|
+
tstzrange?: typeof Expression | undefined;
|
|
174
|
+
tstzmultirange?: typeof Expression | undefined;
|
|
175
|
+
daterange?: typeof Expression | undefined;
|
|
176
|
+
datemultirange?: typeof Expression | undefined;
|
|
177
|
+
uuid?: typeof Expression | undefined;
|
|
178
|
+
geography?: typeof Expression | undefined;
|
|
179
|
+
geographypoint?: typeof Expression | undefined;
|
|
180
|
+
nullable?: typeof Expression | undefined;
|
|
181
|
+
geometry?: typeof Expression | undefined;
|
|
182
|
+
point?: typeof Expression | undefined;
|
|
183
|
+
ring?: typeof Expression | undefined;
|
|
184
|
+
linestring?: typeof Expression | undefined;
|
|
185
|
+
localtime?: typeof Expression | undefined;
|
|
186
|
+
localtimestamp?: typeof Expression | undefined;
|
|
187
|
+
systimestamp?: typeof Expression | undefined;
|
|
188
|
+
multilinestring?: typeof Expression | undefined;
|
|
189
|
+
polygon?: typeof Expression | undefined;
|
|
190
|
+
multipolygon?: typeof Expression | undefined;
|
|
191
|
+
hllsketch?: typeof Expression | undefined;
|
|
192
|
+
hstore?: typeof Expression | undefined;
|
|
193
|
+
super?: typeof Expression | undefined;
|
|
194
|
+
serial?: typeof Expression | undefined;
|
|
195
|
+
smallserial?: typeof Expression | undefined;
|
|
196
|
+
bigserial?: typeof Expression | undefined;
|
|
197
|
+
xml?: typeof Expression | undefined;
|
|
198
|
+
year?: typeof Expression | undefined;
|
|
199
|
+
userdefined?: typeof Expression | undefined;
|
|
200
|
+
money?: typeof Expression | undefined;
|
|
201
|
+
smallmoney?: typeof Expression | undefined;
|
|
202
|
+
rowversion?: typeof Expression | undefined;
|
|
203
|
+
image?: typeof Expression | undefined;
|
|
204
|
+
variant?: typeof Expression | undefined;
|
|
205
|
+
object?: typeof Expression | undefined;
|
|
206
|
+
inet?: typeof Expression | undefined;
|
|
207
|
+
ipaddress?: typeof Expression | undefined;
|
|
208
|
+
ipprefix?: typeof Expression | undefined;
|
|
209
|
+
ipv4?: typeof Expression | undefined;
|
|
210
|
+
ipv6?: typeof Expression | undefined;
|
|
211
|
+
enum?: typeof Expression | undefined;
|
|
212
|
+
enum8?: typeof Expression | undefined;
|
|
213
|
+
enum16?: typeof Expression | undefined;
|
|
214
|
+
fixedstring?: typeof Expression | undefined;
|
|
215
|
+
lowcardinality?: typeof Expression | undefined;
|
|
216
|
+
nested?: typeof Expression | undefined;
|
|
217
|
+
aggregatefunction?: typeof Expression | undefined;
|
|
218
|
+
simpleaggregatefunction?: typeof Expression | undefined;
|
|
219
|
+
tdigest?: typeof Expression | undefined;
|
|
220
|
+
unknown?: typeof Expression | undefined;
|
|
221
|
+
vector?: typeof Expression | undefined;
|
|
222
|
+
dynamic?: typeof Expression | undefined;
|
|
223
|
+
void?: typeof Expression | undefined;
|
|
224
|
+
alias?: typeof Expression | undefined;
|
|
225
|
+
alter?: typeof Expression | undefined;
|
|
226
|
+
all?: typeof Expression | undefined;
|
|
227
|
+
anti?: typeof Expression | undefined;
|
|
228
|
+
any?: typeof Expression | undefined;
|
|
229
|
+
apply?: typeof Expression | undefined;
|
|
230
|
+
array?: typeof Expression | undefined;
|
|
231
|
+
asc?: typeof Expression | undefined;
|
|
232
|
+
asof?: typeof Expression | undefined;
|
|
233
|
+
attach?: typeof Expression | undefined;
|
|
234
|
+
autoIncrement?: typeof Expression | undefined;
|
|
235
|
+
begin?: typeof Expression | undefined;
|
|
236
|
+
between?: typeof Expression | undefined;
|
|
237
|
+
bulkCollectInto?: typeof Expression | undefined;
|
|
238
|
+
cache?: typeof Expression | undefined;
|
|
239
|
+
case?: typeof Expression | undefined;
|
|
240
|
+
characterSet?: typeof Expression | undefined;
|
|
241
|
+
clusterBy?: typeof Expression | undefined;
|
|
242
|
+
collate?: typeof Expression | undefined;
|
|
243
|
+
command?: typeof Expression | undefined;
|
|
244
|
+
comment?: typeof Expression | undefined;
|
|
245
|
+
commit?: typeof Expression | undefined;
|
|
246
|
+
connectBy?: typeof Expression | undefined;
|
|
247
|
+
constraint?: typeof Expression | undefined;
|
|
248
|
+
copy?: typeof Expression | undefined;
|
|
249
|
+
create?: typeof Expression | undefined;
|
|
250
|
+
cross?: typeof Expression | undefined;
|
|
251
|
+
cube?: typeof Expression | undefined;
|
|
252
|
+
currentDate?: typeof Expression | undefined;
|
|
253
|
+
currentDatetime?: typeof Expression | undefined;
|
|
254
|
+
currentSchema?: typeof Expression | undefined;
|
|
255
|
+
currentTime?: typeof Expression | undefined;
|
|
256
|
+
currentTimestamp?: typeof Expression | undefined;
|
|
257
|
+
currentUser?: typeof Expression | undefined;
|
|
258
|
+
currentRole?: typeof Expression | undefined;
|
|
259
|
+
currentCatalog?: typeof Expression | undefined;
|
|
260
|
+
declare?: typeof Expression | undefined;
|
|
261
|
+
default?: typeof Expression | undefined;
|
|
262
|
+
delete?: typeof Expression | undefined;
|
|
263
|
+
desc?: typeof Expression | undefined;
|
|
264
|
+
describe?: typeof Expression | undefined;
|
|
265
|
+
detach?: typeof Expression | undefined;
|
|
266
|
+
dictionary?: typeof Expression | undefined;
|
|
267
|
+
distinct?: typeof Expression | undefined;
|
|
268
|
+
distributeBy?: typeof Expression | undefined;
|
|
269
|
+
div?: typeof Expression | undefined;
|
|
270
|
+
drop?: typeof Expression | undefined;
|
|
271
|
+
else?: typeof Expression | undefined;
|
|
272
|
+
end?: typeof Expression | undefined;
|
|
273
|
+
escape?: typeof Expression | undefined;
|
|
274
|
+
except?: typeof Expression | undefined;
|
|
275
|
+
execute?: typeof Expression | undefined;
|
|
276
|
+
exists?: typeof Expression | undefined;
|
|
277
|
+
false?: typeof Expression | undefined;
|
|
278
|
+
fetch?: typeof Expression | undefined;
|
|
279
|
+
file?: typeof Expression | undefined;
|
|
280
|
+
fileFormat?: typeof Expression | undefined;
|
|
281
|
+
filter?: typeof Expression | undefined;
|
|
282
|
+
final?: typeof Expression | undefined;
|
|
283
|
+
first?: typeof Expression | undefined;
|
|
284
|
+
for?: typeof Expression | undefined;
|
|
285
|
+
force?: typeof Expression | undefined;
|
|
286
|
+
foreignKey?: typeof Expression | undefined;
|
|
287
|
+
format?: typeof Expression | undefined;
|
|
288
|
+
from?: typeof Expression | undefined;
|
|
289
|
+
full?: typeof Expression | undefined;
|
|
290
|
+
function?: typeof Expression | undefined;
|
|
291
|
+
get?: typeof Expression | undefined;
|
|
292
|
+
glob?: typeof Expression | undefined;
|
|
293
|
+
global?: typeof Expression | undefined;
|
|
294
|
+
grant?: typeof Expression | undefined;
|
|
295
|
+
groupBy?: typeof Expression | undefined;
|
|
296
|
+
groupingSets?: typeof Expression | undefined;
|
|
297
|
+
having?: typeof Expression | undefined;
|
|
298
|
+
hint?: typeof Expression | undefined;
|
|
299
|
+
ignore?: typeof Expression | undefined;
|
|
300
|
+
ilike?: typeof Expression | undefined;
|
|
301
|
+
in?: typeof Expression | undefined;
|
|
302
|
+
index?: typeof Expression | undefined;
|
|
303
|
+
indexedBy?: typeof Expression | undefined;
|
|
304
|
+
inner?: typeof Expression | undefined;
|
|
305
|
+
insert?: typeof Expression | undefined;
|
|
306
|
+
install?: typeof Expression | undefined;
|
|
307
|
+
intersect?: typeof Expression | undefined;
|
|
308
|
+
interval?: typeof Expression | undefined;
|
|
309
|
+
into?: typeof Expression | undefined;
|
|
310
|
+
introducer?: typeof Expression | undefined;
|
|
311
|
+
irlike?: typeof Expression | undefined;
|
|
312
|
+
is?: typeof Expression | undefined;
|
|
313
|
+
isnull?: typeof Expression | undefined;
|
|
314
|
+
join?: typeof Expression | undefined;
|
|
315
|
+
joinMarker?: typeof Expression | undefined;
|
|
316
|
+
keep?: typeof Expression | undefined;
|
|
317
|
+
key?: typeof Expression | undefined;
|
|
318
|
+
kill?: typeof Expression | undefined;
|
|
319
|
+
language?: typeof Expression | undefined;
|
|
320
|
+
lateral?: typeof Expression | undefined;
|
|
321
|
+
left?: typeof Expression | undefined;
|
|
322
|
+
like?: typeof Expression | undefined;
|
|
323
|
+
limit?: typeof Expression | undefined;
|
|
324
|
+
list?: typeof Expression | undefined;
|
|
325
|
+
load?: typeof Expression | undefined;
|
|
326
|
+
lock?: typeof Expression | undefined;
|
|
327
|
+
map?: typeof Expression | undefined;
|
|
328
|
+
match?: typeof Expression | undefined;
|
|
329
|
+
matchCondition?: typeof Expression | undefined;
|
|
330
|
+
matchRecognize?: typeof Expression | undefined;
|
|
331
|
+
memberOf?: typeof Expression | undefined;
|
|
332
|
+
merge?: typeof Expression | undefined;
|
|
333
|
+
mod?: typeof Expression | undefined;
|
|
334
|
+
model?: typeof Expression | undefined;
|
|
335
|
+
natural?: typeof Expression | undefined;
|
|
336
|
+
next?: typeof Expression | undefined;
|
|
337
|
+
nothing?: typeof Expression | undefined;
|
|
338
|
+
notnull?: typeof Expression | undefined;
|
|
339
|
+
null?: typeof Expression | undefined;
|
|
340
|
+
objectIdentifier?: typeof Expression | undefined;
|
|
341
|
+
offset?: typeof Expression | undefined;
|
|
342
|
+
on?: typeof Expression | undefined;
|
|
343
|
+
only?: typeof Expression | undefined;
|
|
344
|
+
operator?: typeof Expression | undefined;
|
|
345
|
+
orderBy?: typeof Expression | undefined;
|
|
346
|
+
orderSiblingsBy?: typeof Expression | undefined;
|
|
347
|
+
ordered?: typeof Expression | undefined;
|
|
348
|
+
ordinality?: typeof Expression | undefined;
|
|
349
|
+
out?: typeof Expression | undefined;
|
|
350
|
+
inout?: typeof Expression | undefined;
|
|
351
|
+
outer?: typeof Expression | undefined;
|
|
352
|
+
over?: typeof Expression | undefined;
|
|
353
|
+
overlaps?: typeof Expression | undefined;
|
|
354
|
+
overwrite?: typeof Expression | undefined;
|
|
355
|
+
partition?: typeof Expression | undefined;
|
|
356
|
+
partitionBy?: typeof Expression | undefined;
|
|
357
|
+
percent?: typeof Expression | undefined;
|
|
358
|
+
pivot?: typeof Expression | undefined;
|
|
359
|
+
placeholder?: typeof Expression | undefined;
|
|
360
|
+
positional?: typeof Expression | undefined;
|
|
361
|
+
pragma?: typeof Expression | undefined;
|
|
362
|
+
prewhere?: typeof Expression | undefined;
|
|
363
|
+
primaryKey?: typeof Expression | undefined;
|
|
364
|
+
procedure?: typeof Expression | undefined;
|
|
365
|
+
properties?: typeof Expression | undefined;
|
|
366
|
+
pseudoType?: typeof Expression | undefined;
|
|
367
|
+
put?: typeof Expression | undefined;
|
|
368
|
+
qualify?: typeof Expression | undefined;
|
|
369
|
+
quote?: typeof Expression | undefined;
|
|
370
|
+
qdcolon?: typeof Expression | undefined;
|
|
371
|
+
range?: typeof Expression | undefined;
|
|
372
|
+
recursive?: typeof Expression | undefined;
|
|
373
|
+
refresh?: typeof Expression | undefined;
|
|
374
|
+
rename?: typeof Expression | undefined;
|
|
375
|
+
replace?: typeof Expression | undefined;
|
|
376
|
+
returning?: typeof Expression | undefined;
|
|
377
|
+
revoke?: typeof Expression | undefined;
|
|
378
|
+
references?: typeof Expression | undefined;
|
|
379
|
+
right?: typeof Expression | undefined;
|
|
380
|
+
rlike?: typeof Expression | undefined;
|
|
381
|
+
rollback?: typeof Expression | undefined;
|
|
382
|
+
rollup?: typeof Expression | undefined;
|
|
383
|
+
row?: typeof Expression | undefined;
|
|
384
|
+
rows?: typeof Expression | undefined;
|
|
385
|
+
select?: typeof Expression | undefined;
|
|
386
|
+
semi?: typeof Expression | undefined;
|
|
387
|
+
separator?: typeof Expression | undefined;
|
|
388
|
+
sequence?: typeof Expression | undefined;
|
|
389
|
+
serdeProperties?: typeof Expression | undefined;
|
|
390
|
+
set?: typeof Expression | undefined;
|
|
391
|
+
settings?: typeof Expression | undefined;
|
|
392
|
+
show?: typeof Expression | undefined;
|
|
393
|
+
similarTo?: typeof Expression | undefined;
|
|
394
|
+
some?: typeof Expression | undefined;
|
|
395
|
+
sortBy?: typeof Expression | undefined;
|
|
396
|
+
soundsLike?: typeof Expression | undefined;
|
|
397
|
+
startWith?: typeof Expression | undefined;
|
|
398
|
+
storageIntegration?: typeof Expression | undefined;
|
|
399
|
+
straightJoin?: typeof Expression | undefined;
|
|
400
|
+
struct?: typeof Expression | undefined;
|
|
401
|
+
summarize?: typeof Expression | undefined;
|
|
402
|
+
tableSample?: typeof Expression | undefined;
|
|
403
|
+
tag?: typeof Expression | undefined;
|
|
404
|
+
temporary?: typeof Expression | undefined;
|
|
405
|
+
top?: typeof Expression | undefined;
|
|
406
|
+
then?: typeof Expression | undefined;
|
|
407
|
+
true?: typeof Expression | undefined;
|
|
408
|
+
truncate?: typeof Expression | undefined;
|
|
409
|
+
uncache?: typeof Expression | undefined;
|
|
410
|
+
union?: typeof Expression | undefined;
|
|
411
|
+
unnest?: typeof Expression | undefined;
|
|
412
|
+
unpivot?: typeof Expression | undefined;
|
|
413
|
+
update?: typeof Expression | undefined;
|
|
414
|
+
use?: typeof Expression | undefined;
|
|
415
|
+
using?: typeof Expression | undefined;
|
|
416
|
+
values?: typeof Expression | undefined;
|
|
417
|
+
variadic?: typeof Expression | undefined;
|
|
418
|
+
view?: typeof Expression | undefined;
|
|
419
|
+
semanticView?: typeof Expression | undefined;
|
|
420
|
+
volatile?: typeof Expression | undefined;
|
|
421
|
+
when?: typeof Expression | undefined;
|
|
422
|
+
where?: typeof Expression | undefined;
|
|
423
|
+
window?: typeof Expression | undefined;
|
|
424
|
+
with?: typeof Expression | undefined;
|
|
425
|
+
unique?: typeof Expression | undefined;
|
|
426
|
+
utcDate?: typeof Expression | undefined;
|
|
427
|
+
utcTime?: typeof Expression | undefined;
|
|
428
|
+
utcTimestamp?: typeof Expression | undefined;
|
|
429
|
+
versionSnapshot?: typeof Expression | undefined;
|
|
430
|
+
timestampSnapshot?: typeof Expression | undefined;
|
|
431
|
+
option?: typeof Expression | undefined;
|
|
432
|
+
sink?: typeof Expression | undefined;
|
|
433
|
+
source?: typeof Expression | undefined;
|
|
434
|
+
analyze?: typeof Expression | undefined;
|
|
435
|
+
namespace?: typeof Expression | undefined;
|
|
436
|
+
export?: typeof Expression | undefined;
|
|
437
|
+
hiveTokenStream?: typeof Expression | undefined;
|
|
438
|
+
};
|
|
439
|
+
static get ID_VAR_TOKENS(): Set<TokenType>;
|
|
440
|
+
static get FUNCTIONS(): Record<string, (args: Expression[], options: {
|
|
441
|
+
dialect: Dialect;
|
|
442
|
+
}) => Expression>;
|
|
443
|
+
static get PLACEHOLDER_PARSERS(): Partial<Record<TokenType, (this: Parser) => Expression | undefined>>;
|
|
444
|
+
static get FUNCTION_PARSERS(): Partial<Record<string, (this: Parser) => Expression | undefined>>;
|
|
445
|
+
parseQueryParameter(): Expression | undefined;
|
|
446
|
+
parseGeneratedAsIdentity(): GeneratedAsIdentityColumnConstraintExpr | ComputedColumnConstraintExpr | GeneratedAsRowColumnConstraintExpr;
|
|
447
|
+
parsePivotAggregation(): Expression | undefined;
|
|
448
|
+
static get TABLE_ALIAS_TOKENS(): Set<TokenType>;
|
|
449
|
+
}
|
|
450
|
+
declare class SparkGenerator extends Spark2.Generator {
|
|
451
|
+
static TRY_SUPPORTED: boolean;
|
|
452
|
+
static SUPPORTS_UESCAPE: boolean;
|
|
453
|
+
static SUPPORTS_TO_NUMBER: boolean;
|
|
454
|
+
static PAD_FILL_PATTERN_IS_REQUIRED: boolean;
|
|
455
|
+
static SUPPORTS_CONVERT_TIMEZONE: boolean;
|
|
456
|
+
static SUPPORTS_MEDIAN: boolean;
|
|
457
|
+
static SUPPORTS_UNIX_SECONDS: boolean;
|
|
458
|
+
static SUPPORTS_DECODE_CASE: boolean;
|
|
459
|
+
static PARSE_JSON_NAME?: string;
|
|
460
|
+
static get TYPE_MAPPING(): Map<string, string>;
|
|
461
|
+
static get ORIGINAL_TRANSFORMS(): Map<typeof Expression, (this: Generator, e: any) => string>;
|
|
462
|
+
bracketSql(expression: BracketExpr): string;
|
|
463
|
+
computedColumnConstraintSql(expression: ComputedColumnConstraintExpr): string;
|
|
464
|
+
anyValueSql(expression: AnyValueExpr): string;
|
|
465
|
+
dateDiffSql(expression: DateDiffExpr): string;
|
|
466
|
+
placeholderSql(expression: PlaceholderExpr): string;
|
|
467
|
+
renameColumnSql(expression: RenameColumnExpr): string;
|
|
468
|
+
readParquetSql(expression: ReadParquetExpr): string;
|
|
469
|
+
}
|
|
470
|
+
declare class Spark extends Spark2 {
|
|
471
|
+
static DIALECT_NAME: Dialects;
|
|
472
|
+
static SUPPORTS_ORDER_BY_ALL: boolean;
|
|
473
|
+
static SUPPORTS_NULL_TYPE: boolean;
|
|
474
|
+
static ARRAY_FUNCS_PROPAGATES_NULLS: boolean;
|
|
475
|
+
static get EXPRESSION_METADATA(): Map<typeof Expression, {
|
|
476
|
+
annotator?: (annotator: TypeAnnotator, expression: any) => void;
|
|
477
|
+
returns?: DataTypeExprKind | string;
|
|
478
|
+
}>;
|
|
479
|
+
static Tokenizer: typeof SparkTokenizer;
|
|
480
|
+
static Parser: typeof SparkParser;
|
|
481
|
+
static Generator: typeof SparkGenerator;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
export { Spark };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2YNOERAOcjs = require('../chunk-2YNOERAO.cjs');require('../chunk-XZQFOICX.cjs');require('../chunk-DOKMTZYO.cjs');require('../chunk-2Z3O2CFM.cjs');exports.Spark2 = _chunk2YNOERAOcjs.d; exports.buildAsCast = _chunk2YNOERAOcjs.b; exports.temporaryStorageProvider = _chunk2YNOERAOcjs.c;
|
|
2
|
+
//# sourceMappingURL=spark2.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/huydna/projects/sqlingo.js/dist/dialects/spark2.cjs"],"names":[],"mappings":"AAAA,kIAAuD,iCAA8B,iCAA8B,iCAA8B,wIAAmE","file":"/home/huydna/projects/sqlingo.js/dist/dialects/spark2.cjs"}
|