dt-sql-parser 4.5.0-beta.0 → 4.5.0-beta.1
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 +13 -1
- package/dist/lib/SQLParserBase.js +40 -5
- package/dist/lib/flink/FlinkSqlParser.d.ts +222 -179
- package/dist/lib/flink/FlinkSqlParser.js +3300 -2949
- package/dist/lib/flink/FlinkSqlParserListener.d.ts +33 -0
- package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +21 -0
- package/dist/lib/hive/HiveSqlParser.d.ts +274 -228
- package/dist/lib/hive/HiveSqlParser.js +6304 -5912
- package/dist/lib/hive/HiveSqlParserListener.d.ts +33 -0
- package/dist/lib/hive/HiveSqlParserVisitor.d.ts +21 -0
- package/dist/lib/impala/ImpalaSqlParser.d.ts +145 -103
- package/dist/lib/impala/ImpalaSqlParser.js +3687 -3320
- package/dist/lib/impala/ImpalaSqlParserListener.d.ts +33 -0
- package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +21 -0
- package/dist/lib/mysql/MySqlParser.d.ts +161 -94
- package/dist/lib/mysql/MySqlParser.js +9959 -9499
- package/dist/lib/mysql/MySqlParserListener.d.ts +79 -5
- package/dist/lib/mysql/MySqlParserVisitor.d.ts +49 -3
- package/dist/lib/postgresql/PostgreSqlParser.d.ts +108 -71
- package/dist/lib/postgresql/PostgreSqlParser.js +13330 -10388
- package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +48 -0
- package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +30 -0
- package/dist/lib/spark/SparkSqlParser.d.ts +185 -145
- package/dist/lib/spark/SparkSqlParser.js +5463 -5152
- package/dist/lib/spark/SparkSqlParserListener.d.ts +33 -0
- package/dist/lib/spark/SparkSqlParserVisitor.d.ts +21 -0
- package/dist/parser/common/basicSQL.d.ts +5 -5
- package/dist/parser/common/basicSQL.js +3 -3
- package/dist/parser/common/entityCollector.js +14 -2
- package/dist/parser/flink/index.js +5 -2
- package/dist/parser/mysql/index.js +3 -1
- package/dist/parser/mysql/mysqlEntityCollector.d.ts +2 -1
- package/dist/parser/mysql/mysqlEntityCollector.js +13 -3
- package/dist/parser/mysql/mysqlErrorListener.js +2 -0
- package/dist/parser/postgresql/postgreEntityCollector.d.ts +3 -1
- package/dist/parser/postgresql/postgreEntityCollector.js +13 -0
- package/dist/parser/spark/index.js +3 -1
- package/package.json +1 -1
|
@@ -272,7 +272,10 @@ 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 {
|
|
275
|
+
import { SelectElement_starContext } from "./MySqlParser.js";
|
|
276
|
+
import { SelectElement_labelContext } from "./MySqlParser.js";
|
|
277
|
+
import { SelectElement_exprContext } from "./MySqlParser.js";
|
|
278
|
+
import { SelectElement_dot_emptyContext } from "./MySqlParser.js";
|
|
276
279
|
import { TableAllColumnsContext } from "./MySqlParser.js";
|
|
277
280
|
import { PureAllColumnsContext } from "./MySqlParser.js";
|
|
278
281
|
import { SelectLiteralColumnNameContext } from "./MySqlParser.js";
|
|
@@ -532,7 +535,10 @@ import { UserOrRoleNamesContext } from "./MySqlParser.js";
|
|
|
532
535
|
import { UserOrRoleNameContext } from "./MySqlParser.js";
|
|
533
536
|
import { ColumnNameCreateContext } from "./MySqlParser.js";
|
|
534
537
|
import { ColumnNamesContext } from "./MySqlParser.js";
|
|
538
|
+
import { EmptyColumnContext } from "./MySqlParser.js";
|
|
535
539
|
import { ColumnNameContext } from "./MySqlParser.js";
|
|
540
|
+
import { ColumnNamePathContext } from "./MySqlParser.js";
|
|
541
|
+
import { ColumnNamePathAllowEmptyContext } from "./MySqlParser.js";
|
|
536
542
|
import { TableSpaceNameCreateContext } from "./MySqlParser.js";
|
|
537
543
|
import { TableSpaceNameContext } from "./MySqlParser.js";
|
|
538
544
|
import { PartitionNameCreateContext } from "./MySqlParser.js";
|
|
@@ -3685,15 +3691,53 @@ export declare class MySqlParserListener implements ParseTreeListener {
|
|
|
3685
3691
|
*/
|
|
3686
3692
|
exitSelectElements?: (ctx: SelectElementsContext) => void;
|
|
3687
3693
|
/**
|
|
3688
|
-
* Enter a parse tree produced by `
|
|
3694
|
+
* Enter a parse tree produced by the `selectElement_star`
|
|
3695
|
+
* labeled alternative in `MySqlParser.selectElement`.
|
|
3689
3696
|
* @param ctx the parse tree
|
|
3690
3697
|
*/
|
|
3691
|
-
|
|
3698
|
+
enterSelectElement_star?: (ctx: SelectElement_starContext) => void;
|
|
3692
3699
|
/**
|
|
3693
|
-
* Exit a parse tree produced by `
|
|
3700
|
+
* Exit a parse tree produced by the `selectElement_star`
|
|
3701
|
+
* labeled alternative in `MySqlParser.selectElement`.
|
|
3694
3702
|
* @param ctx the parse tree
|
|
3695
3703
|
*/
|
|
3696
|
-
|
|
3704
|
+
exitSelectElement_star?: (ctx: SelectElement_starContext) => void;
|
|
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;
|
|
3697
3741
|
/**
|
|
3698
3742
|
* Enter a parse tree produced by `MySqlParser.tableAllColumns`.
|
|
3699
3743
|
* @param ctx the parse tree
|
|
@@ -6470,6 +6514,16 @@ export declare class MySqlParserListener implements ParseTreeListener {
|
|
|
6470
6514
|
* @param ctx the parse tree
|
|
6471
6515
|
*/
|
|
6472
6516
|
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;
|
|
6473
6527
|
/**
|
|
6474
6528
|
* Enter a parse tree produced by `MySqlParser.columnName`.
|
|
6475
6529
|
* @param ctx the parse tree
|
|
@@ -6480,6 +6534,26 @@ export declare class MySqlParserListener implements ParseTreeListener {
|
|
|
6480
6534
|
* @param ctx the parse tree
|
|
6481
6535
|
*/
|
|
6482
6536
|
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;
|
|
6483
6557
|
/**
|
|
6484
6558
|
* Enter a parse tree produced by `MySqlParser.tableSpaceNameCreate`.
|
|
6485
6559
|
* @param ctx the parse tree
|
|
@@ -272,7 +272,10 @@ 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 {
|
|
275
|
+
import { SelectElement_starContext } from "./MySqlParser.js";
|
|
276
|
+
import { SelectElement_labelContext } from "./MySqlParser.js";
|
|
277
|
+
import { SelectElement_exprContext } from "./MySqlParser.js";
|
|
278
|
+
import { SelectElement_dot_emptyContext } from "./MySqlParser.js";
|
|
276
279
|
import { TableAllColumnsContext } from "./MySqlParser.js";
|
|
277
280
|
import { PureAllColumnsContext } from "./MySqlParser.js";
|
|
278
281
|
import { SelectLiteralColumnNameContext } from "./MySqlParser.js";
|
|
@@ -532,7 +535,10 @@ import { UserOrRoleNamesContext } from "./MySqlParser.js";
|
|
|
532
535
|
import { UserOrRoleNameContext } from "./MySqlParser.js";
|
|
533
536
|
import { ColumnNameCreateContext } from "./MySqlParser.js";
|
|
534
537
|
import { ColumnNamesContext } from "./MySqlParser.js";
|
|
538
|
+
import { EmptyColumnContext } from "./MySqlParser.js";
|
|
535
539
|
import { ColumnNameContext } from "./MySqlParser.js";
|
|
540
|
+
import { ColumnNamePathContext } from "./MySqlParser.js";
|
|
541
|
+
import { ColumnNamePathAllowEmptyContext } from "./MySqlParser.js";
|
|
536
542
|
import { TableSpaceNameCreateContext } from "./MySqlParser.js";
|
|
537
543
|
import { TableSpaceNameContext } from "./MySqlParser.js";
|
|
538
544
|
import { PartitionNameCreateContext } from "./MySqlParser.js";
|
|
@@ -2458,11 +2464,33 @@ export declare class MySqlParserVisitor<Result> extends AbstractParseTreeVisitor
|
|
|
2458
2464
|
*/
|
|
2459
2465
|
visitSelectElements?: (ctx: SelectElementsContext) => Result;
|
|
2460
2466
|
/**
|
|
2461
|
-
* Visit a parse tree produced by `
|
|
2467
|
+
* Visit a parse tree produced by the `selectElement_star`
|
|
2468
|
+
* labeled alternative in `MySqlParser.selectElement`.
|
|
2462
2469
|
* @param ctx the parse tree
|
|
2463
2470
|
* @return the visitor result
|
|
2464
2471
|
*/
|
|
2465
|
-
|
|
2472
|
+
visitSelectElement_star?: (ctx: SelectElement_starContext) => Result;
|
|
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;
|
|
2466
2494
|
/**
|
|
2467
2495
|
* Visit a parse tree produced by `MySqlParser.tableAllColumns`.
|
|
2468
2496
|
* @param ctx the parse tree
|
|
@@ -4110,12 +4138,30 @@ export declare class MySqlParserVisitor<Result> extends AbstractParseTreeVisitor
|
|
|
4110
4138
|
* @return the visitor result
|
|
4111
4139
|
*/
|
|
4112
4140
|
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;
|
|
4113
4147
|
/**
|
|
4114
4148
|
* Visit a parse tree produced by `MySqlParser.columnName`.
|
|
4115
4149
|
* @param ctx the parse tree
|
|
4116
4150
|
* @return the visitor result
|
|
4117
4151
|
*/
|
|
4118
4152
|
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;
|
|
4119
4165
|
/**
|
|
4120
4166
|
* Visit a parse tree produced by `MySqlParser.tableSpaceNameCreate`.
|
|
4121
4167
|
* @param ctx the parse tree
|
|
@@ -998,73 +998,75 @@ 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
|
|
1001
|
+
static readonly RULE_emptyColumn = 402;
|
|
1002
|
+
static readonly RULE_columnName = 403;
|
|
1003
|
+
static readonly RULE_columnNamePath = 404;
|
|
1004
|
+
static readonly RULE_columnNameCreate = 405;
|
|
1005
|
+
static readonly RULE_functionNameCreate = 406;
|
|
1006
|
+
static readonly RULE_functionName = 407;
|
|
1007
|
+
static readonly RULE_stringConst = 408;
|
|
1008
|
+
static readonly RULE_anysconst = 409;
|
|
1009
|
+
static readonly RULE_signedConst = 410;
|
|
1010
|
+
static readonly RULE_roleSpec = 411;
|
|
1011
|
+
static readonly RULE_roleList = 412;
|
|
1012
|
+
static readonly RULE_colId = 413;
|
|
1013
|
+
static readonly RULE_typeFunctionName = 414;
|
|
1014
|
+
static readonly RULE_nonReservedWord = 415;
|
|
1015
|
+
static readonly RULE_colLabel = 416;
|
|
1016
|
+
static readonly RULE_indirectionLabel = 417;
|
|
1017
|
+
static readonly RULE_identifier = 418;
|
|
1018
|
+
static readonly RULE_unreservedKeyword = 419;
|
|
1019
|
+
static readonly RULE_colNameKeyword = 420;
|
|
1020
|
+
static readonly RULE_typeFuncNameKeyword = 421;
|
|
1021
|
+
static readonly RULE_reservedKeyword = 422;
|
|
1022
|
+
static readonly RULE_plBlock = 423;
|
|
1023
|
+
static readonly RULE_labelDecl = 424;
|
|
1024
|
+
static readonly RULE_declStatement = 425;
|
|
1025
|
+
static readonly RULE_declCursorArg = 426;
|
|
1026
|
+
static readonly RULE_assignOperator = 427;
|
|
1027
|
+
static readonly RULE_procStmt = 428;
|
|
1028
|
+
static readonly RULE_stmtPerform = 429;
|
|
1029
|
+
static readonly RULE_stmtCall = 430;
|
|
1030
|
+
static readonly RULE_stmtAssign = 431;
|
|
1031
|
+
static readonly RULE_stmtGetdiag = 432;
|
|
1032
|
+
static readonly RULE_getdiagListItem = 433;
|
|
1033
|
+
static readonly RULE_assignVar = 434;
|
|
1034
|
+
static readonly RULE_stmtIf = 435;
|
|
1035
|
+
static readonly RULE_stmtElse = 436;
|
|
1036
|
+
static readonly RULE_stmtCase = 437;
|
|
1037
|
+
static readonly RULE_stmtLoopWhileFor = 438;
|
|
1038
|
+
static readonly RULE_forControl = 439;
|
|
1039
|
+
static readonly RULE_stmtForeach = 440;
|
|
1040
|
+
static readonly RULE_stmtExit = 441;
|
|
1041
|
+
static readonly RULE_stmtReturn = 442;
|
|
1042
|
+
static readonly RULE_stmtRaise = 443;
|
|
1043
|
+
static readonly RULE_optRaiseUsingElem = 444;
|
|
1044
|
+
static readonly RULE_stmtAssert = 445;
|
|
1045
|
+
static readonly RULE_loopBody = 446;
|
|
1046
|
+
static readonly RULE_stmtExecsql = 447;
|
|
1047
|
+
static readonly RULE_stmtDynexecute = 448;
|
|
1048
|
+
static readonly RULE_optExecuteInto = 449;
|
|
1049
|
+
static readonly RULE_stmtOpen = 450;
|
|
1050
|
+
static readonly RULE_optOpenBoundListItem = 451;
|
|
1051
|
+
static readonly RULE_stmtFetch = 452;
|
|
1052
|
+
static readonly RULE_optFetchFirection = 453;
|
|
1053
|
+
static readonly RULE_stmtMove = 454;
|
|
1054
|
+
static readonly RULE_mergeStmt = 455;
|
|
1055
|
+
static readonly RULE_dataSource = 456;
|
|
1056
|
+
static readonly RULE_mergeWhenClause = 457;
|
|
1057
|
+
static readonly RULE_mergeInsert = 458;
|
|
1058
|
+
static readonly RULE_mergeUpdate = 459;
|
|
1059
|
+
static readonly RULE_defaultValuesOrValues = 460;
|
|
1060
|
+
static readonly RULE_exprofdefault = 461;
|
|
1061
|
+
static readonly RULE_stmtClose = 462;
|
|
1062
|
+
static readonly RULE_stmtNull = 463;
|
|
1063
|
+
static readonly RULE_stmtCommitOrRollback = 464;
|
|
1064
|
+
static readonly RULE_stmtSet = 465;
|
|
1065
|
+
static readonly RULE_cursorVariable = 466;
|
|
1066
|
+
static readonly RULE_exceptionSect = 467;
|
|
1067
|
+
static readonly RULE_procCondition = 468;
|
|
1068
|
+
static readonly RULE_anyIdentifier = 469;
|
|
1069
|
+
static readonly RULE_sqlExpression = 470;
|
|
1068
1070
|
static readonly literalNames: (string | null)[];
|
|
1069
1071
|
static readonly symbolicNames: (string | null)[];
|
|
1070
1072
|
static readonly ruleNames: string[];
|
|
@@ -1480,6 +1482,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
|
|
|
1480
1482
|
routineName(): RoutineNameContext;
|
|
1481
1483
|
procedureName(): ProcedureNameContext;
|
|
1482
1484
|
procedureNameCreate(): ProcedureNameCreateContext;
|
|
1485
|
+
emptyColumn(): EmptyColumnContext;
|
|
1483
1486
|
columnName(): ColumnNameContext;
|
|
1484
1487
|
columnNamePath(): ColumnNamePathContext;
|
|
1485
1488
|
columnNameCreate(): ColumnNameCreateContext;
|
|
@@ -1494,6 +1497,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
|
|
|
1494
1497
|
typeFunctionName(): TypeFunctionNameContext;
|
|
1495
1498
|
nonReservedWord(): NonReservedWordContext;
|
|
1496
1499
|
colLabel(): ColLabelContext;
|
|
1500
|
+
indirectionLabel(): IndirectionLabelContext;
|
|
1497
1501
|
identifier(): IdentifierContext;
|
|
1498
1502
|
unreservedKeyword(): UnreservedKeywordContext;
|
|
1499
1503
|
colNameKeyword(): ColNameKeywordContext;
|
|
@@ -1551,7 +1555,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
|
|
|
1551
1555
|
private booleanExpression_sempred;
|
|
1552
1556
|
private valueExpression_sempred;
|
|
1553
1557
|
private primaryExpression_sempred;
|
|
1554
|
-
private
|
|
1558
|
+
private targetEl_sempred;
|
|
1555
1559
|
static readonly _serializedATN: number[];
|
|
1556
1560
|
private static __ATN;
|
|
1557
1561
|
static get _ATN(): antlr.ATN;
|
|
@@ -7914,7 +7918,7 @@ export declare class When_clauseContext extends antlr.ParserRuleContext {
|
|
|
7914
7918
|
export declare class IndirectionElContext extends antlr.ParserRuleContext {
|
|
7915
7919
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
7916
7920
|
DOT(): antlr.TerminalNode | null;
|
|
7917
|
-
|
|
7921
|
+
indirectionLabel(): IndirectionLabelContext | null;
|
|
7918
7922
|
STAR(): antlr.TerminalNode | null;
|
|
7919
7923
|
OPEN_BRACKET(): antlr.TerminalNode | null;
|
|
7920
7924
|
CLOSE_BRACKET(): antlr.TerminalNode | null;
|
|
@@ -7960,6 +7964,22 @@ export declare class TargetElContext extends antlr.ParserRuleContext {
|
|
|
7960
7964
|
get ruleIndex(): number;
|
|
7961
7965
|
copyFrom(ctx: TargetElContext): void;
|
|
7962
7966
|
}
|
|
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
|
+
}
|
|
7963
7983
|
export declare class Target_starContext extends TargetElContext {
|
|
7964
7984
|
constructor(ctx: TargetElContext);
|
|
7965
7985
|
tableAllColumns(): TableAllColumnsContext;
|
|
@@ -8173,10 +8193,17 @@ export declare class ProcedureNameCreateContext extends antlr.ParserRuleContext
|
|
|
8173
8193
|
exitRule(listener: PostgreSqlParserListener): void;
|
|
8174
8194
|
accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
|
|
8175
8195
|
}
|
|
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
|
+
}
|
|
8176
8203
|
export declare class ColumnNameContext extends antlr.ParserRuleContext {
|
|
8177
8204
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
8178
|
-
colId(): ColIdContext
|
|
8179
|
-
optIndirection(): OptIndirectionContext
|
|
8205
|
+
colId(): ColIdContext;
|
|
8206
|
+
optIndirection(): OptIndirectionContext;
|
|
8180
8207
|
get ruleIndex(): number;
|
|
8181
8208
|
enterRule(listener: PostgreSqlParserListener): void;
|
|
8182
8209
|
exitRule(listener: PostgreSqlParserListener): void;
|
|
@@ -8315,6 +8342,16 @@ export declare class ColLabelContext extends antlr.ParserRuleContext {
|
|
|
8315
8342
|
exitRule(listener: PostgreSqlParserListener): void;
|
|
8316
8343
|
accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
|
|
8317
8344
|
}
|
|
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
|
+
}
|
|
8318
8355
|
export declare class IdentifierContext extends antlr.ParserRuleContext {
|
|
8319
8356
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
8320
8357
|
Identifier(): antlr.TerminalNode | null;
|