dt-sql-parser 4.5.0-beta.1 → 4.5.0-beta.2
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/index.d.ts +3 -2
- package/dist/index.js +2 -2
- package/dist/lib/SQLParserBase.d.ts +1 -13
- package/dist/lib/SQLParserBase.js +5 -40
- package/dist/lib/flink/FlinkSqlParser.d.ts +179 -222
- package/dist/lib/flink/FlinkSqlParser.js +2949 -3300
- package/dist/lib/flink/FlinkSqlParserListener.d.ts +0 -33
- package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +0 -21
- package/dist/lib/generic/GenericSqlLexer.d.ts +143 -0
- package/dist/lib/generic/GenericSqlLexer.js +603 -0
- package/dist/lib/generic/GenericSqlListener.d.ts +1089 -0
- package/dist/lib/generic/GenericSqlListener.js +11 -0
- package/dist/lib/generic/GenericSqlParser.d.ts +1272 -0
- package/dist/lib/generic/GenericSqlParser.js +7641 -0
- package/dist/lib/generic/GenericSqlVisitor.d.ts +684 -0
- package/dist/lib/generic/GenericSqlVisitor.js +12 -0
- package/dist/lib/hive/HiveSqlParser.d.ts +228 -274
- package/dist/lib/hive/HiveSqlParser.js +5912 -6304
- package/dist/lib/hive/HiveSqlParserListener.d.ts +0 -33
- package/dist/lib/hive/HiveSqlParserVisitor.d.ts +0 -21
- package/dist/lib/impala/ImpalaSqlParser.d.ts +103 -145
- package/dist/lib/impala/ImpalaSqlParser.js +3320 -3687
- package/dist/lib/impala/ImpalaSqlParserListener.d.ts +0 -33
- package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +0 -21
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.js +2 -0
- package/dist/lib/mysql/MySqlParser.d.ts +94 -161
- package/dist/lib/mysql/MySqlParser.js +9499 -9959
- package/dist/lib/mysql/MySqlParserListener.d.ts +5 -79
- package/dist/lib/mysql/MySqlParserVisitor.d.ts +3 -49
- package/dist/lib/postgresql/PostgreSqlParser.d.ts +71 -108
- package/dist/lib/postgresql/PostgreSqlParser.js +10388 -13330
- package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +0 -48
- package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +0 -30
- package/dist/lib/spark/SparkSqlParser.d.ts +145 -185
- package/dist/lib/spark/SparkSqlParser.js +5109 -5420
- package/dist/lib/spark/SparkSqlParserListener.d.ts +0 -33
- package/dist/lib/spark/SparkSqlParserVisitor.d.ts +0 -21
- package/dist/parser/common/basicSQL.d.ts +5 -5
- package/dist/parser/common/basicSQL.js +3 -3
- package/dist/parser/common/entityCollector.js +2 -14
- package/dist/parser/flink/index.js +2 -5
- package/dist/parser/generic/genericEntityCollector.d.ts +29 -0
- package/dist/parser/generic/genericEntityCollector.js +103 -0
- package/dist/parser/generic/genericErrorListener.d.ts +6 -0
- package/dist/parser/generic/genericErrorListener.js +56 -0
- package/dist/parser/generic/genericSemanticContextCollector.d.ts +9 -0
- package/dist/parser/generic/genericSemanticContextCollector.js +14 -0
- package/dist/parser/generic/genericSplitListener.d.ts +6 -0
- package/dist/parser/generic/genericSplitListener.js +6 -0
- package/dist/parser/generic/index.d.ts +33 -0
- package/dist/parser/generic/index.js +94 -0
- package/dist/parser/index.d.ts +1 -0
- package/dist/parser/index.js +1 -0
- package/dist/parser/mysql/index.js +1 -3
- package/dist/parser/mysql/mysqlEntityCollector.d.ts +1 -2
- package/dist/parser/mysql/mysqlEntityCollector.js +3 -13
- package/dist/parser/mysql/mysqlErrorListener.js +0 -2
- package/dist/parser/postgresql/postgreEntityCollector.d.ts +1 -3
- package/dist/parser/postgresql/postgreEntityCollector.js +0 -13
- package/dist/parser/spark/index.js +1 -3
- package/package.json +1 -1
|
@@ -272,10 +272,7 @@ import { JsonOnEmptyContext } from "./MySqlParser.js";
|
|
|
272
272
|
import { JsonOnErrorContext } from "./MySqlParser.js";
|
|
273
273
|
import { SelectSpecContext } from "./MySqlParser.js";
|
|
274
274
|
import { SelectElementsContext } from "./MySqlParser.js";
|
|
275
|
-
import {
|
|
276
|
-
import { SelectElement_labelContext } from "./MySqlParser.js";
|
|
277
|
-
import { SelectElement_exprContext } from "./MySqlParser.js";
|
|
278
|
-
import { SelectElement_dot_emptyContext } from "./MySqlParser.js";
|
|
275
|
+
import { SelectElementContext } from "./MySqlParser.js";
|
|
279
276
|
import { TableAllColumnsContext } from "./MySqlParser.js";
|
|
280
277
|
import { PureAllColumnsContext } from "./MySqlParser.js";
|
|
281
278
|
import { SelectLiteralColumnNameContext } from "./MySqlParser.js";
|
|
@@ -535,10 +532,7 @@ import { UserOrRoleNamesContext } from "./MySqlParser.js";
|
|
|
535
532
|
import { UserOrRoleNameContext } from "./MySqlParser.js";
|
|
536
533
|
import { ColumnNameCreateContext } from "./MySqlParser.js";
|
|
537
534
|
import { ColumnNamesContext } from "./MySqlParser.js";
|
|
538
|
-
import { EmptyColumnContext } from "./MySqlParser.js";
|
|
539
535
|
import { ColumnNameContext } from "./MySqlParser.js";
|
|
540
|
-
import { ColumnNamePathContext } from "./MySqlParser.js";
|
|
541
|
-
import { ColumnNamePathAllowEmptyContext } from "./MySqlParser.js";
|
|
542
536
|
import { TableSpaceNameCreateContext } from "./MySqlParser.js";
|
|
543
537
|
import { TableSpaceNameContext } from "./MySqlParser.js";
|
|
544
538
|
import { PartitionNameCreateContext } from "./MySqlParser.js";
|
|
@@ -3691,53 +3685,15 @@ export declare class MySqlParserListener implements ParseTreeListener {
|
|
|
3691
3685
|
*/
|
|
3692
3686
|
exitSelectElements?: (ctx: SelectElementsContext) => void;
|
|
3693
3687
|
/**
|
|
3694
|
-
* Enter a parse tree produced by
|
|
3695
|
-
* labeled alternative in `MySqlParser.selectElement`.
|
|
3688
|
+
* Enter a parse tree produced by `MySqlParser.selectElement`.
|
|
3696
3689
|
* @param ctx the parse tree
|
|
3697
3690
|
*/
|
|
3698
|
-
|
|
3691
|
+
enterSelectElement?: (ctx: SelectElementContext) => void;
|
|
3699
3692
|
/**
|
|
3700
|
-
* Exit a parse tree produced by
|
|
3701
|
-
* labeled alternative in `MySqlParser.selectElement`.
|
|
3693
|
+
* Exit a parse tree produced by `MySqlParser.selectElement`.
|
|
3702
3694
|
* @param ctx the parse tree
|
|
3703
3695
|
*/
|
|
3704
|
-
|
|
3705
|
-
/**
|
|
3706
|
-
* Enter a parse tree produced by the `selectElement_label`
|
|
3707
|
-
* labeled alternative in `MySqlParser.selectElement`.
|
|
3708
|
-
* @param ctx the parse tree
|
|
3709
|
-
*/
|
|
3710
|
-
enterSelectElement_label?: (ctx: SelectElement_labelContext) => void;
|
|
3711
|
-
/**
|
|
3712
|
-
* Exit a parse tree produced by the `selectElement_label`
|
|
3713
|
-
* labeled alternative in `MySqlParser.selectElement`.
|
|
3714
|
-
* @param ctx the parse tree
|
|
3715
|
-
*/
|
|
3716
|
-
exitSelectElement_label?: (ctx: SelectElement_labelContext) => void;
|
|
3717
|
-
/**
|
|
3718
|
-
* Enter a parse tree produced by the `selectElement_expr`
|
|
3719
|
-
* labeled alternative in `MySqlParser.selectElement`.
|
|
3720
|
-
* @param ctx the parse tree
|
|
3721
|
-
*/
|
|
3722
|
-
enterSelectElement_expr?: (ctx: SelectElement_exprContext) => void;
|
|
3723
|
-
/**
|
|
3724
|
-
* Exit a parse tree produced by the `selectElement_expr`
|
|
3725
|
-
* labeled alternative in `MySqlParser.selectElement`.
|
|
3726
|
-
* @param ctx the parse tree
|
|
3727
|
-
*/
|
|
3728
|
-
exitSelectElement_expr?: (ctx: SelectElement_exprContext) => void;
|
|
3729
|
-
/**
|
|
3730
|
-
* Enter a parse tree produced by the `selectElement_dot_empty`
|
|
3731
|
-
* labeled alternative in `MySqlParser.selectElement`.
|
|
3732
|
-
* @param ctx the parse tree
|
|
3733
|
-
*/
|
|
3734
|
-
enterSelectElement_dot_empty?: (ctx: SelectElement_dot_emptyContext) => void;
|
|
3735
|
-
/**
|
|
3736
|
-
* Exit a parse tree produced by the `selectElement_dot_empty`
|
|
3737
|
-
* labeled alternative in `MySqlParser.selectElement`.
|
|
3738
|
-
* @param ctx the parse tree
|
|
3739
|
-
*/
|
|
3740
|
-
exitSelectElement_dot_empty?: (ctx: SelectElement_dot_emptyContext) => void;
|
|
3696
|
+
exitSelectElement?: (ctx: SelectElementContext) => void;
|
|
3741
3697
|
/**
|
|
3742
3698
|
* Enter a parse tree produced by `MySqlParser.tableAllColumns`.
|
|
3743
3699
|
* @param ctx the parse tree
|
|
@@ -6514,16 +6470,6 @@ export declare class MySqlParserListener implements ParseTreeListener {
|
|
|
6514
6470
|
* @param ctx the parse tree
|
|
6515
6471
|
*/
|
|
6516
6472
|
exitColumnNames?: (ctx: ColumnNamesContext) => void;
|
|
6517
|
-
/**
|
|
6518
|
-
* Enter a parse tree produced by `MySqlParser.emptyColumn`.
|
|
6519
|
-
* @param ctx the parse tree
|
|
6520
|
-
*/
|
|
6521
|
-
enterEmptyColumn?: (ctx: EmptyColumnContext) => void;
|
|
6522
|
-
/**
|
|
6523
|
-
* Exit a parse tree produced by `MySqlParser.emptyColumn`.
|
|
6524
|
-
* @param ctx the parse tree
|
|
6525
|
-
*/
|
|
6526
|
-
exitEmptyColumn?: (ctx: EmptyColumnContext) => void;
|
|
6527
6473
|
/**
|
|
6528
6474
|
* Enter a parse tree produced by `MySqlParser.columnName`.
|
|
6529
6475
|
* @param ctx the parse tree
|
|
@@ -6534,26 +6480,6 @@ export declare class MySqlParserListener implements ParseTreeListener {
|
|
|
6534
6480
|
* @param ctx the parse tree
|
|
6535
6481
|
*/
|
|
6536
6482
|
exitColumnName?: (ctx: ColumnNameContext) => void;
|
|
6537
|
-
/**
|
|
6538
|
-
* Enter a parse tree produced by `MySqlParser.columnNamePath`.
|
|
6539
|
-
* @param ctx the parse tree
|
|
6540
|
-
*/
|
|
6541
|
-
enterColumnNamePath?: (ctx: ColumnNamePathContext) => void;
|
|
6542
|
-
/**
|
|
6543
|
-
* Exit a parse tree produced by `MySqlParser.columnNamePath`.
|
|
6544
|
-
* @param ctx the parse tree
|
|
6545
|
-
*/
|
|
6546
|
-
exitColumnNamePath?: (ctx: ColumnNamePathContext) => void;
|
|
6547
|
-
/**
|
|
6548
|
-
* Enter a parse tree produced by `MySqlParser.columnNamePathAllowEmpty`.
|
|
6549
|
-
* @param ctx the parse tree
|
|
6550
|
-
*/
|
|
6551
|
-
enterColumnNamePathAllowEmpty?: (ctx: ColumnNamePathAllowEmptyContext) => void;
|
|
6552
|
-
/**
|
|
6553
|
-
* Exit a parse tree produced by `MySqlParser.columnNamePathAllowEmpty`.
|
|
6554
|
-
* @param ctx the parse tree
|
|
6555
|
-
*/
|
|
6556
|
-
exitColumnNamePathAllowEmpty?: (ctx: ColumnNamePathAllowEmptyContext) => void;
|
|
6557
6483
|
/**
|
|
6558
6484
|
* Enter a parse tree produced by `MySqlParser.tableSpaceNameCreate`.
|
|
6559
6485
|
* @param ctx the parse tree
|
|
@@ -272,10 +272,7 @@ import { JsonOnEmptyContext } from "./MySqlParser.js";
|
|
|
272
272
|
import { JsonOnErrorContext } from "./MySqlParser.js";
|
|
273
273
|
import { SelectSpecContext } from "./MySqlParser.js";
|
|
274
274
|
import { SelectElementsContext } from "./MySqlParser.js";
|
|
275
|
-
import {
|
|
276
|
-
import { SelectElement_labelContext } from "./MySqlParser.js";
|
|
277
|
-
import { SelectElement_exprContext } from "./MySqlParser.js";
|
|
278
|
-
import { SelectElement_dot_emptyContext } from "./MySqlParser.js";
|
|
275
|
+
import { SelectElementContext } from "./MySqlParser.js";
|
|
279
276
|
import { TableAllColumnsContext } from "./MySqlParser.js";
|
|
280
277
|
import { PureAllColumnsContext } from "./MySqlParser.js";
|
|
281
278
|
import { SelectLiteralColumnNameContext } from "./MySqlParser.js";
|
|
@@ -535,10 +532,7 @@ import { UserOrRoleNamesContext } from "./MySqlParser.js";
|
|
|
535
532
|
import { UserOrRoleNameContext } from "./MySqlParser.js";
|
|
536
533
|
import { ColumnNameCreateContext } from "./MySqlParser.js";
|
|
537
534
|
import { ColumnNamesContext } from "./MySqlParser.js";
|
|
538
|
-
import { EmptyColumnContext } from "./MySqlParser.js";
|
|
539
535
|
import { ColumnNameContext } from "./MySqlParser.js";
|
|
540
|
-
import { ColumnNamePathContext } from "./MySqlParser.js";
|
|
541
|
-
import { ColumnNamePathAllowEmptyContext } from "./MySqlParser.js";
|
|
542
536
|
import { TableSpaceNameCreateContext } from "./MySqlParser.js";
|
|
543
537
|
import { TableSpaceNameContext } from "./MySqlParser.js";
|
|
544
538
|
import { PartitionNameCreateContext } from "./MySqlParser.js";
|
|
@@ -2464,33 +2458,11 @@ export declare class MySqlParserVisitor<Result> extends AbstractParseTreeVisitor
|
|
|
2464
2458
|
*/
|
|
2465
2459
|
visitSelectElements?: (ctx: SelectElementsContext) => Result;
|
|
2466
2460
|
/**
|
|
2467
|
-
* Visit a parse tree produced by
|
|
2468
|
-
* labeled alternative in `MySqlParser.selectElement`.
|
|
2461
|
+
* Visit a parse tree produced by `MySqlParser.selectElement`.
|
|
2469
2462
|
* @param ctx the parse tree
|
|
2470
2463
|
* @return the visitor result
|
|
2471
2464
|
*/
|
|
2472
|
-
|
|
2473
|
-
/**
|
|
2474
|
-
* Visit a parse tree produced by the `selectElement_label`
|
|
2475
|
-
* labeled alternative in `MySqlParser.selectElement`.
|
|
2476
|
-
* @param ctx the parse tree
|
|
2477
|
-
* @return the visitor result
|
|
2478
|
-
*/
|
|
2479
|
-
visitSelectElement_label?: (ctx: SelectElement_labelContext) => Result;
|
|
2480
|
-
/**
|
|
2481
|
-
* Visit a parse tree produced by the `selectElement_expr`
|
|
2482
|
-
* labeled alternative in `MySqlParser.selectElement`.
|
|
2483
|
-
* @param ctx the parse tree
|
|
2484
|
-
* @return the visitor result
|
|
2485
|
-
*/
|
|
2486
|
-
visitSelectElement_expr?: (ctx: SelectElement_exprContext) => Result;
|
|
2487
|
-
/**
|
|
2488
|
-
* Visit a parse tree produced by the `selectElement_dot_empty`
|
|
2489
|
-
* labeled alternative in `MySqlParser.selectElement`.
|
|
2490
|
-
* @param ctx the parse tree
|
|
2491
|
-
* @return the visitor result
|
|
2492
|
-
*/
|
|
2493
|
-
visitSelectElement_dot_empty?: (ctx: SelectElement_dot_emptyContext) => Result;
|
|
2465
|
+
visitSelectElement?: (ctx: SelectElementContext) => Result;
|
|
2494
2466
|
/**
|
|
2495
2467
|
* Visit a parse tree produced by `MySqlParser.tableAllColumns`.
|
|
2496
2468
|
* @param ctx the parse tree
|
|
@@ -4138,30 +4110,12 @@ export declare class MySqlParserVisitor<Result> extends AbstractParseTreeVisitor
|
|
|
4138
4110
|
* @return the visitor result
|
|
4139
4111
|
*/
|
|
4140
4112
|
visitColumnNames?: (ctx: ColumnNamesContext) => Result;
|
|
4141
|
-
/**
|
|
4142
|
-
* Visit a parse tree produced by `MySqlParser.emptyColumn`.
|
|
4143
|
-
* @param ctx the parse tree
|
|
4144
|
-
* @return the visitor result
|
|
4145
|
-
*/
|
|
4146
|
-
visitEmptyColumn?: (ctx: EmptyColumnContext) => Result;
|
|
4147
4113
|
/**
|
|
4148
4114
|
* Visit a parse tree produced by `MySqlParser.columnName`.
|
|
4149
4115
|
* @param ctx the parse tree
|
|
4150
4116
|
* @return the visitor result
|
|
4151
4117
|
*/
|
|
4152
4118
|
visitColumnName?: (ctx: ColumnNameContext) => Result;
|
|
4153
|
-
/**
|
|
4154
|
-
* Visit a parse tree produced by `MySqlParser.columnNamePath`.
|
|
4155
|
-
* @param ctx the parse tree
|
|
4156
|
-
* @return the visitor result
|
|
4157
|
-
*/
|
|
4158
|
-
visitColumnNamePath?: (ctx: ColumnNamePathContext) => Result;
|
|
4159
|
-
/**
|
|
4160
|
-
* Visit a parse tree produced by `MySqlParser.columnNamePathAllowEmpty`.
|
|
4161
|
-
* @param ctx the parse tree
|
|
4162
|
-
* @return the visitor result
|
|
4163
|
-
*/
|
|
4164
|
-
visitColumnNamePathAllowEmpty?: (ctx: ColumnNamePathAllowEmptyContext) => Result;
|
|
4165
4119
|
/**
|
|
4166
4120
|
* Visit a parse tree produced by `MySqlParser.tableSpaceNameCreate`.
|
|
4167
4121
|
* @param ctx the parse tree
|
|
@@ -998,75 +998,73 @@ export declare class PostgreSqlParser extends SQLParserBase {
|
|
|
998
998
|
static readonly RULE_routineName = 399;
|
|
999
999
|
static readonly RULE_procedureName = 400;
|
|
1000
1000
|
static readonly RULE_procedureNameCreate = 401;
|
|
1001
|
-
static readonly
|
|
1002
|
-
static readonly
|
|
1003
|
-
static readonly
|
|
1004
|
-
static readonly
|
|
1005
|
-
static readonly
|
|
1006
|
-
static readonly
|
|
1007
|
-
static readonly
|
|
1008
|
-
static readonly
|
|
1009
|
-
static readonly
|
|
1010
|
-
static readonly
|
|
1011
|
-
static readonly
|
|
1012
|
-
static readonly
|
|
1013
|
-
static readonly
|
|
1014
|
-
static readonly
|
|
1015
|
-
static readonly
|
|
1016
|
-
static readonly
|
|
1017
|
-
static readonly
|
|
1018
|
-
static readonly
|
|
1019
|
-
static readonly
|
|
1020
|
-
static readonly
|
|
1021
|
-
static readonly
|
|
1022
|
-
static readonly
|
|
1023
|
-
static readonly
|
|
1024
|
-
static readonly
|
|
1025
|
-
static readonly
|
|
1026
|
-
static readonly
|
|
1027
|
-
static readonly
|
|
1028
|
-
static readonly
|
|
1029
|
-
static readonly
|
|
1030
|
-
static readonly
|
|
1031
|
-
static readonly
|
|
1032
|
-
static readonly
|
|
1033
|
-
static readonly
|
|
1034
|
-
static readonly
|
|
1035
|
-
static readonly
|
|
1036
|
-
static readonly
|
|
1037
|
-
static readonly
|
|
1038
|
-
static readonly
|
|
1039
|
-
static readonly
|
|
1040
|
-
static readonly
|
|
1041
|
-
static readonly
|
|
1042
|
-
static readonly
|
|
1043
|
-
static readonly
|
|
1044
|
-
static readonly
|
|
1045
|
-
static readonly
|
|
1046
|
-
static readonly
|
|
1047
|
-
static readonly
|
|
1048
|
-
static readonly
|
|
1049
|
-
static readonly
|
|
1050
|
-
static readonly
|
|
1051
|
-
static readonly
|
|
1052
|
-
static readonly
|
|
1053
|
-
static readonly
|
|
1054
|
-
static readonly
|
|
1055
|
-
static readonly
|
|
1056
|
-
static readonly
|
|
1057
|
-
static readonly
|
|
1058
|
-
static readonly
|
|
1059
|
-
static readonly
|
|
1060
|
-
static readonly
|
|
1061
|
-
static readonly
|
|
1062
|
-
static readonly
|
|
1063
|
-
static readonly
|
|
1064
|
-
static readonly
|
|
1065
|
-
static readonly
|
|
1066
|
-
static readonly
|
|
1067
|
-
static readonly
|
|
1068
|
-
static readonly RULE_anyIdentifier = 469;
|
|
1069
|
-
static readonly RULE_sqlExpression = 470;
|
|
1001
|
+
static readonly RULE_columnName = 402;
|
|
1002
|
+
static readonly RULE_columnNamePath = 403;
|
|
1003
|
+
static readonly RULE_columnNameCreate = 404;
|
|
1004
|
+
static readonly RULE_functionNameCreate = 405;
|
|
1005
|
+
static readonly RULE_functionName = 406;
|
|
1006
|
+
static readonly RULE_stringConst = 407;
|
|
1007
|
+
static readonly RULE_anysconst = 408;
|
|
1008
|
+
static readonly RULE_signedConst = 409;
|
|
1009
|
+
static readonly RULE_roleSpec = 410;
|
|
1010
|
+
static readonly RULE_roleList = 411;
|
|
1011
|
+
static readonly RULE_colId = 412;
|
|
1012
|
+
static readonly RULE_typeFunctionName = 413;
|
|
1013
|
+
static readonly RULE_nonReservedWord = 414;
|
|
1014
|
+
static readonly RULE_colLabel = 415;
|
|
1015
|
+
static readonly RULE_identifier = 416;
|
|
1016
|
+
static readonly RULE_unreservedKeyword = 417;
|
|
1017
|
+
static readonly RULE_colNameKeyword = 418;
|
|
1018
|
+
static readonly RULE_typeFuncNameKeyword = 419;
|
|
1019
|
+
static readonly RULE_reservedKeyword = 420;
|
|
1020
|
+
static readonly RULE_plBlock = 421;
|
|
1021
|
+
static readonly RULE_labelDecl = 422;
|
|
1022
|
+
static readonly RULE_declStatement = 423;
|
|
1023
|
+
static readonly RULE_declCursorArg = 424;
|
|
1024
|
+
static readonly RULE_assignOperator = 425;
|
|
1025
|
+
static readonly RULE_procStmt = 426;
|
|
1026
|
+
static readonly RULE_stmtPerform = 427;
|
|
1027
|
+
static readonly RULE_stmtCall = 428;
|
|
1028
|
+
static readonly RULE_stmtAssign = 429;
|
|
1029
|
+
static readonly RULE_stmtGetdiag = 430;
|
|
1030
|
+
static readonly RULE_getdiagListItem = 431;
|
|
1031
|
+
static readonly RULE_assignVar = 432;
|
|
1032
|
+
static readonly RULE_stmtIf = 433;
|
|
1033
|
+
static readonly RULE_stmtElse = 434;
|
|
1034
|
+
static readonly RULE_stmtCase = 435;
|
|
1035
|
+
static readonly RULE_stmtLoopWhileFor = 436;
|
|
1036
|
+
static readonly RULE_forControl = 437;
|
|
1037
|
+
static readonly RULE_stmtForeach = 438;
|
|
1038
|
+
static readonly RULE_stmtExit = 439;
|
|
1039
|
+
static readonly RULE_stmtReturn = 440;
|
|
1040
|
+
static readonly RULE_stmtRaise = 441;
|
|
1041
|
+
static readonly RULE_optRaiseUsingElem = 442;
|
|
1042
|
+
static readonly RULE_stmtAssert = 443;
|
|
1043
|
+
static readonly RULE_loopBody = 444;
|
|
1044
|
+
static readonly RULE_stmtExecsql = 445;
|
|
1045
|
+
static readonly RULE_stmtDynexecute = 446;
|
|
1046
|
+
static readonly RULE_optExecuteInto = 447;
|
|
1047
|
+
static readonly RULE_stmtOpen = 448;
|
|
1048
|
+
static readonly RULE_optOpenBoundListItem = 449;
|
|
1049
|
+
static readonly RULE_stmtFetch = 450;
|
|
1050
|
+
static readonly RULE_optFetchFirection = 451;
|
|
1051
|
+
static readonly RULE_stmtMove = 452;
|
|
1052
|
+
static readonly RULE_mergeStmt = 453;
|
|
1053
|
+
static readonly RULE_dataSource = 454;
|
|
1054
|
+
static readonly RULE_mergeWhenClause = 455;
|
|
1055
|
+
static readonly RULE_mergeInsert = 456;
|
|
1056
|
+
static readonly RULE_mergeUpdate = 457;
|
|
1057
|
+
static readonly RULE_defaultValuesOrValues = 458;
|
|
1058
|
+
static readonly RULE_exprofdefault = 459;
|
|
1059
|
+
static readonly RULE_stmtClose = 460;
|
|
1060
|
+
static readonly RULE_stmtNull = 461;
|
|
1061
|
+
static readonly RULE_stmtCommitOrRollback = 462;
|
|
1062
|
+
static readonly RULE_stmtSet = 463;
|
|
1063
|
+
static readonly RULE_cursorVariable = 464;
|
|
1064
|
+
static readonly RULE_exceptionSect = 465;
|
|
1065
|
+
static readonly RULE_procCondition = 466;
|
|
1066
|
+
static readonly RULE_anyIdentifier = 467;
|
|
1067
|
+
static readonly RULE_sqlExpression = 468;
|
|
1070
1068
|
static readonly literalNames: (string | null)[];
|
|
1071
1069
|
static readonly symbolicNames: (string | null)[];
|
|
1072
1070
|
static readonly ruleNames: string[];
|
|
@@ -1482,7 +1480,6 @@ export declare class PostgreSqlParser extends SQLParserBase {
|
|
|
1482
1480
|
routineName(): RoutineNameContext;
|
|
1483
1481
|
procedureName(): ProcedureNameContext;
|
|
1484
1482
|
procedureNameCreate(): ProcedureNameCreateContext;
|
|
1485
|
-
emptyColumn(): EmptyColumnContext;
|
|
1486
1483
|
columnName(): ColumnNameContext;
|
|
1487
1484
|
columnNamePath(): ColumnNamePathContext;
|
|
1488
1485
|
columnNameCreate(): ColumnNameCreateContext;
|
|
@@ -1497,7 +1494,6 @@ export declare class PostgreSqlParser extends SQLParserBase {
|
|
|
1497
1494
|
typeFunctionName(): TypeFunctionNameContext;
|
|
1498
1495
|
nonReservedWord(): NonReservedWordContext;
|
|
1499
1496
|
colLabel(): ColLabelContext;
|
|
1500
|
-
indirectionLabel(): IndirectionLabelContext;
|
|
1501
1497
|
identifier(): IdentifierContext;
|
|
1502
1498
|
unreservedKeyword(): UnreservedKeywordContext;
|
|
1503
1499
|
colNameKeyword(): ColNameKeywordContext;
|
|
@@ -1555,7 +1551,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
|
|
|
1555
1551
|
private booleanExpression_sempred;
|
|
1556
1552
|
private valueExpression_sempred;
|
|
1557
1553
|
private primaryExpression_sempred;
|
|
1558
|
-
private
|
|
1554
|
+
private columnName_sempred;
|
|
1559
1555
|
static readonly _serializedATN: number[];
|
|
1560
1556
|
private static __ATN;
|
|
1561
1557
|
static get _ATN(): antlr.ATN;
|
|
@@ -7918,7 +7914,7 @@ export declare class When_clauseContext extends antlr.ParserRuleContext {
|
|
|
7918
7914
|
export declare class IndirectionElContext extends antlr.ParserRuleContext {
|
|
7919
7915
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
7920
7916
|
DOT(): antlr.TerminalNode | null;
|
|
7921
|
-
|
|
7917
|
+
colLabel(): ColLabelContext | null;
|
|
7922
7918
|
STAR(): antlr.TerminalNode | null;
|
|
7923
7919
|
OPEN_BRACKET(): antlr.TerminalNode | null;
|
|
7924
7920
|
CLOSE_BRACKET(): antlr.TerminalNode | null;
|
|
@@ -7964,22 +7960,6 @@ export declare class TargetElContext extends antlr.ParserRuleContext {
|
|
|
7964
7960
|
get ruleIndex(): number;
|
|
7965
7961
|
copyFrom(ctx: TargetElContext): void;
|
|
7966
7962
|
}
|
|
7967
|
-
export declare class Target_emptyContext extends TargetElContext {
|
|
7968
|
-
constructor(ctx: TargetElContext);
|
|
7969
|
-
emptyColumn(): EmptyColumnContext;
|
|
7970
|
-
enterRule(listener: PostgreSqlParserListener): void;
|
|
7971
|
-
exitRule(listener: PostgreSqlParserListener): void;
|
|
7972
|
-
accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
|
|
7973
|
-
}
|
|
7974
|
-
export declare class Target_dot_emptyContext extends TargetElContext {
|
|
7975
|
-
constructor(ctx: TargetElContext);
|
|
7976
|
-
colId(): ColIdContext;
|
|
7977
|
-
DOT(): antlr.TerminalNode;
|
|
7978
|
-
emptyColumn(): EmptyColumnContext;
|
|
7979
|
-
enterRule(listener: PostgreSqlParserListener): void;
|
|
7980
|
-
exitRule(listener: PostgreSqlParserListener): void;
|
|
7981
|
-
accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
|
|
7982
|
-
}
|
|
7983
7963
|
export declare class Target_starContext extends TargetElContext {
|
|
7984
7964
|
constructor(ctx: TargetElContext);
|
|
7985
7965
|
tableAllColumns(): TableAllColumnsContext;
|
|
@@ -8193,17 +8173,10 @@ export declare class ProcedureNameCreateContext extends antlr.ParserRuleContext
|
|
|
8193
8173
|
exitRule(listener: PostgreSqlParserListener): void;
|
|
8194
8174
|
accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
|
|
8195
8175
|
}
|
|
8196
|
-
export declare class EmptyColumnContext extends antlr.ParserRuleContext {
|
|
8197
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
8198
|
-
get ruleIndex(): number;
|
|
8199
|
-
enterRule(listener: PostgreSqlParserListener): void;
|
|
8200
|
-
exitRule(listener: PostgreSqlParserListener): void;
|
|
8201
|
-
accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
|
|
8202
|
-
}
|
|
8203
8176
|
export declare class ColumnNameContext extends antlr.ParserRuleContext {
|
|
8204
8177
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
8205
|
-
colId(): ColIdContext;
|
|
8206
|
-
optIndirection(): OptIndirectionContext;
|
|
8178
|
+
colId(): ColIdContext | null;
|
|
8179
|
+
optIndirection(): OptIndirectionContext | null;
|
|
8207
8180
|
get ruleIndex(): number;
|
|
8208
8181
|
enterRule(listener: PostgreSqlParserListener): void;
|
|
8209
8182
|
exitRule(listener: PostgreSqlParserListener): void;
|
|
@@ -8342,16 +8315,6 @@ export declare class ColLabelContext extends antlr.ParserRuleContext {
|
|
|
8342
8315
|
exitRule(listener: PostgreSqlParserListener): void;
|
|
8343
8316
|
accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
|
|
8344
8317
|
}
|
|
8345
|
-
export declare class IndirectionLabelContext extends antlr.ParserRuleContext {
|
|
8346
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
8347
|
-
identifier(): IdentifierContext | null;
|
|
8348
|
-
colNameKeyword(): ColNameKeywordContext | null;
|
|
8349
|
-
typeFuncNameKeyword(): TypeFuncNameKeywordContext | null;
|
|
8350
|
-
get ruleIndex(): number;
|
|
8351
|
-
enterRule(listener: PostgreSqlParserListener): void;
|
|
8352
|
-
exitRule(listener: PostgreSqlParserListener): void;
|
|
8353
|
-
accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
|
|
8354
|
-
}
|
|
8355
8318
|
export declare class IdentifierContext extends antlr.ParserRuleContext {
|
|
8356
8319
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
8357
8320
|
Identifier(): antlr.TerminalNode | null;
|