dt-sql-parser 4.5.1-beta.3 → 4.5.2-beta.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/dist/lib/SQLParserBase.d.ts +9 -0
- package/dist/lib/SQLParserBase.js +15 -0
- package/dist/lib/generic/GenericSqlListener.d.ts +11 -0
- package/dist/lib/generic/GenericSqlParser.d.ts +61 -47
- package/dist/lib/generic/GenericSqlParser.js +1047 -949
- package/dist/lib/generic/GenericSqlVisitor.d.ts +7 -0
- package/dist/lib/hive/HiveSqlParser.d.ts +54 -30
- package/dist/lib/hive/HiveSqlParser.js +5633 -5467
- package/dist/lib/hive/HiveSqlParserListener.d.ts +22 -0
- package/dist/lib/hive/HiveSqlParserVisitor.d.ts +14 -0
- package/dist/lib/mysql/MySqlParser.d.ts +34 -9
- package/dist/lib/mysql/MySqlParser.js +5697 -5550
- package/dist/lib/mysql/MySqlParserListener.d.ts +33 -5
- package/dist/lib/mysql/MySqlParserVisitor.d.ts +20 -3
- package/dist/lib/postgresql/PostgreSqlParser.d.ts +200 -166
- package/dist/lib/postgresql/PostgreSqlParser.js +10389 -10136
- package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +31 -5
- package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +19 -3
- package/dist/lib/trino/TrinoSqlListener.d.ts +33 -0
- package/dist/lib/trino/TrinoSqlParser.d.ts +157 -115
- package/dist/lib/trino/TrinoSqlParser.js +4775 -4494
- package/dist/lib/trino/TrinoSqlVisitor.d.ts +21 -0
- package/dist/parser/common/basicSQL.d.ts +3 -0
- package/dist/parser/common/basicSQL.js +47 -1
- package/dist/parser/common/entityCollector.d.ts +37 -2
- package/dist/parser/common/entityCollector.js +303 -2
- package/dist/parser/flink/flinkEntityCollector.d.ts +2 -1
- package/dist/parser/flink/flinkEntityCollector.js +4 -0
- package/dist/parser/flink/index.js +1 -1
- package/dist/parser/generic/genericEntityCollector.d.ts +7 -2
- package/dist/parser/generic/genericEntityCollector.js +65 -15
- package/dist/parser/generic/index.js +13 -1
- package/dist/parser/hive/hiveEntityCollector.d.ts +2 -1
- package/dist/parser/hive/hiveEntityCollector.js +5 -0
- package/dist/parser/hive/index.js +1 -1
- package/dist/parser/impala/impalaEntityCollector.d.ts +2 -1
- package/dist/parser/impala/impalaEntityCollector.js +4 -0
- package/dist/parser/impala/index.js +1 -1
- package/dist/parser/mysql/index.js +15 -1
- package/dist/parser/mysql/mysqlEntityCollector.d.ts +3 -1
- package/dist/parser/mysql/mysqlEntityCollector.js +24 -0
- package/dist/parser/postgresql/index.js +3 -2
- package/dist/parser/postgresql/postgreEntityCollector.d.ts +3 -1
- package/dist/parser/postgresql/postgreEntityCollector.js +10 -0
- package/dist/parser/spark/index.js +1 -1
- package/dist/parser/spark/sparkEntityCollector.d.ts +2 -1
- package/dist/parser/spark/sparkEntityCollector.js +5 -0
- package/dist/parser/trino/index.js +4 -2
- package/dist/parser/trino/trinoEntityCollector.d.ts +2 -1
- package/dist/parser/trino/trinoEntityCollector.js +5 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ import { DropTableContext } from "./GenericSqlParser.js";
|
|
|
12
12
|
import { QueryStatementContext } from "./GenericSqlParser.js";
|
|
13
13
|
import { WithClauseContext } from "./GenericSqlParser.js";
|
|
14
14
|
import { NamedQueryContext } from "./GenericSqlParser.js";
|
|
15
|
+
import { CteColumnListContext } from "./GenericSqlParser.js";
|
|
15
16
|
import { QueryNoWithContext } from "./GenericSqlParser.js";
|
|
16
17
|
import { QueryTermContext } from "./GenericSqlParser.js";
|
|
17
18
|
import { QueryPrimaryContext } from "./GenericSqlParser.js";
|
|
@@ -182,6 +183,12 @@ export declare class GenericSqlVisitor<Result> extends AbstractParseTreeVisitor<
|
|
|
182
183
|
* @return the visitor result
|
|
183
184
|
*/
|
|
184
185
|
visitNamedQuery?: (ctx: NamedQueryContext) => Result;
|
|
186
|
+
/**
|
|
187
|
+
* Visit a parse tree produced by `GenericSqlParser.cteColumnList`.
|
|
188
|
+
* @param ctx the parse tree
|
|
189
|
+
* @return the visitor result
|
|
190
|
+
*/
|
|
191
|
+
visitCteColumnList?: (ctx: CteColumnListContext) => Result;
|
|
185
192
|
/**
|
|
186
193
|
* Visit a parse tree produced by `GenericSqlParser.queryNoWith`.
|
|
187
194
|
* @param ctx the parse tree
|
|
@@ -774,30 +774,32 @@ export declare class HiveSqlParser extends SQLParserBase {
|
|
|
774
774
|
static readonly RULE_principalIdentifier = 329;
|
|
775
775
|
static readonly RULE_nonReserved = 330;
|
|
776
776
|
static readonly RULE_sql11ReservedKeywordsUsedAsFunctionName = 331;
|
|
777
|
-
static readonly
|
|
778
|
-
static readonly
|
|
779
|
-
static readonly
|
|
780
|
-
static readonly
|
|
781
|
-
static readonly
|
|
782
|
-
static readonly
|
|
783
|
-
static readonly
|
|
784
|
-
static readonly
|
|
785
|
-
static readonly
|
|
786
|
-
static readonly
|
|
787
|
-
static readonly
|
|
788
|
-
static readonly
|
|
789
|
-
static readonly
|
|
790
|
-
static readonly
|
|
791
|
-
static readonly
|
|
792
|
-
static readonly
|
|
793
|
-
static readonly
|
|
794
|
-
static readonly
|
|
795
|
-
static readonly
|
|
796
|
-
static readonly
|
|
797
|
-
static readonly
|
|
798
|
-
static readonly
|
|
799
|
-
static readonly
|
|
800
|
-
static readonly
|
|
777
|
+
static readonly RULE_configProperty = 332;
|
|
778
|
+
static readonly RULE_configPropertyPart = 333;
|
|
779
|
+
static readonly RULE_configPropertiesItem = 334;
|
|
780
|
+
static readonly RULE_resourcePlanDdlStatements = 335;
|
|
781
|
+
static readonly RULE_mappingTypes = 336;
|
|
782
|
+
static readonly RULE_rpAssign = 337;
|
|
783
|
+
static readonly RULE_rpAssignList = 338;
|
|
784
|
+
static readonly RULE_rpUnassign = 339;
|
|
785
|
+
static readonly RULE_activate = 340;
|
|
786
|
+
static readonly RULE_enable = 341;
|
|
787
|
+
static readonly RULE_disable = 342;
|
|
788
|
+
static readonly RULE_year = 343;
|
|
789
|
+
static readonly RULE_month = 344;
|
|
790
|
+
static readonly RULE_week = 345;
|
|
791
|
+
static readonly RULE_day = 346;
|
|
792
|
+
static readonly RULE_hour = 347;
|
|
793
|
+
static readonly RULE_minute = 348;
|
|
794
|
+
static readonly RULE_second = 349;
|
|
795
|
+
static readonly RULE_decimal = 350;
|
|
796
|
+
static readonly RULE_emptyColumn = 351;
|
|
797
|
+
static readonly RULE_poolPath = 352;
|
|
798
|
+
static readonly RULE_poolPathAllowEmpty = 353;
|
|
799
|
+
static readonly RULE_triggerAtomExpression = 354;
|
|
800
|
+
static readonly RULE_triggerActionExpression = 355;
|
|
801
|
+
static readonly RULE_poolAssign = 356;
|
|
802
|
+
static readonly RULE_poolAssignList = 357;
|
|
801
803
|
static readonly literalNames: (string | null)[];
|
|
802
804
|
static readonly symbolicNames: (string | null)[];
|
|
803
805
|
static readonly ruleNames: string[];
|
|
@@ -1140,6 +1142,8 @@ export declare class HiveSqlParser extends SQLParserBase {
|
|
|
1140
1142
|
principalIdentifier(): PrincipalIdentifierContext;
|
|
1141
1143
|
nonReserved(): NonReservedContext;
|
|
1142
1144
|
sql11ReservedKeywordsUsedAsFunctionName(): Sql11ReservedKeywordsUsedAsFunctionNameContext;
|
|
1145
|
+
configProperty(): ConfigPropertyContext;
|
|
1146
|
+
configPropertyPart(): ConfigPropertyPartContext;
|
|
1143
1147
|
configPropertiesItem(): ConfigPropertiesItemContext;
|
|
1144
1148
|
resourcePlanDdlStatements(): ResourcePlanDdlStatementsContext;
|
|
1145
1149
|
mappingTypes(): MappingTypesContext;
|
|
@@ -1168,6 +1172,7 @@ export declare class HiveSqlParser extends SQLParserBase {
|
|
|
1168
1172
|
private columnName_sempred;
|
|
1169
1173
|
private columnNamePathAllowEmpty_sempred;
|
|
1170
1174
|
private selectItem_sempred;
|
|
1175
|
+
private configPropertyPart_sempred;
|
|
1171
1176
|
private poolPathAllowEmpty_sempred;
|
|
1172
1177
|
static readonly _serializedATN: number[];
|
|
1173
1178
|
private static __ATN;
|
|
@@ -1281,13 +1286,8 @@ export declare class ExecStatementContext extends antlr.ParserRuleContext {
|
|
|
1281
1286
|
KW_EXECUTE(): antlr.TerminalNode | null;
|
|
1282
1287
|
constantList(): ConstantListContext | null;
|
|
1283
1288
|
KW_SET(): antlr.TerminalNode | null;
|
|
1284
|
-
|
|
1285
|
-
configPropertiesItem(i: number): ConfigPropertiesItemContext | null;
|
|
1289
|
+
configProperty(): ConfigPropertyContext | null;
|
|
1286
1290
|
EQUAL(): antlr.TerminalNode | null;
|
|
1287
|
-
DOT(): antlr.TerminalNode[];
|
|
1288
|
-
DOT(i: number): antlr.TerminalNode | null;
|
|
1289
|
-
COLON(): antlr.TerminalNode[];
|
|
1290
|
-
COLON(i: number): antlr.TerminalNode | null;
|
|
1291
1291
|
get ruleIndex(): number;
|
|
1292
1292
|
enterRule(listener: HiveSqlParserListener): void;
|
|
1293
1293
|
exitRule(listener: HiveSqlParserListener): void;
|
|
@@ -6182,6 +6182,30 @@ export declare class Sql11ReservedKeywordsUsedAsFunctionNameContext extends antl
|
|
|
6182
6182
|
exitRule(listener: HiveSqlParserListener): void;
|
|
6183
6183
|
accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
|
|
6184
6184
|
}
|
|
6185
|
+
export declare class ConfigPropertyContext extends antlr.ParserRuleContext {
|
|
6186
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
6187
|
+
configPropertyPart(): ConfigPropertyPartContext[];
|
|
6188
|
+
configPropertyPart(i: number): ConfigPropertyPartContext | null;
|
|
6189
|
+
DOT(): antlr.TerminalNode[];
|
|
6190
|
+
DOT(i: number): antlr.TerminalNode | null;
|
|
6191
|
+
COLON(): antlr.TerminalNode[];
|
|
6192
|
+
COLON(i: number): antlr.TerminalNode | null;
|
|
6193
|
+
get ruleIndex(): number;
|
|
6194
|
+
enterRule(listener: HiveSqlParserListener): void;
|
|
6195
|
+
exitRule(listener: HiveSqlParserListener): void;
|
|
6196
|
+
accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
|
|
6197
|
+
}
|
|
6198
|
+
export declare class ConfigPropertyPartContext extends antlr.ParserRuleContext {
|
|
6199
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
6200
|
+
configPropertiesItem(): ConfigPropertiesItemContext[];
|
|
6201
|
+
configPropertiesItem(i: number): ConfigPropertiesItemContext | null;
|
|
6202
|
+
MINUS(): antlr.TerminalNode[];
|
|
6203
|
+
MINUS(i: number): antlr.TerminalNode | null;
|
|
6204
|
+
get ruleIndex(): number;
|
|
6205
|
+
enterRule(listener: HiveSqlParserListener): void;
|
|
6206
|
+
exitRule(listener: HiveSqlParserListener): void;
|
|
6207
|
+
accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
|
|
6208
|
+
}
|
|
6185
6209
|
export declare class ConfigPropertiesItemContext extends antlr.ParserRuleContext {
|
|
6186
6210
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
6187
6211
|
id_(): Id_Context | null;
|