@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,634 @@
|
|
|
1
|
+
import { c as Dialect, d as Dialects, a1 as NormalizeFunctions, aH as NullOrdering, a0 as NormalizationStrategy, a2 as ExpressionKey, aI as ValuesExpr, aJ as IdentifierExpr, m as Tokenizer, _ as TokenPair, l as TokenType, i as Parser, E as Expression, aK as EnginePropertyExpr, aL as ExtractExpr, aM as AnonymousExpr, aN as InExpr, aO as NotExpr, aP as StrPositionExpr, aQ as CteExpr, T as Token, aR as JoinExpr, aS as FuncExpr, aT as QuantileExpr, aU as PrimaryKeyColumnConstraintExpr, aV as PrimaryKeyExpr, aW as IndexColumnConstraintExpr, aX as PartitionExpr, aY as ProjectionDefExpr, aZ as TupleExpr, a_ as PartitionedByPropertyExpr, G as Generator, $ as DataTypeExprKind, aj as PropertiesLocation, a$ as OffsetExpr, b0 as StrToDateExpr, at as CastExpr, ap as TryCastExpr, b1 as JsonPathSubscriptExpr, b2 as LikePropertyExpr, an as EqExpr, b3 as NeqExpr, b4 as RegexpILikeExpr, b5 as DataTypeExpr, b6 as PlaceholderExpr, b7 as OnClusterExpr, b8 as CreateExpr, b9 as PreWhereExpr, ba as PartitionIdExpr, bb as ReplacePartitionExpr, bc as IsExpr, bd as UnixToTimeExpr } from '../tokens-VcMD09XM.cjs';
|
|
2
|
+
|
|
3
|
+
declare function unixToTimeSql(this: Generator, expression: UnixToTimeExpr): string;
|
|
4
|
+
declare class ClickHouseTokenizer extends Tokenizer {
|
|
5
|
+
static get COMMENTS(): (string | [string, string])[];
|
|
6
|
+
static get IDENTIFIERS(): string[];
|
|
7
|
+
static get IDENTIFIER_ESCAPES(): string[];
|
|
8
|
+
static get STRING_ESCAPES(): string[];
|
|
9
|
+
static get BIT_STRINGS(): TokenPair[];
|
|
10
|
+
static get HEX_STRINGS(): TokenPair[];
|
|
11
|
+
static get HEREDOC_STRINGS(): string[];
|
|
12
|
+
static get ORIGINAL_KEYWORDS(): Record<string, TokenType>;
|
|
13
|
+
static get SINGLE_TOKENS(): Record<string, TokenType>;
|
|
14
|
+
}
|
|
15
|
+
declare class ClickHouseParser extends Parser {
|
|
16
|
+
static get ID_VAR_TOKENS(): Set<TokenType>;
|
|
17
|
+
static get NO_PAREN_FUNCTIONS(): {
|
|
18
|
+
lParen?: typeof Expression | undefined;
|
|
19
|
+
rParen?: typeof Expression | undefined;
|
|
20
|
+
lBracket?: typeof Expression | undefined;
|
|
21
|
+
rBracket?: typeof Expression | undefined;
|
|
22
|
+
lBrace?: typeof Expression | undefined;
|
|
23
|
+
rBrace?: typeof Expression | undefined;
|
|
24
|
+
comma?: typeof Expression | undefined;
|
|
25
|
+
dot?: typeof Expression | undefined;
|
|
26
|
+
dash?: typeof Expression | undefined;
|
|
27
|
+
plus?: typeof Expression | undefined;
|
|
28
|
+
colon?: typeof Expression | undefined;
|
|
29
|
+
dotcolon?: typeof Expression | undefined;
|
|
30
|
+
dcolon?: typeof Expression | undefined;
|
|
31
|
+
dcolondollar?: typeof Expression | undefined;
|
|
32
|
+
dcolonpercent?: typeof Expression | undefined;
|
|
33
|
+
dcolonqmark?: typeof Expression | undefined;
|
|
34
|
+
dqmark?: typeof Expression | undefined;
|
|
35
|
+
semicolon?: typeof Expression | undefined;
|
|
36
|
+
star?: typeof Expression | undefined;
|
|
37
|
+
backslash?: typeof Expression | undefined;
|
|
38
|
+
slash?: typeof Expression | undefined;
|
|
39
|
+
lt?: typeof Expression | undefined;
|
|
40
|
+
lte?: typeof Expression | undefined;
|
|
41
|
+
gt?: typeof Expression | undefined;
|
|
42
|
+
gte?: typeof Expression | undefined;
|
|
43
|
+
not?: typeof Expression | undefined;
|
|
44
|
+
eq?: typeof Expression | undefined;
|
|
45
|
+
neq?: typeof Expression | undefined;
|
|
46
|
+
nullsafeEq?: typeof Expression | undefined;
|
|
47
|
+
colonEq?: typeof Expression | undefined;
|
|
48
|
+
colonGt?: typeof Expression | undefined;
|
|
49
|
+
ncolonGt?: typeof Expression | undefined;
|
|
50
|
+
and?: typeof Expression | undefined;
|
|
51
|
+
or?: typeof Expression | undefined;
|
|
52
|
+
amp?: typeof Expression | undefined;
|
|
53
|
+
dpipe?: typeof Expression | undefined;
|
|
54
|
+
pipeGt?: typeof Expression | undefined;
|
|
55
|
+
pipe?: typeof Expression | undefined;
|
|
56
|
+
pipeSlash?: typeof Expression | undefined;
|
|
57
|
+
dpipeSlash?: typeof Expression | undefined;
|
|
58
|
+
caret?: typeof Expression | undefined;
|
|
59
|
+
caretAt?: typeof Expression | undefined;
|
|
60
|
+
tilde?: typeof Expression | undefined;
|
|
61
|
+
arrow?: typeof Expression | undefined;
|
|
62
|
+
darrow?: typeof Expression | undefined;
|
|
63
|
+
farrow?: typeof Expression | undefined;
|
|
64
|
+
hash?: typeof Expression | undefined;
|
|
65
|
+
hashArrow?: typeof Expression | undefined;
|
|
66
|
+
dhashArrow?: typeof Expression | undefined;
|
|
67
|
+
lrArrow?: typeof Expression | undefined;
|
|
68
|
+
dat?: typeof Expression | undefined;
|
|
69
|
+
ltAt?: typeof Expression | undefined;
|
|
70
|
+
atGt?: typeof Expression | undefined;
|
|
71
|
+
dollar?: typeof Expression | undefined;
|
|
72
|
+
parameter?: typeof Expression | undefined;
|
|
73
|
+
session?: typeof Expression | undefined;
|
|
74
|
+
sessionParameter?: typeof Expression | undefined;
|
|
75
|
+
sessionUser?: typeof Expression | undefined;
|
|
76
|
+
damp?: typeof Expression | undefined;
|
|
77
|
+
ampLt?: typeof Expression | undefined;
|
|
78
|
+
ampGt?: typeof Expression | undefined;
|
|
79
|
+
adjacent?: typeof Expression | undefined;
|
|
80
|
+
xor?: typeof Expression | undefined;
|
|
81
|
+
dstar?: typeof Expression | undefined;
|
|
82
|
+
qmarkAmp?: typeof Expression | undefined;
|
|
83
|
+
qmarkPipe?: typeof Expression | undefined;
|
|
84
|
+
hashDash?: typeof Expression | undefined;
|
|
85
|
+
exclamation?: typeof Expression | undefined;
|
|
86
|
+
uriStart?: typeof Expression | undefined;
|
|
87
|
+
blockStart?: typeof Expression | undefined;
|
|
88
|
+
blockEnd?: typeof Expression | undefined;
|
|
89
|
+
space?: typeof Expression | undefined;
|
|
90
|
+
break?: typeof Expression | undefined;
|
|
91
|
+
string?: typeof Expression | undefined;
|
|
92
|
+
number?: typeof Expression | undefined;
|
|
93
|
+
identifier?: typeof Expression | undefined;
|
|
94
|
+
database?: typeof Expression | undefined;
|
|
95
|
+
column?: typeof Expression | undefined;
|
|
96
|
+
columnDef?: typeof Expression | undefined;
|
|
97
|
+
schema?: typeof Expression | undefined;
|
|
98
|
+
table?: typeof Expression | undefined;
|
|
99
|
+
warehouse?: typeof Expression | undefined;
|
|
100
|
+
stage?: typeof Expression | undefined;
|
|
101
|
+
streamlit?: typeof Expression | undefined;
|
|
102
|
+
var?: typeof Expression | undefined;
|
|
103
|
+
bitString?: typeof Expression | undefined;
|
|
104
|
+
hexString?: typeof Expression | undefined;
|
|
105
|
+
byteString?: typeof Expression | undefined;
|
|
106
|
+
nationalString?: typeof Expression | undefined;
|
|
107
|
+
rawString?: typeof Expression | undefined;
|
|
108
|
+
heredocString?: typeof Expression | undefined;
|
|
109
|
+
unicodeString?: typeof Expression | undefined;
|
|
110
|
+
bit?: typeof Expression | undefined;
|
|
111
|
+
boolean?: typeof Expression | undefined;
|
|
112
|
+
tinyint?: typeof Expression | undefined;
|
|
113
|
+
utinyint?: typeof Expression | undefined;
|
|
114
|
+
smallint?: typeof Expression | undefined;
|
|
115
|
+
usmallint?: typeof Expression | undefined;
|
|
116
|
+
mediumint?: typeof Expression | undefined;
|
|
117
|
+
umediumint?: typeof Expression | undefined;
|
|
118
|
+
int?: typeof Expression | undefined;
|
|
119
|
+
uint?: typeof Expression | undefined;
|
|
120
|
+
bigint?: typeof Expression | undefined;
|
|
121
|
+
ubigint?: typeof Expression | undefined;
|
|
122
|
+
bignum?: typeof Expression | undefined;
|
|
123
|
+
int128?: typeof Expression | undefined;
|
|
124
|
+
uint128?: typeof Expression | undefined;
|
|
125
|
+
int256?: typeof Expression | undefined;
|
|
126
|
+
uint256?: typeof Expression | undefined;
|
|
127
|
+
float?: typeof Expression | undefined;
|
|
128
|
+
double?: typeof Expression | undefined;
|
|
129
|
+
udouble?: typeof Expression | undefined;
|
|
130
|
+
decimal?: typeof Expression | undefined;
|
|
131
|
+
decimal32?: typeof Expression | undefined;
|
|
132
|
+
decimal64?: typeof Expression | undefined;
|
|
133
|
+
decimal128?: typeof Expression | undefined;
|
|
134
|
+
decimal256?: typeof Expression | undefined;
|
|
135
|
+
decfloat?: typeof Expression | undefined;
|
|
136
|
+
udecimal?: typeof Expression | undefined;
|
|
137
|
+
bigdecimal?: typeof Expression | undefined;
|
|
138
|
+
char?: typeof Expression | undefined;
|
|
139
|
+
nchar?: typeof Expression | undefined;
|
|
140
|
+
varchar?: typeof Expression | undefined;
|
|
141
|
+
nvarchar?: typeof Expression | undefined;
|
|
142
|
+
bpchar?: typeof Expression | undefined;
|
|
143
|
+
text?: typeof Expression | undefined;
|
|
144
|
+
mediumtext?: typeof Expression | undefined;
|
|
145
|
+
longtext?: typeof Expression | undefined;
|
|
146
|
+
blob?: typeof Expression | undefined;
|
|
147
|
+
mediumblob?: typeof Expression | undefined;
|
|
148
|
+
longblob?: typeof Expression | undefined;
|
|
149
|
+
tinyblob?: typeof Expression | undefined;
|
|
150
|
+
tinytext?: typeof Expression | undefined;
|
|
151
|
+
name?: typeof Expression | undefined;
|
|
152
|
+
binary?: typeof Expression | undefined;
|
|
153
|
+
varbinary?: typeof Expression | undefined;
|
|
154
|
+
json?: typeof Expression | undefined;
|
|
155
|
+
jsonb?: typeof Expression | undefined;
|
|
156
|
+
time?: typeof Expression | undefined;
|
|
157
|
+
timetz?: typeof Expression | undefined;
|
|
158
|
+
timeNs?: typeof Expression | undefined;
|
|
159
|
+
timestamp?: typeof Expression | undefined;
|
|
160
|
+
timestamptz?: typeof Expression | undefined;
|
|
161
|
+
timestampltz?: typeof Expression | undefined;
|
|
162
|
+
timestampntz?: typeof Expression | undefined;
|
|
163
|
+
timestampS?: typeof Expression | undefined;
|
|
164
|
+
timestampMs?: typeof Expression | undefined;
|
|
165
|
+
timestampNs?: typeof Expression | undefined;
|
|
166
|
+
datetime?: typeof Expression | undefined;
|
|
167
|
+
datetime2?: typeof Expression | undefined;
|
|
168
|
+
datetime64?: typeof Expression | undefined;
|
|
169
|
+
smalldatetime?: typeof Expression | undefined;
|
|
170
|
+
date?: typeof Expression | undefined;
|
|
171
|
+
date32?: typeof Expression | undefined;
|
|
172
|
+
int4range?: typeof Expression | undefined;
|
|
173
|
+
int4multirange?: typeof Expression | undefined;
|
|
174
|
+
int8range?: typeof Expression | undefined;
|
|
175
|
+
int8multirange?: typeof Expression | undefined;
|
|
176
|
+
numrange?: typeof Expression | undefined;
|
|
177
|
+
nummultirange?: typeof Expression | undefined;
|
|
178
|
+
tsrange?: typeof Expression | undefined;
|
|
179
|
+
tsmultirange?: typeof Expression | undefined;
|
|
180
|
+
tstzrange?: typeof Expression | undefined;
|
|
181
|
+
tstzmultirange?: typeof Expression | undefined;
|
|
182
|
+
daterange?: typeof Expression | undefined;
|
|
183
|
+
datemultirange?: typeof Expression | undefined;
|
|
184
|
+
uuid?: typeof Expression | undefined;
|
|
185
|
+
geography?: typeof Expression | undefined;
|
|
186
|
+
geographypoint?: typeof Expression | undefined;
|
|
187
|
+
nullable?: typeof Expression | undefined;
|
|
188
|
+
geometry?: typeof Expression | undefined;
|
|
189
|
+
point?: typeof Expression | undefined;
|
|
190
|
+
ring?: typeof Expression | undefined;
|
|
191
|
+
linestring?: typeof Expression | undefined;
|
|
192
|
+
localtime?: typeof Expression | undefined;
|
|
193
|
+
localtimestamp?: typeof Expression | undefined;
|
|
194
|
+
systimestamp?: typeof Expression | undefined;
|
|
195
|
+
multilinestring?: typeof Expression | undefined;
|
|
196
|
+
polygon?: typeof Expression | undefined;
|
|
197
|
+
multipolygon?: typeof Expression | undefined;
|
|
198
|
+
hllsketch?: typeof Expression | undefined;
|
|
199
|
+
hstore?: typeof Expression | undefined;
|
|
200
|
+
super?: typeof Expression | undefined;
|
|
201
|
+
serial?: typeof Expression | undefined;
|
|
202
|
+
smallserial?: typeof Expression | undefined;
|
|
203
|
+
bigserial?: typeof Expression | undefined;
|
|
204
|
+
xml?: typeof Expression | undefined;
|
|
205
|
+
year?: typeof Expression | undefined;
|
|
206
|
+
userdefined?: typeof Expression | undefined;
|
|
207
|
+
money?: typeof Expression | undefined;
|
|
208
|
+
smallmoney?: typeof Expression | undefined;
|
|
209
|
+
rowversion?: typeof Expression | undefined;
|
|
210
|
+
image?: typeof Expression | undefined;
|
|
211
|
+
variant?: typeof Expression | undefined;
|
|
212
|
+
object?: typeof Expression | undefined;
|
|
213
|
+
inet?: typeof Expression | undefined;
|
|
214
|
+
ipaddress?: typeof Expression | undefined;
|
|
215
|
+
ipprefix?: typeof Expression | undefined;
|
|
216
|
+
ipv4?: typeof Expression | undefined;
|
|
217
|
+
ipv6?: typeof Expression | undefined;
|
|
218
|
+
enum?: typeof Expression | undefined;
|
|
219
|
+
enum8?: typeof Expression | undefined;
|
|
220
|
+
enum16?: typeof Expression | undefined;
|
|
221
|
+
fixedstring?: typeof Expression | undefined;
|
|
222
|
+
lowcardinality?: typeof Expression | undefined;
|
|
223
|
+
nested?: typeof Expression | undefined;
|
|
224
|
+
aggregatefunction?: typeof Expression | undefined;
|
|
225
|
+
simpleaggregatefunction?: typeof Expression | undefined;
|
|
226
|
+
tdigest?: typeof Expression | undefined;
|
|
227
|
+
unknown?: typeof Expression | undefined;
|
|
228
|
+
vector?: typeof Expression | undefined;
|
|
229
|
+
dynamic?: typeof Expression | undefined;
|
|
230
|
+
void?: typeof Expression | undefined;
|
|
231
|
+
alias?: typeof Expression | undefined;
|
|
232
|
+
alter?: typeof Expression | undefined;
|
|
233
|
+
all?: typeof Expression | undefined;
|
|
234
|
+
anti?: typeof Expression | undefined;
|
|
235
|
+
any?: typeof Expression | undefined;
|
|
236
|
+
apply?: typeof Expression | undefined;
|
|
237
|
+
array?: typeof Expression | undefined;
|
|
238
|
+
asc?: typeof Expression | undefined;
|
|
239
|
+
asof?: typeof Expression | undefined;
|
|
240
|
+
attach?: typeof Expression | undefined;
|
|
241
|
+
autoIncrement?: typeof Expression | undefined;
|
|
242
|
+
begin?: typeof Expression | undefined;
|
|
243
|
+
between?: typeof Expression | undefined;
|
|
244
|
+
bulkCollectInto?: typeof Expression | undefined;
|
|
245
|
+
cache?: typeof Expression | undefined;
|
|
246
|
+
case?: typeof Expression | undefined;
|
|
247
|
+
characterSet?: typeof Expression | undefined;
|
|
248
|
+
clusterBy?: typeof Expression | undefined;
|
|
249
|
+
collate?: typeof Expression | undefined;
|
|
250
|
+
command?: typeof Expression | undefined;
|
|
251
|
+
comment?: typeof Expression | undefined;
|
|
252
|
+
commit?: typeof Expression | undefined;
|
|
253
|
+
connectBy?: typeof Expression | undefined;
|
|
254
|
+
constraint?: typeof Expression | undefined;
|
|
255
|
+
copy?: typeof Expression | undefined;
|
|
256
|
+
create?: typeof Expression | undefined;
|
|
257
|
+
cross?: typeof Expression | undefined;
|
|
258
|
+
cube?: typeof Expression | undefined;
|
|
259
|
+
currentDate?: typeof Expression | undefined;
|
|
260
|
+
currentDatetime?: typeof Expression | undefined;
|
|
261
|
+
currentSchema?: typeof Expression | undefined;
|
|
262
|
+
currentTime?: typeof Expression | undefined;
|
|
263
|
+
currentTimestamp?: typeof Expression | undefined;
|
|
264
|
+
currentUser?: typeof Expression | undefined;
|
|
265
|
+
currentRole?: typeof Expression | undefined;
|
|
266
|
+
currentCatalog?: typeof Expression | undefined;
|
|
267
|
+
declare?: typeof Expression | undefined;
|
|
268
|
+
default?: typeof Expression | undefined;
|
|
269
|
+
delete?: typeof Expression | undefined;
|
|
270
|
+
desc?: typeof Expression | undefined;
|
|
271
|
+
describe?: typeof Expression | undefined;
|
|
272
|
+
detach?: typeof Expression | undefined;
|
|
273
|
+
dictionary?: typeof Expression | undefined;
|
|
274
|
+
distinct?: typeof Expression | undefined;
|
|
275
|
+
distributeBy?: typeof Expression | undefined;
|
|
276
|
+
div?: typeof Expression | undefined;
|
|
277
|
+
drop?: typeof Expression | undefined;
|
|
278
|
+
else?: typeof Expression | undefined;
|
|
279
|
+
end?: typeof Expression | undefined;
|
|
280
|
+
escape?: typeof Expression | undefined;
|
|
281
|
+
except?: typeof Expression | undefined;
|
|
282
|
+
execute?: typeof Expression | undefined;
|
|
283
|
+
exists?: typeof Expression | undefined;
|
|
284
|
+
false?: typeof Expression | undefined;
|
|
285
|
+
fetch?: typeof Expression | undefined;
|
|
286
|
+
file?: typeof Expression | undefined;
|
|
287
|
+
fileFormat?: typeof Expression | undefined;
|
|
288
|
+
filter?: typeof Expression | undefined;
|
|
289
|
+
final?: typeof Expression | undefined;
|
|
290
|
+
first?: typeof Expression | undefined;
|
|
291
|
+
for?: typeof Expression | undefined;
|
|
292
|
+
force?: typeof Expression | undefined;
|
|
293
|
+
foreignKey?: typeof Expression | undefined;
|
|
294
|
+
format?: typeof Expression | undefined;
|
|
295
|
+
from?: typeof Expression | undefined;
|
|
296
|
+
full?: typeof Expression | undefined;
|
|
297
|
+
function?: typeof Expression | undefined;
|
|
298
|
+
get?: typeof Expression | undefined;
|
|
299
|
+
glob?: typeof Expression | undefined;
|
|
300
|
+
global?: typeof Expression | undefined;
|
|
301
|
+
grant?: typeof Expression | undefined;
|
|
302
|
+
groupBy?: typeof Expression | undefined;
|
|
303
|
+
groupingSets?: typeof Expression | undefined;
|
|
304
|
+
having?: typeof Expression | undefined;
|
|
305
|
+
hint?: typeof Expression | undefined;
|
|
306
|
+
ignore?: typeof Expression | undefined;
|
|
307
|
+
ilike?: typeof Expression | undefined;
|
|
308
|
+
in?: typeof Expression | undefined;
|
|
309
|
+
index?: typeof Expression | undefined;
|
|
310
|
+
indexedBy?: typeof Expression | undefined;
|
|
311
|
+
inner?: typeof Expression | undefined;
|
|
312
|
+
insert?: typeof Expression | undefined;
|
|
313
|
+
install?: typeof Expression | undefined;
|
|
314
|
+
intersect?: typeof Expression | undefined;
|
|
315
|
+
interval?: typeof Expression | undefined;
|
|
316
|
+
into?: typeof Expression | undefined;
|
|
317
|
+
introducer?: typeof Expression | undefined;
|
|
318
|
+
irlike?: typeof Expression | undefined;
|
|
319
|
+
is?: typeof Expression | undefined;
|
|
320
|
+
isnull?: typeof Expression | undefined;
|
|
321
|
+
join?: typeof Expression | undefined;
|
|
322
|
+
joinMarker?: typeof Expression | undefined;
|
|
323
|
+
keep?: typeof Expression | undefined;
|
|
324
|
+
key?: typeof Expression | undefined;
|
|
325
|
+
kill?: typeof Expression | undefined;
|
|
326
|
+
language?: typeof Expression | undefined;
|
|
327
|
+
lateral?: typeof Expression | undefined;
|
|
328
|
+
left?: typeof Expression | undefined;
|
|
329
|
+
like?: typeof Expression | undefined;
|
|
330
|
+
limit?: typeof Expression | undefined;
|
|
331
|
+
list?: typeof Expression | undefined;
|
|
332
|
+
load?: typeof Expression | undefined;
|
|
333
|
+
lock?: typeof Expression | undefined;
|
|
334
|
+
map?: typeof Expression | undefined;
|
|
335
|
+
match?: typeof Expression | undefined;
|
|
336
|
+
matchCondition?: typeof Expression | undefined;
|
|
337
|
+
matchRecognize?: typeof Expression | undefined;
|
|
338
|
+
memberOf?: typeof Expression | undefined;
|
|
339
|
+
merge?: typeof Expression | undefined;
|
|
340
|
+
mod?: typeof Expression | undefined;
|
|
341
|
+
model?: typeof Expression | undefined;
|
|
342
|
+
natural?: typeof Expression | undefined;
|
|
343
|
+
next?: typeof Expression | undefined;
|
|
344
|
+
nothing?: typeof Expression | undefined;
|
|
345
|
+
notnull?: typeof Expression | undefined;
|
|
346
|
+
null?: typeof Expression | undefined;
|
|
347
|
+
objectIdentifier?: typeof Expression | undefined;
|
|
348
|
+
offset?: typeof Expression | undefined;
|
|
349
|
+
on?: typeof Expression | undefined;
|
|
350
|
+
only?: typeof Expression | undefined;
|
|
351
|
+
operator?: typeof Expression | undefined;
|
|
352
|
+
orderBy?: typeof Expression | undefined;
|
|
353
|
+
orderSiblingsBy?: typeof Expression | undefined;
|
|
354
|
+
ordered?: typeof Expression | undefined;
|
|
355
|
+
ordinality?: typeof Expression | undefined;
|
|
356
|
+
out?: typeof Expression | undefined;
|
|
357
|
+
inout?: typeof Expression | undefined;
|
|
358
|
+
outer?: typeof Expression | undefined;
|
|
359
|
+
over?: typeof Expression | undefined;
|
|
360
|
+
overlaps?: typeof Expression | undefined;
|
|
361
|
+
overwrite?: typeof Expression | undefined;
|
|
362
|
+
partition?: typeof Expression | undefined;
|
|
363
|
+
partitionBy?: typeof Expression | undefined;
|
|
364
|
+
percent?: typeof Expression | undefined;
|
|
365
|
+
pivot?: typeof Expression | undefined;
|
|
366
|
+
placeholder?: typeof Expression | undefined;
|
|
367
|
+
positional?: typeof Expression | undefined;
|
|
368
|
+
pragma?: typeof Expression | undefined;
|
|
369
|
+
prewhere?: typeof Expression | undefined;
|
|
370
|
+
primaryKey?: typeof Expression | undefined;
|
|
371
|
+
procedure?: typeof Expression | undefined;
|
|
372
|
+
properties?: typeof Expression | undefined;
|
|
373
|
+
pseudoType?: typeof Expression | undefined;
|
|
374
|
+
put?: typeof Expression | undefined;
|
|
375
|
+
qualify?: typeof Expression | undefined;
|
|
376
|
+
quote?: typeof Expression | undefined;
|
|
377
|
+
qdcolon?: typeof Expression | undefined;
|
|
378
|
+
range?: typeof Expression | undefined;
|
|
379
|
+
recursive?: typeof Expression | undefined;
|
|
380
|
+
refresh?: typeof Expression | undefined;
|
|
381
|
+
rename?: typeof Expression | undefined;
|
|
382
|
+
replace?: typeof Expression | undefined;
|
|
383
|
+
returning?: typeof Expression | undefined;
|
|
384
|
+
revoke?: typeof Expression | undefined;
|
|
385
|
+
references?: typeof Expression | undefined;
|
|
386
|
+
right?: typeof Expression | undefined;
|
|
387
|
+
rlike?: typeof Expression | undefined;
|
|
388
|
+
rollback?: typeof Expression | undefined;
|
|
389
|
+
rollup?: typeof Expression | undefined;
|
|
390
|
+
row?: typeof Expression | undefined;
|
|
391
|
+
rows?: typeof Expression | undefined;
|
|
392
|
+
select?: typeof Expression | undefined;
|
|
393
|
+
semi?: typeof Expression | undefined;
|
|
394
|
+
separator?: typeof Expression | undefined;
|
|
395
|
+
sequence?: typeof Expression | undefined;
|
|
396
|
+
serdeProperties?: typeof Expression | undefined;
|
|
397
|
+
set?: typeof Expression | undefined;
|
|
398
|
+
settings?: typeof Expression | undefined;
|
|
399
|
+
show?: typeof Expression | undefined;
|
|
400
|
+
similarTo?: typeof Expression | undefined;
|
|
401
|
+
some?: typeof Expression | undefined;
|
|
402
|
+
sortBy?: typeof Expression | undefined;
|
|
403
|
+
soundsLike?: typeof Expression | undefined;
|
|
404
|
+
startWith?: typeof Expression | undefined;
|
|
405
|
+
storageIntegration?: typeof Expression | undefined;
|
|
406
|
+
straightJoin?: typeof Expression | undefined;
|
|
407
|
+
struct?: typeof Expression | undefined;
|
|
408
|
+
summarize?: typeof Expression | undefined;
|
|
409
|
+
tableSample?: typeof Expression | undefined;
|
|
410
|
+
tag?: typeof Expression | undefined;
|
|
411
|
+
temporary?: typeof Expression | undefined;
|
|
412
|
+
top?: typeof Expression | undefined;
|
|
413
|
+
then?: typeof Expression | undefined;
|
|
414
|
+
true?: typeof Expression | undefined;
|
|
415
|
+
truncate?: typeof Expression | undefined;
|
|
416
|
+
uncache?: typeof Expression | undefined;
|
|
417
|
+
union?: typeof Expression | undefined;
|
|
418
|
+
unnest?: typeof Expression | undefined;
|
|
419
|
+
unpivot?: typeof Expression | undefined;
|
|
420
|
+
update?: typeof Expression | undefined;
|
|
421
|
+
use?: typeof Expression | undefined;
|
|
422
|
+
using?: typeof Expression | undefined;
|
|
423
|
+
values?: typeof Expression | undefined;
|
|
424
|
+
variadic?: typeof Expression | undefined;
|
|
425
|
+
view?: typeof Expression | undefined;
|
|
426
|
+
semanticView?: typeof Expression | undefined;
|
|
427
|
+
volatile?: typeof Expression | undefined;
|
|
428
|
+
when?: typeof Expression | undefined;
|
|
429
|
+
where?: typeof Expression | undefined;
|
|
430
|
+
window?: typeof Expression | undefined;
|
|
431
|
+
with?: typeof Expression | undefined;
|
|
432
|
+
unique?: typeof Expression | undefined;
|
|
433
|
+
utcDate?: typeof Expression | undefined;
|
|
434
|
+
utcTime?: typeof Expression | undefined;
|
|
435
|
+
utcTimestamp?: typeof Expression | undefined;
|
|
436
|
+
versionSnapshot?: typeof Expression | undefined;
|
|
437
|
+
timestampSnapshot?: typeof Expression | undefined;
|
|
438
|
+
option?: typeof Expression | undefined;
|
|
439
|
+
sink?: typeof Expression | undefined;
|
|
440
|
+
source?: typeof Expression | undefined;
|
|
441
|
+
analyze?: typeof Expression | undefined;
|
|
442
|
+
namespace?: typeof Expression | undefined;
|
|
443
|
+
export?: typeof Expression | undefined;
|
|
444
|
+
hiveTokenStream?: typeof Expression | undefined;
|
|
445
|
+
};
|
|
446
|
+
static MODIFIERS_ATTACHED_TO_SET_OP: boolean;
|
|
447
|
+
static INTERVAL_SPANS: boolean;
|
|
448
|
+
static OPTIONAL_ALIAS_TOKEN_CTE: boolean;
|
|
449
|
+
static JOINS_HAVE_EQUAL_PRECEDENCE: boolean;
|
|
450
|
+
static get FUNCTIONS(): Record<string, (args: Expression[], options: {
|
|
451
|
+
dialect: Dialect;
|
|
452
|
+
}) => Expression>;
|
|
453
|
+
static get AGG_FUNCTIONS(): Set<string>;
|
|
454
|
+
static get AGG_FUNCTIONS_SUFFIXES(): string[];
|
|
455
|
+
static get FUNC_TOKENS(): Set<TokenType>;
|
|
456
|
+
static get RESERVED_TOKENS(): Set<TokenType>;
|
|
457
|
+
static get AGG_FUNC_MAPPING(): Record<string, [string, string]>;
|
|
458
|
+
static get FUNCTION_PARSERS(): Record<string, (this: Parser) => Expression>;
|
|
459
|
+
static get PROPERTY_PARSERS(): Record<string, (this: Parser) => Expression>;
|
|
460
|
+
static get NO_PAREN_FUNCTION_PARSERS(): Partial<Record<string, (this: Parser) => Expression | undefined>>;
|
|
461
|
+
static get RANGE_PARSERS(): Partial<Record<TokenType, (this: Parser, this_: Expression) => Expression | undefined>>;
|
|
462
|
+
static get COLUMN_OPERATORS(): Partial<Record<TokenType, undefined | ((this: Parser, this_?: Expression, to?: Expression) => Expression)>>;
|
|
463
|
+
static get JOIN_KINDS(): Set<TokenType>;
|
|
464
|
+
static get TABLE_ALIAS_TOKENS(): Set<TokenType>;
|
|
465
|
+
static get ALIAS_TOKENS(): Set<TokenType>;
|
|
466
|
+
static LOG_DEFAULTS_TO_LN: boolean;
|
|
467
|
+
static get QUERY_MODIFIER_PARSERS(): Record<string, (this: Parser) => [string, string | Expression | Expression[] | undefined]>;
|
|
468
|
+
static get CONSTRAINT_PARSERS(): Record<string, (this: Parser) => Expression>;
|
|
469
|
+
static get ALTER_PARSERS(): Record<string, (this: Parser) => Expression>;
|
|
470
|
+
static get SCHEMA_UNNAMED_CONSTRAINTS(): Set<string>;
|
|
471
|
+
static get PLACEHOLDER_PARSERS(): Record<string, (this: Parser) => Expression | undefined>;
|
|
472
|
+
parseEngineProperty(): EnginePropertyExpr;
|
|
473
|
+
parseUserDefinedFunctionExpression(): Expression | undefined;
|
|
474
|
+
parseTypes(options?: {
|
|
475
|
+
checkFunc?: boolean;
|
|
476
|
+
schema?: boolean;
|
|
477
|
+
allowIdentifiers?: boolean;
|
|
478
|
+
}): Expression | undefined;
|
|
479
|
+
parseExtract(): ExtractExpr | AnonymousExpr;
|
|
480
|
+
parseAssignment(): Expression | undefined;
|
|
481
|
+
/**
|
|
482
|
+
* Parse a placeholder expression like SELECT {abc: UInt32} or FROM {table: Identifier}
|
|
483
|
+
*/
|
|
484
|
+
parseQueryParameter(): Expression | undefined;
|
|
485
|
+
parseBracket(thisNode?: Expression): Expression | undefined;
|
|
486
|
+
parseIn(thisNode?: Expression, options?: {
|
|
487
|
+
isGlobal?: boolean;
|
|
488
|
+
[index: string]: unknown;
|
|
489
|
+
}): InExpr;
|
|
490
|
+
parseGlobalIn(thisNode?: Expression): NotExpr | InExpr | undefined;
|
|
491
|
+
parseTable(options?: {
|
|
492
|
+
schema?: boolean;
|
|
493
|
+
joins?: boolean;
|
|
494
|
+
aliasTokens?: Set<TokenType>;
|
|
495
|
+
parseBracket?: boolean;
|
|
496
|
+
isDbReference?: boolean;
|
|
497
|
+
parsePartition?: boolean;
|
|
498
|
+
consumePipe?: boolean;
|
|
499
|
+
}): Expression | undefined;
|
|
500
|
+
parsePosition(_options?: {
|
|
501
|
+
haystackFirst?: boolean;
|
|
502
|
+
}): StrPositionExpr;
|
|
503
|
+
parseCte(): CteExpr | undefined;
|
|
504
|
+
parseJoinParts(): {
|
|
505
|
+
method: Token | undefined;
|
|
506
|
+
side: Token | undefined;
|
|
507
|
+
kind: Token | undefined;
|
|
508
|
+
};
|
|
509
|
+
parseJoin(options?: {
|
|
510
|
+
skipJoinToken?: boolean;
|
|
511
|
+
parseBracket?: boolean;
|
|
512
|
+
}): JoinExpr | undefined;
|
|
513
|
+
parseFunction(options?: {
|
|
514
|
+
functions?: Record<string, (args: Expression[], options: {
|
|
515
|
+
dialect: Dialect;
|
|
516
|
+
}) => Expression>;
|
|
517
|
+
anonymous?: boolean;
|
|
518
|
+
optionalParens?: boolean;
|
|
519
|
+
anyToken?: boolean;
|
|
520
|
+
}): Expression | undefined;
|
|
521
|
+
parseFuncParams(thisNode?: FuncExpr): Expression[] | undefined;
|
|
522
|
+
parseQuantile(): QuantileExpr;
|
|
523
|
+
parseWrappedIdVars(): Expression[];
|
|
524
|
+
parsePrimaryKey(options?: {
|
|
525
|
+
wrappedOptional?: boolean;
|
|
526
|
+
inProps?: boolean;
|
|
527
|
+
namedPrimaryKey?: boolean;
|
|
528
|
+
}): PrimaryKeyColumnConstraintExpr | PrimaryKeyExpr;
|
|
529
|
+
parseOnProperty(): Expression | undefined;
|
|
530
|
+
parseIndexConstraint(): IndexColumnConstraintExpr;
|
|
531
|
+
parsePartition(): PartitionExpr | undefined;
|
|
532
|
+
parseAlterTableReplace(): Expression | undefined;
|
|
533
|
+
parseProjectionDef(): ProjectionDefExpr | undefined;
|
|
534
|
+
parseConstraint(): Expression | undefined;
|
|
535
|
+
parseAlias(thisNode: Expression | undefined, options?: {
|
|
536
|
+
explicit?: boolean;
|
|
537
|
+
}): Expression | undefined;
|
|
538
|
+
parseExpression(): Expression | undefined;
|
|
539
|
+
parseColumns(): Expression;
|
|
540
|
+
parseValue(options?: {
|
|
541
|
+
values?: boolean;
|
|
542
|
+
}): TupleExpr | undefined;
|
|
543
|
+
parsePartitionedBy(): PartitionedByPropertyExpr;
|
|
544
|
+
}
|
|
545
|
+
declare class ClickHouseGenerator extends Generator {
|
|
546
|
+
static get AFTER_HAVING_MODIFIER_TRANSFORMS(): Map<string, (this: Generator, e: Expression) => string>;
|
|
547
|
+
static SUPPORTS_DECODE_CASE: boolean;
|
|
548
|
+
static readonly SELECT_KINDS: string[];
|
|
549
|
+
static TRY_SUPPORTED: boolean;
|
|
550
|
+
static SUPPORTS_UESCAPE: boolean;
|
|
551
|
+
static QUERY_HINTS: boolean;
|
|
552
|
+
static get STRUCT_DELIMITER(): string[];
|
|
553
|
+
static NVL2_SUPPORTED: boolean;
|
|
554
|
+
static TABLESAMPLE_REQUIRES_PARENS: boolean;
|
|
555
|
+
static TABLESAMPLE_SIZE_IS_ROWS: boolean;
|
|
556
|
+
static TABLESAMPLE_KEYWORDS: string;
|
|
557
|
+
static LAST_DAY_SUPPORTS_DATE_PART: boolean;
|
|
558
|
+
static CAN_IMPLEMENT_ARRAY_ANY: boolean;
|
|
559
|
+
static SUPPORTS_TO_NUMBER: boolean;
|
|
560
|
+
static JOIN_HINTS: boolean;
|
|
561
|
+
static TABLE_HINTS: boolean;
|
|
562
|
+
static GROUPINGS_SEP: string;
|
|
563
|
+
static SET_OP_MODIFIERS: boolean;
|
|
564
|
+
static ARRAY_SIZE_NAME: string;
|
|
565
|
+
static WRAP_DERIVED_VALUES: boolean;
|
|
566
|
+
static get STRING_TYPE_MAPPING(): Map<DataTypeExprKind, string>;
|
|
567
|
+
static get SUPPORTED_JSON_PATH_PARTS(): Set<typeof Expression>;
|
|
568
|
+
static get TYPE_MAPPING(): Map<string, string>;
|
|
569
|
+
static get ORIGINAL_TRANSFORMS(): Map<typeof Expression, (this: Generator, e: any) => string>;
|
|
570
|
+
static get PROPERTIES_LOCATION(): Map<typeof Expression, PropertiesLocation>;
|
|
571
|
+
static get ON_CLUSTER_TARGETS(): Set<string>;
|
|
572
|
+
static get NON_NULLABLE_TYPES(): Set<DataTypeExprKind>;
|
|
573
|
+
offsetSql(expression: OffsetExpr): string;
|
|
574
|
+
strToDateSql(expression: StrToDateExpr): string;
|
|
575
|
+
castSql(expression: CastExpr, options?: {
|
|
576
|
+
safePrefix?: string;
|
|
577
|
+
}): string;
|
|
578
|
+
tryCastSql(expression: TryCastExpr): string;
|
|
579
|
+
jsonPathSubscriptSql(expression: JsonPathSubscriptExpr): string;
|
|
580
|
+
likePropertySql(expression: LikePropertyExpr): string;
|
|
581
|
+
anyToHas(expression: EqExpr | NeqExpr, defaultCallback: (e: EqExpr | NeqExpr) => string, options?: {
|
|
582
|
+
prefix?: string;
|
|
583
|
+
}): string;
|
|
584
|
+
eqSql(expression: EqExpr): string;
|
|
585
|
+
neqSql(expression: NeqExpr): string;
|
|
586
|
+
regexpILikeSql(expression: RegexpILikeExpr): string;
|
|
587
|
+
dataTypeSql(expression: DataTypeExpr): string;
|
|
588
|
+
cteSql(expression: CteExpr): string;
|
|
589
|
+
afterLimitModifiers(expression: Expression): string[];
|
|
590
|
+
placeholderSql(expression: PlaceholderExpr): string;
|
|
591
|
+
onClusterSql(expression: OnClusterExpr): string;
|
|
592
|
+
createableSql(expression: CreateExpr, locations: Map<PropertiesLocation, Expression[]>): string;
|
|
593
|
+
createSql(expression: CreateExpr): string;
|
|
594
|
+
prewhereSql(expression: PreWhereExpr): string;
|
|
595
|
+
indexColumnConstraintSql(expression: IndexColumnConstraintExpr): string;
|
|
596
|
+
partitionSql(expression: PartitionExpr): string;
|
|
597
|
+
partitionIdSql(expression: PartitionIdExpr): string;
|
|
598
|
+
replacePartitionSql(expression: ReplacePartitionExpr): string;
|
|
599
|
+
projectionDefSql(expression: ProjectionDefExpr): string;
|
|
600
|
+
isSql(expression: IsExpr): string;
|
|
601
|
+
inSql(expression: InExpr): string;
|
|
602
|
+
notSql(expression: NotExpr): string;
|
|
603
|
+
valuesSql(expression: ValuesExpr, options?: {
|
|
604
|
+
valuesAsTable?: boolean;
|
|
605
|
+
}): string;
|
|
606
|
+
}
|
|
607
|
+
declare class ClickHouse extends Dialect {
|
|
608
|
+
static DIALECT_NAME: Dialects;
|
|
609
|
+
static INDEX_OFFSET: number;
|
|
610
|
+
static get NORMALIZE_FUNCTIONS(): NormalizeFunctions;
|
|
611
|
+
static get NULL_ORDERING(): NullOrdering;
|
|
612
|
+
static SUPPORTS_USER_DEFINED_TYPES: boolean;
|
|
613
|
+
static SAFE_DIVISION: boolean;
|
|
614
|
+
static LOG_BASE_FIRST: boolean | undefined;
|
|
615
|
+
static FORCE_EARLY_ALIAS_REF_EXPANSION: boolean;
|
|
616
|
+
static PRESERVE_ORIGINAL_NAMES: boolean;
|
|
617
|
+
static NUMBERS_CAN_BE_UNDERSCORE_SEPARATED: boolean;
|
|
618
|
+
static IDENTIFIERS_CAN_START_WITH_DIGIT: boolean;
|
|
619
|
+
static HEX_STRING_IS_INTEGER_TYPE: boolean;
|
|
620
|
+
static get NORMALIZATION_STRATEGY(): NormalizationStrategy;
|
|
621
|
+
static get UNESCAPED_SEQUENCES(): {
|
|
622
|
+
'\\0': string;
|
|
623
|
+
};
|
|
624
|
+
static get CREATABLE_KIND_MAPPING(): {
|
|
625
|
+
DATABASE: string;
|
|
626
|
+
};
|
|
627
|
+
static get SET_OP_DISTINCT_BY_DEFAULT(): Partial<Record<ExpressionKey, boolean>>;
|
|
628
|
+
generateValuesAliases(expression: ValuesExpr): IdentifierExpr[];
|
|
629
|
+
static Tokenizer: typeof ClickHouseTokenizer;
|
|
630
|
+
static Parser: typeof ClickHouseParser;
|
|
631
|
+
static Generator: typeof ClickHouseGenerator;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
export { ClickHouse, ClickHouseGenerator, unixToTimeSql };
|