@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,539 @@
|
|
|
1
|
+
import { c as Dialect, d as Dialects, aH as NullOrdering, a0 as NormalizationStrategy, aJ as IdentifierExpr, m as Tokenizer, _ as TokenPair, l as TokenType, i as Parser, E as Expression, $ as DataTypeExprKind, cF as JsonExistsExpr, cG as IntoExpr, G as Generator, aj as PropertiesLocation, cH as CurrentTimestampExpr, a$ as OffsetExpr, cI as QueryOptionExpr, cJ as CoalesceExpr, cK as HintExpr, cL as IsAsciiExpr, cM as IntervalExpr, bf as ColumnDefExpr } from '../tokens-VcMD09XM.js';
|
|
2
|
+
|
|
3
|
+
declare class OracleTokenizer extends Tokenizer {
|
|
4
|
+
static get VAR_SINGLE_TOKENS(): Set<string>;
|
|
5
|
+
static get UNICODE_STRINGS(): TokenPair[];
|
|
6
|
+
static NESTED_COMMENTS: boolean;
|
|
7
|
+
static get ORIGINAL_KEYWORDS(): Record<string, TokenType>;
|
|
8
|
+
}
|
|
9
|
+
declare class OracleParser extends Parser {
|
|
10
|
+
static get ID_VAR_TOKENS(): Set<TokenType>;
|
|
11
|
+
static get NO_PAREN_FUNCTIONS(): {
|
|
12
|
+
lParen?: typeof Expression | undefined;
|
|
13
|
+
rParen?: typeof Expression | undefined;
|
|
14
|
+
lBracket?: typeof Expression | undefined;
|
|
15
|
+
rBracket?: typeof Expression | undefined;
|
|
16
|
+
lBrace?: typeof Expression | undefined;
|
|
17
|
+
rBrace?: typeof Expression | undefined;
|
|
18
|
+
comma?: typeof Expression | undefined;
|
|
19
|
+
dot?: typeof Expression | undefined;
|
|
20
|
+
dash?: typeof Expression | undefined;
|
|
21
|
+
plus?: typeof Expression | undefined;
|
|
22
|
+
colon?: typeof Expression | undefined;
|
|
23
|
+
dotcolon?: typeof Expression | undefined;
|
|
24
|
+
dcolon?: typeof Expression | undefined;
|
|
25
|
+
dcolondollar?: typeof Expression | undefined;
|
|
26
|
+
dcolonpercent?: typeof Expression | undefined;
|
|
27
|
+
dcolonqmark?: typeof Expression | undefined;
|
|
28
|
+
dqmark?: typeof Expression | undefined;
|
|
29
|
+
semicolon?: typeof Expression | undefined;
|
|
30
|
+
star?: typeof Expression | undefined;
|
|
31
|
+
backslash?: typeof Expression | undefined;
|
|
32
|
+
slash?: typeof Expression | undefined;
|
|
33
|
+
lt?: typeof Expression | undefined;
|
|
34
|
+
lte?: typeof Expression | undefined;
|
|
35
|
+
gt?: typeof Expression | undefined;
|
|
36
|
+
gte?: typeof Expression | undefined;
|
|
37
|
+
not?: typeof Expression | undefined;
|
|
38
|
+
eq?: typeof Expression | undefined;
|
|
39
|
+
neq?: typeof Expression | undefined;
|
|
40
|
+
nullsafeEq?: typeof Expression | undefined;
|
|
41
|
+
colonEq?: typeof Expression | undefined;
|
|
42
|
+
colonGt?: typeof Expression | undefined;
|
|
43
|
+
ncolonGt?: typeof Expression | undefined;
|
|
44
|
+
and?: typeof Expression | undefined;
|
|
45
|
+
or?: typeof Expression | undefined;
|
|
46
|
+
amp?: typeof Expression | undefined;
|
|
47
|
+
dpipe?: typeof Expression | undefined;
|
|
48
|
+
pipeGt?: typeof Expression | undefined;
|
|
49
|
+
pipe?: typeof Expression | undefined;
|
|
50
|
+
pipeSlash?: typeof Expression | undefined;
|
|
51
|
+
dpipeSlash?: typeof Expression | undefined;
|
|
52
|
+
caret?: typeof Expression | undefined;
|
|
53
|
+
caretAt?: typeof Expression | undefined;
|
|
54
|
+
tilde?: typeof Expression | undefined;
|
|
55
|
+
arrow?: typeof Expression | undefined;
|
|
56
|
+
darrow?: typeof Expression | undefined;
|
|
57
|
+
farrow?: typeof Expression | undefined;
|
|
58
|
+
hash?: typeof Expression | undefined;
|
|
59
|
+
hashArrow?: typeof Expression | undefined;
|
|
60
|
+
dhashArrow?: typeof Expression | undefined;
|
|
61
|
+
lrArrow?: typeof Expression | undefined;
|
|
62
|
+
dat?: typeof Expression | undefined;
|
|
63
|
+
ltAt?: typeof Expression | undefined;
|
|
64
|
+
atGt?: typeof Expression | undefined;
|
|
65
|
+
dollar?: typeof Expression | undefined;
|
|
66
|
+
parameter?: typeof Expression | undefined;
|
|
67
|
+
session?: typeof Expression | undefined;
|
|
68
|
+
sessionParameter?: typeof Expression | undefined;
|
|
69
|
+
sessionUser?: typeof Expression | undefined;
|
|
70
|
+
damp?: typeof Expression | undefined;
|
|
71
|
+
ampLt?: typeof Expression | undefined;
|
|
72
|
+
ampGt?: typeof Expression | undefined;
|
|
73
|
+
adjacent?: typeof Expression | undefined;
|
|
74
|
+
xor?: typeof Expression | undefined;
|
|
75
|
+
dstar?: typeof Expression | undefined;
|
|
76
|
+
qmarkAmp?: typeof Expression | undefined;
|
|
77
|
+
qmarkPipe?: typeof Expression | undefined;
|
|
78
|
+
hashDash?: typeof Expression | undefined;
|
|
79
|
+
exclamation?: typeof Expression | undefined;
|
|
80
|
+
uriStart?: typeof Expression | undefined;
|
|
81
|
+
blockStart?: typeof Expression | undefined;
|
|
82
|
+
blockEnd?: typeof Expression | undefined;
|
|
83
|
+
space?: typeof Expression | undefined;
|
|
84
|
+
break?: typeof Expression | undefined;
|
|
85
|
+
string?: typeof Expression | undefined;
|
|
86
|
+
number?: typeof Expression | undefined;
|
|
87
|
+
identifier?: typeof Expression | undefined;
|
|
88
|
+
database?: typeof Expression | undefined;
|
|
89
|
+
column?: typeof Expression | undefined;
|
|
90
|
+
columnDef?: typeof Expression | undefined;
|
|
91
|
+
schema?: typeof Expression | undefined;
|
|
92
|
+
table?: typeof Expression | undefined;
|
|
93
|
+
warehouse?: typeof Expression | undefined;
|
|
94
|
+
stage?: typeof Expression | undefined;
|
|
95
|
+
streamlit?: typeof Expression | undefined;
|
|
96
|
+
var?: typeof Expression | undefined;
|
|
97
|
+
bitString?: typeof Expression | undefined;
|
|
98
|
+
hexString?: typeof Expression | undefined;
|
|
99
|
+
byteString?: typeof Expression | undefined;
|
|
100
|
+
nationalString?: typeof Expression | undefined;
|
|
101
|
+
rawString?: typeof Expression | undefined;
|
|
102
|
+
heredocString?: typeof Expression | undefined;
|
|
103
|
+
unicodeString?: typeof Expression | undefined;
|
|
104
|
+
bit?: typeof Expression | undefined;
|
|
105
|
+
boolean?: typeof Expression | undefined;
|
|
106
|
+
tinyint?: typeof Expression | undefined;
|
|
107
|
+
utinyint?: typeof Expression | undefined;
|
|
108
|
+
smallint?: typeof Expression | undefined;
|
|
109
|
+
usmallint?: typeof Expression | undefined;
|
|
110
|
+
mediumint?: typeof Expression | undefined;
|
|
111
|
+
umediumint?: typeof Expression | undefined;
|
|
112
|
+
int?: typeof Expression | undefined;
|
|
113
|
+
uint?: typeof Expression | undefined;
|
|
114
|
+
bigint?: typeof Expression | undefined;
|
|
115
|
+
ubigint?: typeof Expression | undefined;
|
|
116
|
+
bignum?: typeof Expression | undefined;
|
|
117
|
+
int128?: typeof Expression | undefined;
|
|
118
|
+
uint128?: typeof Expression | undefined;
|
|
119
|
+
int256?: typeof Expression | undefined;
|
|
120
|
+
uint256?: typeof Expression | undefined;
|
|
121
|
+
float?: typeof Expression | undefined;
|
|
122
|
+
double?: typeof Expression | undefined;
|
|
123
|
+
udouble?: typeof Expression | undefined;
|
|
124
|
+
decimal?: typeof Expression | undefined;
|
|
125
|
+
decimal32?: typeof Expression | undefined;
|
|
126
|
+
decimal64?: typeof Expression | undefined;
|
|
127
|
+
decimal128?: typeof Expression | undefined;
|
|
128
|
+
decimal256?: typeof Expression | undefined;
|
|
129
|
+
decfloat?: typeof Expression | undefined;
|
|
130
|
+
udecimal?: typeof Expression | undefined;
|
|
131
|
+
bigdecimal?: typeof Expression | undefined;
|
|
132
|
+
char?: typeof Expression | undefined;
|
|
133
|
+
nchar?: typeof Expression | undefined;
|
|
134
|
+
varchar?: typeof Expression | undefined;
|
|
135
|
+
nvarchar?: typeof Expression | undefined;
|
|
136
|
+
bpchar?: typeof Expression | undefined;
|
|
137
|
+
text?: typeof Expression | undefined;
|
|
138
|
+
mediumtext?: typeof Expression | undefined;
|
|
139
|
+
longtext?: typeof Expression | undefined;
|
|
140
|
+
blob?: typeof Expression | undefined;
|
|
141
|
+
mediumblob?: typeof Expression | undefined;
|
|
142
|
+
longblob?: typeof Expression | undefined;
|
|
143
|
+
tinyblob?: typeof Expression | undefined;
|
|
144
|
+
tinytext?: typeof Expression | undefined;
|
|
145
|
+
name?: typeof Expression | undefined;
|
|
146
|
+
binary?: typeof Expression | undefined;
|
|
147
|
+
varbinary?: typeof Expression | undefined;
|
|
148
|
+
json?: typeof Expression | undefined;
|
|
149
|
+
jsonb?: typeof Expression | undefined;
|
|
150
|
+
time?: typeof Expression | undefined;
|
|
151
|
+
timetz?: typeof Expression | undefined;
|
|
152
|
+
timeNs?: typeof Expression | undefined;
|
|
153
|
+
timestamp?: typeof Expression | undefined;
|
|
154
|
+
timestamptz?: typeof Expression | undefined;
|
|
155
|
+
timestampltz?: typeof Expression | undefined;
|
|
156
|
+
timestampntz?: typeof Expression | undefined;
|
|
157
|
+
timestampS?: typeof Expression | undefined;
|
|
158
|
+
timestampMs?: typeof Expression | undefined;
|
|
159
|
+
timestampNs?: typeof Expression | undefined;
|
|
160
|
+
datetime?: typeof Expression | undefined;
|
|
161
|
+
datetime2?: typeof Expression | undefined;
|
|
162
|
+
datetime64?: typeof Expression | undefined;
|
|
163
|
+
smalldatetime?: typeof Expression | undefined;
|
|
164
|
+
date?: typeof Expression | undefined;
|
|
165
|
+
date32?: typeof Expression | undefined;
|
|
166
|
+
int4range?: typeof Expression | undefined;
|
|
167
|
+
int4multirange?: typeof Expression | undefined;
|
|
168
|
+
int8range?: typeof Expression | undefined;
|
|
169
|
+
int8multirange?: typeof Expression | undefined;
|
|
170
|
+
numrange?: typeof Expression | undefined;
|
|
171
|
+
nummultirange?: typeof Expression | undefined;
|
|
172
|
+
tsrange?: typeof Expression | undefined;
|
|
173
|
+
tsmultirange?: typeof Expression | undefined;
|
|
174
|
+
tstzrange?: typeof Expression | undefined;
|
|
175
|
+
tstzmultirange?: typeof Expression | undefined;
|
|
176
|
+
daterange?: typeof Expression | undefined;
|
|
177
|
+
datemultirange?: typeof Expression | undefined;
|
|
178
|
+
uuid?: typeof Expression | undefined;
|
|
179
|
+
geography?: typeof Expression | undefined;
|
|
180
|
+
geographypoint?: typeof Expression | undefined;
|
|
181
|
+
nullable?: typeof Expression | undefined;
|
|
182
|
+
geometry?: typeof Expression | undefined;
|
|
183
|
+
point?: typeof Expression | undefined;
|
|
184
|
+
ring?: typeof Expression | undefined;
|
|
185
|
+
linestring?: typeof Expression | undefined;
|
|
186
|
+
localtime?: typeof Expression | undefined;
|
|
187
|
+
localtimestamp?: typeof Expression | undefined;
|
|
188
|
+
systimestamp: typeof Expression;
|
|
189
|
+
multilinestring?: typeof Expression | undefined;
|
|
190
|
+
polygon?: typeof Expression | undefined;
|
|
191
|
+
multipolygon?: typeof Expression | undefined;
|
|
192
|
+
hllsketch?: typeof Expression | undefined;
|
|
193
|
+
hstore?: typeof Expression | undefined;
|
|
194
|
+
super?: typeof Expression | undefined;
|
|
195
|
+
serial?: typeof Expression | undefined;
|
|
196
|
+
smallserial?: typeof Expression | undefined;
|
|
197
|
+
bigserial?: typeof Expression | undefined;
|
|
198
|
+
xml?: typeof Expression | undefined;
|
|
199
|
+
year?: typeof Expression | undefined;
|
|
200
|
+
userdefined?: typeof Expression | undefined;
|
|
201
|
+
money?: typeof Expression | undefined;
|
|
202
|
+
smallmoney?: typeof Expression | undefined;
|
|
203
|
+
rowversion?: typeof Expression | undefined;
|
|
204
|
+
image?: typeof Expression | undefined;
|
|
205
|
+
variant?: typeof Expression | undefined;
|
|
206
|
+
object?: typeof Expression | undefined;
|
|
207
|
+
inet?: typeof Expression | undefined;
|
|
208
|
+
ipaddress?: typeof Expression | undefined;
|
|
209
|
+
ipprefix?: typeof Expression | undefined;
|
|
210
|
+
ipv4?: typeof Expression | undefined;
|
|
211
|
+
ipv6?: typeof Expression | undefined;
|
|
212
|
+
enum?: typeof Expression | undefined;
|
|
213
|
+
enum8?: typeof Expression | undefined;
|
|
214
|
+
enum16?: typeof Expression | undefined;
|
|
215
|
+
fixedstring?: typeof Expression | undefined;
|
|
216
|
+
lowcardinality?: typeof Expression | undefined;
|
|
217
|
+
nested?: typeof Expression | undefined;
|
|
218
|
+
aggregatefunction?: typeof Expression | undefined;
|
|
219
|
+
simpleaggregatefunction?: typeof Expression | undefined;
|
|
220
|
+
tdigest?: typeof Expression | undefined;
|
|
221
|
+
unknown?: typeof Expression | undefined;
|
|
222
|
+
vector?: typeof Expression | undefined;
|
|
223
|
+
dynamic?: typeof Expression | undefined;
|
|
224
|
+
void?: typeof Expression | undefined;
|
|
225
|
+
alias?: typeof Expression | undefined;
|
|
226
|
+
alter?: typeof Expression | undefined;
|
|
227
|
+
all?: typeof Expression | undefined;
|
|
228
|
+
anti?: typeof Expression | undefined;
|
|
229
|
+
any?: typeof Expression | undefined;
|
|
230
|
+
apply?: typeof Expression | undefined;
|
|
231
|
+
array?: typeof Expression | undefined;
|
|
232
|
+
asc?: typeof Expression | undefined;
|
|
233
|
+
asof?: typeof Expression | undefined;
|
|
234
|
+
attach?: typeof Expression | undefined;
|
|
235
|
+
autoIncrement?: typeof Expression | undefined;
|
|
236
|
+
begin?: typeof Expression | undefined;
|
|
237
|
+
between?: typeof Expression | undefined;
|
|
238
|
+
bulkCollectInto?: typeof Expression | undefined;
|
|
239
|
+
cache?: typeof Expression | undefined;
|
|
240
|
+
case?: typeof Expression | undefined;
|
|
241
|
+
characterSet?: typeof Expression | undefined;
|
|
242
|
+
clusterBy?: typeof Expression | undefined;
|
|
243
|
+
collate?: typeof Expression | undefined;
|
|
244
|
+
command?: typeof Expression | undefined;
|
|
245
|
+
comment?: typeof Expression | undefined;
|
|
246
|
+
commit?: typeof Expression | undefined;
|
|
247
|
+
connectBy?: typeof Expression | undefined;
|
|
248
|
+
constraint?: typeof Expression | undefined;
|
|
249
|
+
copy?: typeof Expression | undefined;
|
|
250
|
+
create?: typeof Expression | undefined;
|
|
251
|
+
cross?: typeof Expression | undefined;
|
|
252
|
+
cube?: typeof Expression | undefined;
|
|
253
|
+
currentDate?: typeof Expression | undefined;
|
|
254
|
+
currentDatetime?: typeof Expression | undefined;
|
|
255
|
+
currentSchema?: typeof Expression | undefined;
|
|
256
|
+
currentTime?: typeof Expression | undefined;
|
|
257
|
+
currentTimestamp?: typeof Expression | undefined;
|
|
258
|
+
currentUser?: typeof Expression | undefined;
|
|
259
|
+
currentRole?: typeof Expression | undefined;
|
|
260
|
+
currentCatalog?: typeof Expression | undefined;
|
|
261
|
+
declare?: typeof Expression | undefined;
|
|
262
|
+
default?: typeof Expression | undefined;
|
|
263
|
+
delete?: typeof Expression | undefined;
|
|
264
|
+
desc?: typeof Expression | undefined;
|
|
265
|
+
describe?: typeof Expression | undefined;
|
|
266
|
+
detach?: typeof Expression | undefined;
|
|
267
|
+
dictionary?: typeof Expression | undefined;
|
|
268
|
+
distinct?: typeof Expression | undefined;
|
|
269
|
+
distributeBy?: typeof Expression | undefined;
|
|
270
|
+
div?: typeof Expression | undefined;
|
|
271
|
+
drop?: typeof Expression | undefined;
|
|
272
|
+
else?: typeof Expression | undefined;
|
|
273
|
+
end?: typeof Expression | undefined;
|
|
274
|
+
escape?: typeof Expression | undefined;
|
|
275
|
+
except?: typeof Expression | undefined;
|
|
276
|
+
execute?: typeof Expression | undefined;
|
|
277
|
+
exists?: typeof Expression | undefined;
|
|
278
|
+
false?: typeof Expression | undefined;
|
|
279
|
+
fetch?: typeof Expression | undefined;
|
|
280
|
+
file?: typeof Expression | undefined;
|
|
281
|
+
fileFormat?: typeof Expression | undefined;
|
|
282
|
+
filter?: typeof Expression | undefined;
|
|
283
|
+
final?: typeof Expression | undefined;
|
|
284
|
+
first?: typeof Expression | undefined;
|
|
285
|
+
for?: typeof Expression | undefined;
|
|
286
|
+
force?: typeof Expression | undefined;
|
|
287
|
+
foreignKey?: typeof Expression | undefined;
|
|
288
|
+
format?: typeof Expression | undefined;
|
|
289
|
+
from?: typeof Expression | undefined;
|
|
290
|
+
full?: typeof Expression | undefined;
|
|
291
|
+
function?: typeof Expression | undefined;
|
|
292
|
+
get?: typeof Expression | undefined;
|
|
293
|
+
glob?: typeof Expression | undefined;
|
|
294
|
+
global?: typeof Expression | undefined;
|
|
295
|
+
grant?: typeof Expression | undefined;
|
|
296
|
+
groupBy?: typeof Expression | undefined;
|
|
297
|
+
groupingSets?: typeof Expression | undefined;
|
|
298
|
+
having?: typeof Expression | undefined;
|
|
299
|
+
hint?: typeof Expression | undefined;
|
|
300
|
+
ignore?: typeof Expression | undefined;
|
|
301
|
+
ilike?: typeof Expression | undefined;
|
|
302
|
+
in?: typeof Expression | undefined;
|
|
303
|
+
index?: typeof Expression | undefined;
|
|
304
|
+
indexedBy?: typeof Expression | undefined;
|
|
305
|
+
inner?: typeof Expression | undefined;
|
|
306
|
+
insert?: typeof Expression | undefined;
|
|
307
|
+
install?: typeof Expression | undefined;
|
|
308
|
+
intersect?: typeof Expression | undefined;
|
|
309
|
+
interval?: typeof Expression | undefined;
|
|
310
|
+
into?: typeof Expression | undefined;
|
|
311
|
+
introducer?: typeof Expression | undefined;
|
|
312
|
+
irlike?: typeof Expression | undefined;
|
|
313
|
+
is?: typeof Expression | undefined;
|
|
314
|
+
isnull?: typeof Expression | undefined;
|
|
315
|
+
join?: typeof Expression | undefined;
|
|
316
|
+
joinMarker?: typeof Expression | undefined;
|
|
317
|
+
keep?: typeof Expression | undefined;
|
|
318
|
+
key?: typeof Expression | undefined;
|
|
319
|
+
kill?: typeof Expression | undefined;
|
|
320
|
+
language?: typeof Expression | undefined;
|
|
321
|
+
lateral?: typeof Expression | undefined;
|
|
322
|
+
left?: typeof Expression | undefined;
|
|
323
|
+
like?: typeof Expression | undefined;
|
|
324
|
+
limit?: typeof Expression | undefined;
|
|
325
|
+
list?: typeof Expression | undefined;
|
|
326
|
+
load?: typeof Expression | undefined;
|
|
327
|
+
lock?: typeof Expression | undefined;
|
|
328
|
+
map?: typeof Expression | undefined;
|
|
329
|
+
match?: typeof Expression | undefined;
|
|
330
|
+
matchCondition?: typeof Expression | undefined;
|
|
331
|
+
matchRecognize?: typeof Expression | undefined;
|
|
332
|
+
memberOf?: typeof Expression | undefined;
|
|
333
|
+
merge?: typeof Expression | undefined;
|
|
334
|
+
mod?: typeof Expression | undefined;
|
|
335
|
+
model?: typeof Expression | undefined;
|
|
336
|
+
natural?: typeof Expression | undefined;
|
|
337
|
+
next?: typeof Expression | undefined;
|
|
338
|
+
nothing?: typeof Expression | undefined;
|
|
339
|
+
notnull?: typeof Expression | undefined;
|
|
340
|
+
null?: typeof Expression | undefined;
|
|
341
|
+
objectIdentifier?: typeof Expression | undefined;
|
|
342
|
+
offset?: typeof Expression | undefined;
|
|
343
|
+
on?: typeof Expression | undefined;
|
|
344
|
+
only?: typeof Expression | undefined;
|
|
345
|
+
operator?: typeof Expression | undefined;
|
|
346
|
+
orderBy?: typeof Expression | undefined;
|
|
347
|
+
orderSiblingsBy?: typeof Expression | undefined;
|
|
348
|
+
ordered?: typeof Expression | undefined;
|
|
349
|
+
ordinality?: typeof Expression | undefined;
|
|
350
|
+
out?: typeof Expression | undefined;
|
|
351
|
+
inout?: typeof Expression | undefined;
|
|
352
|
+
outer?: typeof Expression | undefined;
|
|
353
|
+
over?: typeof Expression | undefined;
|
|
354
|
+
overlaps?: typeof Expression | undefined;
|
|
355
|
+
overwrite?: typeof Expression | undefined;
|
|
356
|
+
partition?: typeof Expression | undefined;
|
|
357
|
+
partitionBy?: typeof Expression | undefined;
|
|
358
|
+
percent?: typeof Expression | undefined;
|
|
359
|
+
pivot?: typeof Expression | undefined;
|
|
360
|
+
placeholder?: typeof Expression | undefined;
|
|
361
|
+
positional?: typeof Expression | undefined;
|
|
362
|
+
pragma?: typeof Expression | undefined;
|
|
363
|
+
prewhere?: typeof Expression | undefined;
|
|
364
|
+
primaryKey?: typeof Expression | undefined;
|
|
365
|
+
procedure?: typeof Expression | undefined;
|
|
366
|
+
properties?: typeof Expression | undefined;
|
|
367
|
+
pseudoType?: typeof Expression | undefined;
|
|
368
|
+
put?: typeof Expression | undefined;
|
|
369
|
+
qualify?: typeof Expression | undefined;
|
|
370
|
+
quote?: typeof Expression | undefined;
|
|
371
|
+
qdcolon?: typeof Expression | undefined;
|
|
372
|
+
range?: typeof Expression | undefined;
|
|
373
|
+
recursive?: typeof Expression | undefined;
|
|
374
|
+
refresh?: typeof Expression | undefined;
|
|
375
|
+
rename?: typeof Expression | undefined;
|
|
376
|
+
replace?: typeof Expression | undefined;
|
|
377
|
+
returning?: typeof Expression | undefined;
|
|
378
|
+
revoke?: typeof Expression | undefined;
|
|
379
|
+
references?: typeof Expression | undefined;
|
|
380
|
+
right?: typeof Expression | undefined;
|
|
381
|
+
rlike?: typeof Expression | undefined;
|
|
382
|
+
rollback?: typeof Expression | undefined;
|
|
383
|
+
rollup?: typeof Expression | undefined;
|
|
384
|
+
row?: typeof Expression | undefined;
|
|
385
|
+
rows?: typeof Expression | undefined;
|
|
386
|
+
select?: typeof Expression | undefined;
|
|
387
|
+
semi?: typeof Expression | undefined;
|
|
388
|
+
separator?: typeof Expression | undefined;
|
|
389
|
+
sequence?: typeof Expression | undefined;
|
|
390
|
+
serdeProperties?: typeof Expression | undefined;
|
|
391
|
+
set?: typeof Expression | undefined;
|
|
392
|
+
settings?: typeof Expression | undefined;
|
|
393
|
+
show?: typeof Expression | undefined;
|
|
394
|
+
similarTo?: typeof Expression | undefined;
|
|
395
|
+
some?: typeof Expression | undefined;
|
|
396
|
+
sortBy?: typeof Expression | undefined;
|
|
397
|
+
soundsLike?: typeof Expression | undefined;
|
|
398
|
+
startWith?: typeof Expression | undefined;
|
|
399
|
+
storageIntegration?: typeof Expression | undefined;
|
|
400
|
+
straightJoin?: typeof Expression | undefined;
|
|
401
|
+
struct?: typeof Expression | undefined;
|
|
402
|
+
summarize?: typeof Expression | undefined;
|
|
403
|
+
tableSample?: typeof Expression | undefined;
|
|
404
|
+
tag?: typeof Expression | undefined;
|
|
405
|
+
temporary?: typeof Expression | undefined;
|
|
406
|
+
top?: typeof Expression | undefined;
|
|
407
|
+
then?: typeof Expression | undefined;
|
|
408
|
+
true?: typeof Expression | undefined;
|
|
409
|
+
truncate?: typeof Expression | undefined;
|
|
410
|
+
uncache?: typeof Expression | undefined;
|
|
411
|
+
union?: typeof Expression | undefined;
|
|
412
|
+
unnest?: typeof Expression | undefined;
|
|
413
|
+
unpivot?: typeof Expression | undefined;
|
|
414
|
+
update?: typeof Expression | undefined;
|
|
415
|
+
use?: typeof Expression | undefined;
|
|
416
|
+
using?: typeof Expression | undefined;
|
|
417
|
+
values?: typeof Expression | undefined;
|
|
418
|
+
variadic?: typeof Expression | undefined;
|
|
419
|
+
view?: typeof Expression | undefined;
|
|
420
|
+
semanticView?: typeof Expression | undefined;
|
|
421
|
+
volatile?: typeof Expression | undefined;
|
|
422
|
+
when?: typeof Expression | undefined;
|
|
423
|
+
where?: typeof Expression | undefined;
|
|
424
|
+
window?: typeof Expression | undefined;
|
|
425
|
+
with?: typeof Expression | undefined;
|
|
426
|
+
unique?: typeof Expression | undefined;
|
|
427
|
+
utcDate?: typeof Expression | undefined;
|
|
428
|
+
utcTime?: typeof Expression | undefined;
|
|
429
|
+
utcTimestamp?: typeof Expression | undefined;
|
|
430
|
+
versionSnapshot?: typeof Expression | undefined;
|
|
431
|
+
timestampSnapshot?: typeof Expression | undefined;
|
|
432
|
+
option?: typeof Expression | undefined;
|
|
433
|
+
sink?: typeof Expression | undefined;
|
|
434
|
+
source?: typeof Expression | undefined;
|
|
435
|
+
analyze?: typeof Expression | undefined;
|
|
436
|
+
namespace?: typeof Expression | undefined;
|
|
437
|
+
export?: typeof Expression | undefined;
|
|
438
|
+
hiveTokenStream?: typeof Expression | undefined;
|
|
439
|
+
};
|
|
440
|
+
static get WINDOW_BEFORE_PAREN_TOKENS(): Set<TokenType>;
|
|
441
|
+
static VALUES_FOLLOWED_BY_PAREN: boolean;
|
|
442
|
+
static get FUNCTIONS(): Record<string, (args: Expression[], options: {
|
|
443
|
+
dialect: Dialect;
|
|
444
|
+
}) => Expression>;
|
|
445
|
+
static get NO_PAREN_FUNCTION_PARSERS(): Record<string, (this: Parser) => Expression | undefined>;
|
|
446
|
+
static get FUNCTION_PARSERS(): Record<string, (this: Parser) => Expression | undefined>;
|
|
447
|
+
static get PROPERTY_PARSERS(): Record<string, (this: Parser) => Expression | undefined>;
|
|
448
|
+
static get QUERY_MODIFIER_PARSERS(): Partial<Record<TokenType, (this: Parser) => [string, Expression | Expression[] | undefined]>>;
|
|
449
|
+
static get TYPE_LITERAL_PARSERS(): Partial<Record<DataTypeExprKind, (this: Parser, thisArg?: Expression, _?: unknown) => Expression>>;
|
|
450
|
+
static get DISTINCT_TOKENS(): Set<TokenType>;
|
|
451
|
+
static get QUERY_RESTRICTIONS(): {
|
|
452
|
+
WITH: string[][];
|
|
453
|
+
};
|
|
454
|
+
parseDbmsRandom(): Expression | undefined;
|
|
455
|
+
parseJsonArray(exprType: typeof Expression, options?: Record<string, unknown>): Expression;
|
|
456
|
+
parseQueryRestrictions(): Expression | undefined;
|
|
457
|
+
parseJsonExists(): JsonExistsExpr;
|
|
458
|
+
parseInto(): IntoExpr | undefined;
|
|
459
|
+
parseHintFunctionCall(): Expression | undefined;
|
|
460
|
+
parseHintArgs(): Expression[];
|
|
461
|
+
parseConnectWithPrior(): Expression | undefined;
|
|
462
|
+
parseColumnOps(thisExpr: Expression | undefined): Expression | undefined;
|
|
463
|
+
parseInsertTable(): Expression | undefined;
|
|
464
|
+
static get TABLE_ALIAS_TOKENS(): Set<TokenType>;
|
|
465
|
+
}
|
|
466
|
+
declare class OracleGenerator extends Generator {
|
|
467
|
+
static get AFTER_HAVING_MODIFIER_TRANSFORMS(): Map<string, (this: Generator, e: Expression) => string>;
|
|
468
|
+
static readonly SELECT_KINDS: string[];
|
|
469
|
+
static TRY_SUPPORTED: boolean;
|
|
470
|
+
static SUPPORTS_UESCAPE: boolean;
|
|
471
|
+
static LOCKING_READS_SUPPORTED: boolean;
|
|
472
|
+
static JOIN_HINTS: boolean;
|
|
473
|
+
static TABLE_HINTS: boolean;
|
|
474
|
+
static DATA_TYPE_SPECIFIERS_ALLOWED: boolean;
|
|
475
|
+
static ALTER_TABLE_INCLUDE_COLUMN_KEYWORD: boolean;
|
|
476
|
+
static LIMIT_FETCH: string;
|
|
477
|
+
static TABLESAMPLE_KEYWORDS: string;
|
|
478
|
+
static LAST_DAY_SUPPORTS_DATE_PART: boolean;
|
|
479
|
+
static SUPPORTS_SELECT_INTO: boolean;
|
|
480
|
+
static TZ_TO_WITH_TIME_ZONE: boolean;
|
|
481
|
+
static SUPPORTS_WINDOW_EXCLUDE: boolean;
|
|
482
|
+
static QUERY_HINT_SEP: string;
|
|
483
|
+
static SUPPORTS_DECODE_CASE: boolean;
|
|
484
|
+
static get TYPE_MAPPING(): Map<DataTypeExprKind | string, string>;
|
|
485
|
+
static get ORIGINAL_TRANSFORMS(): Map<typeof Expression, (this: Generator, e: any) => string>;
|
|
486
|
+
static get PROPERTIES_LOCATION(): Map<typeof Expression, PropertiesLocation>;
|
|
487
|
+
currentTimestampSql(expression: CurrentTimestampExpr): string;
|
|
488
|
+
offsetSql(expression: OffsetExpr): string;
|
|
489
|
+
addColumnSql(expression: Expression): string;
|
|
490
|
+
queryOptionSql(expression: QueryOptionExpr): string;
|
|
491
|
+
coalesceSql(expression: CoalesceExpr): string;
|
|
492
|
+
intoSql(expression: IntoExpr): string;
|
|
493
|
+
hintSql(expression: HintExpr): string;
|
|
494
|
+
isAsciiSql(expression: IsAsciiExpr): string;
|
|
495
|
+
intervalSql(expression: IntervalExpr): string;
|
|
496
|
+
columnDefSql(expression: ColumnDefExpr, options?: {
|
|
497
|
+
sep?: string;
|
|
498
|
+
}): string;
|
|
499
|
+
}
|
|
500
|
+
declare class Oracle extends Dialect {
|
|
501
|
+
static DIALECT_NAME: Dialects;
|
|
502
|
+
static ALIAS_POST_TABLESAMPLE: boolean;
|
|
503
|
+
static LOCKING_READS_SUPPORTED: boolean;
|
|
504
|
+
static TABLESAMPLE_SIZE_IS_PERCENT: boolean;
|
|
505
|
+
static get NULL_ORDERING(): NullOrdering;
|
|
506
|
+
static ON_CONDITION_EMPTY_BEFORE_ERROR: boolean;
|
|
507
|
+
static ALTER_TABLE_ADD_REQUIRED_FOR_EACH_COLUMN: boolean;
|
|
508
|
+
static DISABLES_ALIAS_REF_EXPANSION: boolean;
|
|
509
|
+
static get NORMALIZATION_STRATEGY(): NormalizationStrategy;
|
|
510
|
+
static get TIME_MAPPING(): {
|
|
511
|
+
D: string;
|
|
512
|
+
DAY: string;
|
|
513
|
+
DD: string;
|
|
514
|
+
DDD: string;
|
|
515
|
+
DY: string;
|
|
516
|
+
HH: string;
|
|
517
|
+
HH12: string;
|
|
518
|
+
HH24: string;
|
|
519
|
+
IW: string;
|
|
520
|
+
MI: string;
|
|
521
|
+
MM: string;
|
|
522
|
+
MON: string;
|
|
523
|
+
MONTH: string;
|
|
524
|
+
SS: string;
|
|
525
|
+
WW: string;
|
|
526
|
+
YY: string;
|
|
527
|
+
YYYY: string;
|
|
528
|
+
FF6: string;
|
|
529
|
+
};
|
|
530
|
+
static get PSEUDOCOLUMNS(): Set<string>;
|
|
531
|
+
canQuote(identifier: IdentifierExpr, options?: {
|
|
532
|
+
identify?: string | boolean;
|
|
533
|
+
}): boolean;
|
|
534
|
+
static Tokenizer: typeof OracleTokenizer;
|
|
535
|
+
static Parser: typeof OracleParser;
|
|
536
|
+
static Generator: typeof OracleGenerator;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export { Oracle, OracleGenerator, OracleParser, OracleTokenizer };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$c as v,Ao as f,Ck as U,Ep as lt,Fq as Ot,Hl as St,Ie as z,Jc as J,Kd as l,Kf as L,Kp as y,Ml as ht,Od as Q,Pe as tt,Po as xt,Qb as K,Qf as st,Rq as dt,Sd as k,Sf as et,So as ft,Tb as d,To as _t,Vl as At,Wb as W,Wd as Z,Xd as X,Xq as C,Ya as V,Zc as $,Zl as Rt,_f as D,a as I,b as N,bq as Lt,c as x,ca as H,d as r,ee as j,eh as M,fh as it,jb as G,ji as g,kq as Ct,lj as ot,lp as _,mj as pt,ob as O,op as b,pl as Tt,pn as ct,pp as S,qf as m,qn as It,r as n,rb as w,rn as Nt,sh as rt,th as nt,tl as ut,vp as Pt,wl as B,xa as F,xl as Y,yh as Et,za as u,zk as at}from"../chunk-KCNOE4DZ.js";function es(a){let A=a.args.position;return A&&["LEADING","TRAILING"].includes(A.toString().toUpperCase())?this.trimSql(a):Lt.call(this,a)}function mt(a){return a.length===1?new L({this:"TO_TIMESTAMP",expressions:a}):y(Y,{dialect:"oracle"})(a)}var Dt,Mt,gt,Ut,P,h=class extends(Ut=C,gt=[n],Mt=[n],Dt=[n],Ut){static get VAR_SINGLE_TOKENS(){return new Set(["@","$","#"])}static get UNICODE_STRINGS(){let t=C.QUOTES,s=[];for(let e of t)for(let T of["U","u"])s.push([T+e,e]);return s}static get ORIGINAL_KEYWORDS(){return{...C.KEYWORDS,"(+)":"joinMarker",BINARY_DOUBLE:"double",BINARY_FLOAT:"float","BULK COLLECT INTO":"bulkCollectInto",COLUMNS:"column",MATCH_RECOGNIZE:"matchRecognize",MINUS:"except",NVARCHAR2:"nvarchar","ORDER SIBLINGS BY":"orderSiblingsBy",SAMPLE:"tableSample",START:"begin",TOP:"top",VARCHAR2:"varchar",SYSTIMESTAMP:"systimestamp"}}};P=I(Ut),r(P,10,"VAR_SINGLE_TOKENS",gt,h),r(P,10,"UNICODE_STRINGS",Mt,h),r(P,10,"ORIGINAL_KEYWORDS",Dt,h),N(P,h),x(P,3,h),h.NESTED_COMMENTS=!1;var Bt,Yt,bt,yt,qt,Ht,Ft,Vt,Gt,wt,Kt,Wt,Jt,p,o=class o extends(Jt=u,Wt=[n],Kt=[n],wt=[n],Gt=[n],Vt=[n],Ft=[n],Ht=[n],qt=[n],yt=[n],bt=[n],Yt=[n],Bt=[n],Jt){static get ID_VAR_TOKENS(){return new Set([...u.ID_VAR_TOKENS,"sessionUser","currentCatalog","straightJoin"])}static get NO_PAREN_FUNCTIONS(){let t={systimestamp:M,...u.NO_PAREN_FUNCTIONS};return delete t.localtime,t}static get WINDOW_BEFORE_PAREN_TOKENS(){return new Set(["over","keep"])}static get FUNCTIONS(){return{...u.FUNCTIONS,CONVERT:t=>D.fromArgList(t),L2_DISTANCE:t=>m.fromArgList(t),NVL:t=>F(t,{isNvl:!0}),SQUARE:t=>new at({this:H(t,0),expression:f(2)}),TO_CHAR:dt,TO_TIMESTAMP:mt,TO_DATE:y(B,{dialect:"oracle"}),TRUNC:(t,{dialect:s})=>Ct(t,{dialect:s,dateTruncUnabbreviate:!1,defaultDateTruncUnit:"DD"})}}static get NO_PAREN_FUNCTION_PARSERS(){return{...u.NO_PAREN_FUNCTION_PARSERS,NEXT:function(){return this.parseNextValueFor()},PRIOR:function(){return this.expression(G,{this:this.parseBitwise()})},SYSDATE:function(){return this.expression(it,{sysdate:!0})},DBMS_RANDOM:function(){return this.parseDbmsRandom()}}}static get FUNCTION_PARSERS(){return{...u.FUNCTION_PARSERS,CONVERT:function(){let t=this.parseCsv(()=>this.parseBitwise());return D.fromArgList(t)},JSON_ARRAY:function(){return this.parseJsonArray(ot,{expressions:this.parseCsv(()=>this.parseFormatJson(this.parseBitwise()))})},JSON_ARRAYAGG:function(){return this.parseJsonArray(ct,{this:this.parseFormatJson(this.parseBitwise()),order:this.parseOrder()})},JSON_EXISTS:function(){return this.parseJsonExists()}}}static get PROPERTY_PARSERS(){return{...u.PROPERTY_PARSERS,GLOBAL:function(){return(this.matchTextSeq("TEMPORARY")||void 0)&&this.expression(l,{this:"GLOBAL"})},PRIVATE:function(){return(this.matchTextSeq("TEMPORARY")||void 0)&&this.expression(l,{this:"PRIVATE"})},FORCE:function(){return this.expression(k,{})}}}static get QUERY_MODIFIER_PARSERS(){return{...u.QUERY_MODIFIER_PARSERS,orderSiblingsBy:function(){return["order",this.parseOrder()]},with:function(){return["options",this.parseQueryRestrictions()]}}}static get TYPE_LITERAL_PARSERS(){return{date:function(t){return this.expression(g,{this:t})},timestamp:function(t){return mt([t??f(""),f("%Y-%m-%d %H:%M:%S.%f")])}}}static get DISTINCT_TOKENS(){return new Set(["distinct","unique"])}static get QUERY_RESTRICTIONS(){return{WITH:[["READ","ONLY"],["CHECK","OPTION"]]}}parseDbmsRandom(){if(this.matchTextSeq([".","VALUE"])){let t,s;if(this.match("lParen",{advance:!1})){let e=this.parseWrappedCsv(()=>this.parseBitwise());e.length===2&&(t=e[0],s=e[1])}return new U({lower:t,upper:s})}this.retreat(this.index-1)}parseJsonArray(t,s={}){return this.expression(t,{nullHandling:this.parseOnHandling("NULL",["NULL","ABSENT"]),returnType:this.matchTextSeq("RETURNING")&&this.parseType(),strict:this.matchTextSeq("STRICT"),...s})}parseQueryRestrictions(){let t=this.parseVarFromOptions(o.QUERY_RESTRICTIONS,{raiseUnmatched:!1});if(t)return this.expression(K,{this:t,expression:this.match("constraint")&&this.parseField()})}parseJsonExists(){let t=this.parseFormatJson(this.parseBitwise());return this.match("comma"),this.expression(pt,{this:t,path:this.dialect.toJsonPath(this.parseBitwise()),passing:(this.matchTextSeq("PASSING")||void 0)&&this.parseCsv(()=>this.parseAlias(this.parseBitwise())),onCondition:this.parseOnCondition()})}parseInto(){let t=this.match("bulkCollectInto");if(!t&&!this.match("into"))return;let s=this.index,e=this.parseExpressions();return e.length===1?(this.retreat(s),this.match("table"),this.expression(O,{this:this.parseTable({schema:!0}),bulkCollect:t})):this.expression(O,{bulkCollect:t,expressions:e})}parseHintFunctionCall(){if(!this.curr||!this.next||this.next.tokenType!=="lParen")return;let t=this.curr.text;this.advance(2);let s=this.parseHintArgs(),e=this.expression(L,{this:t,expressions:s});return this.matchRParen(e),e}parseHintArgs(){let t=[],s=this.parseVar();for(;s;)t.push(s),s=this.parseVar();return t}parseConnectWithPrior(){return this.parseAssignment()}parseColumnOps(t){let s=super.parseColumnOps(t);if(!s)return s;let e=this.index,T=this.parseIntervalSpan(s);return T.args.unit instanceof j?T:(this.retreat(e),s)}parseInsertTable(){let t=this.parseTableParts({schema:!0});if(t instanceof d){let s=this.parseIdVar({anyToken:!1});return s instanceof w&&t.setArgKey("alias",new V({this:s})),t.setArgKey("partition",this.parsePartition()),this.parseSchema({this:t})}return t}static get TABLE_ALIAS_TOKENS(){return new Set([...u.TABLE_ALIAS_TOKENS,"straightJoin"])}};p=I(Jt),r(p,10,"ID_VAR_TOKENS",Wt,o),r(p,10,"NO_PAREN_FUNCTIONS",Kt,o),r(p,10,"WINDOW_BEFORE_PAREN_TOKENS",wt,o),r(p,10,"FUNCTIONS",Gt,o),r(p,10,"NO_PAREN_FUNCTION_PARSERS",Vt,o),r(p,10,"FUNCTION_PARSERS",Ft,o),r(p,10,"PROPERTY_PARSERS",Ht,o),r(p,10,"QUERY_MODIFIER_PARSERS",qt,o),r(p,10,"TYPE_LITERAL_PARSERS",yt,o),r(p,10,"DISTINCT_TOKENS",bt,o),r(p,10,"QUERY_RESTRICTIONS",Yt,o),r(p,10,"TABLE_ALIAS_TOKENS",Bt,o),N(p,o),x(p,3,o),o.VALUES_FOLLOWED_BY_PAREN=!1;var q=o,$t,vt,Qt,kt,Zt,R,i=class extends(Zt=_,kt=[n],Qt=[n],vt=[n],$t=[n],Zt){static get AFTER_HAVING_MODIFIER_TRANSFORMS(){let t=new Map(super.AFTER_HAVING_MODIFIER_TRANSFORMS);return["cluster","distribute","sort"].forEach(s=>t.delete(s)),t}static get TYPE_MAPPING(){let t=new Map(_.TYPE_MAPPING);return t.set("tinyint","SMALLINT"),t.set("smallint","SMALLINT"),t.set("int","INT"),t.set("bigint","INT"),t.set("decimal","NUMBER"),t.set("double","DOUBLE PRECISION"),t.set("varchar","VARCHAR2"),t.set("nvarchar","NVARCHAR2"),t.set("nchar","NCHAR"),t.set("text","CLOB"),t.set("timetz","TIME"),t.set("timestampntz","TIMESTAMP"),t.set("timestamptz","TIMESTAMP"),t.set("binary","BLOB"),t.set("varbinary","BLOB"),t.set("rowversion","BLOB"),t.delete("blob"),t}static get ORIGINAL_TRANSFORMS(){let t=new Map(_.TRANSFORMS);return t.set(g,function(s){return this.func("TO_DATE",[s.args.this,f("YYYY-MM-DD")])}),t.set(Et,function(s){return this.func("TRUNC",[s.args.this,s.args.unit])}),t.set(m,S("L2_DISTANCE")),t.set(z,Pt),t.set(It,S("MAX")),t.set(Nt,S("MIN")),t.set(tt,S("MOD")),t.set(U,S("DBMS_RANDOM.VALUE")),t.set(Z,xt([ft,_t])),t.set(ut,function(s){return lt.call(this,s,{funcName:"INSTR",supportsPosition:!0,supportsOccurrence:!0})}),t.set(Y,function(s){return this.func("TO_TIMESTAMP",[s.args.this,this.formatTime(s)])}),t.set(B,function(s){return this.func("TO_DATE",[s.args.this,this.formatTime(s)])}),t.set(X,function(s){return this.subquerySql(s,{sep:" "})}),t.set(Tt,S("SUBSTR")),t.set(d,function(s){return this.tableSql(s,{sep:" "})}),t.set(W,function(s){return this.tableSampleSql(s)}),t.set(l,s=>`${s.args.this||"GLOBAL"} TEMPORARY`),t.set(St,function(s){return this.func("TO_CHAR",[s.args.this,this.formatTime(s)])}),t.set(st,function(s){return this.functionFallbackSql(s)}),t.set(et,Ot),t.set(ht,es),t.set(At,function(s){return`ASCII(UNISTR(${this.sql(s.args.this)}))`}),t.set(Rt,function(s){return`TO_DATE('1970-01-01', 'YYYY-MM-DD') + (${this.sql(s,"this")} / 86400)`}),t.set(nt,S("UTC_TIMESTAMP")),t.set(rt,S("UTC_TIME")),t.set(M,()=>"SYSTIMESTAMP"),t}static get PROPERTIES_LOCATION(){let t=new Map(_.PROPERTIES_LOCATION);return t.set(Q,"unsupported"),t}currentTimestampSql(t){if(t.args.sysdate)return"SYSDATE";let s=t.args.this;return s?this.func("CURRENT_TIMESTAMP",[s]):"CURRENT_TIMESTAMP"}offsetSql(t){return`${super.offsetSql(t)} ROWS`}addColumnSql(t){return`ADD ${this.sql(t)}`}queryOptionSql(t){let s=this.sql(t,"this"),e=this.sql(t,"expression");return e=e?` CONSTRAINT ${e}`:"",`${s}${e}`}coalesceSql(t){let s=t.args.isNvl?"NVL":"COALESCE";return S(s).call(this,t)}intoSql(t){let s=t.args.bulkCollect?"BULK COLLECT INTO":"INTO";return t.args.this?`${this.seg(s)} ${this.sql(t,"this")}`:`${this.seg(s)} ${this.expressions(t)}`}hintSql(t){let s=[];for(let e of t.args.expressions||[])if(e instanceof L){let T=this.formatArgs(e.args.expressions||[],{sep:" "});s.push(`${this.sql(e,"this")}(${T})`)}else s.push(this.sql(e));return` /*+ ${this.expressions(void 0,{sqls:s,sep:this._constructor.QUERY_HINT_SEP}).trim()} */`}isAsciiSql(t){return`NVL(REGEXP_LIKE(${this.sql(t.args.this)}, '^[' || CHR(1) || '-' || CHR(127) || ']*$'), TRUE)`}intervalSql(t){return`${t.args.this instanceof v?"INTERVAL ":""}${this.sql(t,"this")} ${this.sql(t,"unit")}`}columnDefSql(t,s={}){let{sep:e=" "}=s,T=t.find($);return T&&(e=` ${this.sql(T)} `,T.parent?.pop()),super.columnDefSql(t,{sep:e})}};R=I(Zt),r(R,10,"AFTER_HAVING_MODIFIER_TRANSFORMS",kt,i),r(R,10,"TYPE_MAPPING",Qt,i),r(R,10,"ORIGINAL_TRANSFORMS",vt,i),r(R,10,"PROPERTIES_LOCATION",$t,i),N(R,i),x(R,3,i),i.SELECT_KINDS=[],i.TRY_SUPPORTED=!1,i.SUPPORTS_UESCAPE=!1,i.LOCKING_READS_SUPPORTED=!0,i.JOIN_HINTS=!1,i.TABLE_HINTS=!1,i.DATA_TYPE_SPECIFIERS_ALLOWED=!0,i.ALTER_TABLE_INCLUDE_COLUMN_KEYWORD=!1,i.LIMIT_FETCH="FETCH",i.TABLESAMPLE_KEYWORDS="SAMPLE",i.LAST_DAY_SUPPORTS_DATE_PART=!1,i.SUPPORTS_SELECT_INTO=!0,i.TZ_TO_WITH_TIME_ZONE=!0,i.SUPPORTS_WINDOW_EXCLUDE=!0,i.QUERY_HINT_SEP=" ",i.SUPPORTS_DECODE_CASE=!0;var Xt,jt,zt,ts,ss,c,E=class extends(ss=b,ts=[n],zt=[n],jt=[n],Xt=[n],ss){static get NULL_ORDERING(){return"nulls_are_large"}static get NORMALIZATION_STRATEGY(){return"uppercase"}static get TIME_MAPPING(){return{D:"%u",DAY:"%A",DD:"%d",DDD:"%j",DY:"%a",HH:"%I",HH12:"%I",HH24:"%H",IW:"%V",MI:"%M",MM:"%m",MON:"%b",MONTH:"%B",SS:"%S",WW:"%W",YY:"%y",YYYY:"%Y",FF6:"%f"}}static get PSEUDOCOLUMNS(){return new Set(["ROWNUM","ROWID","OBJECT_ID","OBJECT_VALUE","LEVEL"])}canQuote(t,s={}){let{identify:e="safe"}=s;return(t.args.quoted||!(t.parent instanceof J))&&super.canQuote(t,{identify:e})}};c=I(ss),r(c,10,"NULL_ORDERING",ts,E),r(c,10,"NORMALIZATION_STRATEGY",zt,E),r(c,10,"TIME_MAPPING",jt,E),r(c,10,"PSEUDOCOLUMNS",Xt,E),N(c,E),x(c,3,E),E.DIALECT_NAME="oracle",E.ALIAS_POST_TABLESAMPLE=!0,E.LOCKING_READS_SUPPORTED=!0,E.TABLESAMPLE_SIZE_IS_PERCENT=!0,E.ON_CONDITION_EMPTY_BEFORE_ERROR=!1,E.ALTER_TABLE_ADD_REQUIRED_FOR_EACH_COLUMN=!1,E.DISABLES_ALIAS_REF_EXPANSION=!0,E.Tokenizer=h,E.Parser=q,E.Generator=i;b.register("oracle",E);export{E as Oracle,i as OracleGenerator,q as OracleParser,h as OracleTokenizer};
|
|
2
|
+
//# sourceMappingURL=oracle.js.map
|