dt-sql-parser 4.5.1 → 4.5.2-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/flink/FlinkSqlParser.d.ts +220 -363
- package/dist/lib/flink/FlinkSqlParser.js +3246 -4046
- package/dist/lib/flink/FlinkSqlParserListener.d.ts +0 -154
- package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +0 -98
- 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 +515 -943
- package/dist/lib/hive/HiveSqlParser.js +8234 -10573
- package/dist/lib/hive/HiveSqlParserListener.d.ts +50 -490
- package/dist/lib/hive/HiveSqlParserVisitor.d.ts +30 -310
- package/dist/lib/impala/ImpalaSqlParser.d.ts +96 -131
- package/dist/lib/impala/ImpalaSqlParser.js +3311 -3522
- package/dist/lib/impala/ImpalaSqlParserListener.d.ts +0 -44
- package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +0 -28
- package/dist/lib/mysql/MySqlParser.d.ts +425 -465
- package/dist/lib/mysql/MySqlParser.js +10300 -10510
- package/dist/lib/mysql/MySqlParserListener.d.ts +0 -44
- package/dist/lib/mysql/MySqlParserVisitor.d.ts +0 -28
- package/dist/lib/postgresql/PostgreSqlParser.d.ts +181 -164
- package/dist/lib/postgresql/PostgreSqlParser.js +10273 -10121
- package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +11 -0
- package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +7 -0
- package/dist/lib/trino/TrinoSqlListener.d.ts +0 -328
- package/dist/lib/trino/TrinoSqlParser.d.ts +205 -477
- package/dist/lib/trino/TrinoSqlParser.js +6689 -7898
- package/dist/lib/trino/TrinoSqlVisitor.d.ts +0 -206
- 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/generic/genericEntityCollector.d.ts +7 -2
- package/dist/parser/generic/genericEntityCollector.js +65 -15
- package/dist/parser/generic/index.js +12 -0
- package/dist/parser/hive/hiveEntityCollector.d.ts +2 -1
- package/dist/parser/hive/hiveEntityCollector.js +5 -0
- package/dist/parser/impala/impalaEntityCollector.d.ts +2 -1
- package/dist/parser/impala/impalaEntityCollector.js +4 -0
- package/dist/parser/mysql/mysqlEntityCollector.d.ts +2 -1
- package/dist/parser/mysql/mysqlEntityCollector.js +19 -0
- package/dist/parser/postgresql/postgreEntityCollector.d.ts +2 -1
- package/dist/parser/postgresql/postgreEntityCollector.js +5 -0
- package/dist/parser/spark/sparkEntityCollector.d.ts +2 -1
- package/dist/parser/spark/sparkEntityCollector.js +5 -0
- package/dist/parser/trino/trinoEntityCollector.d.ts +2 -1
- package/dist/parser/trino/trinoEntityCollector.js +5 -0
- package/package.json +1 -1
|
@@ -2,7 +2,6 @@ import { ErrorNode, ParseTreeListener, ParserRuleContext, TerminalNode } from "a
|
|
|
2
2
|
import { ProgramContext } from "./MySqlParser.js";
|
|
3
3
|
import { SingleStatementContext } from "./MySqlParser.js";
|
|
4
4
|
import { SqlStatementContext } from "./MySqlParser.js";
|
|
5
|
-
import { EmptyStatement_Context } from "./MySqlParser.js";
|
|
6
5
|
import { DdlStatementContext } from "./MySqlParser.js";
|
|
7
6
|
import { DmlStatementContext } from "./MySqlParser.js";
|
|
8
7
|
import { TransactionStatementContext } from "./MySqlParser.js";
|
|
@@ -629,9 +628,6 @@ import { OverClauseContext } from "./MySqlParser.js";
|
|
|
629
628
|
import { WindowSpecContext } from "./MySqlParser.js";
|
|
630
629
|
import { WindowNameContext } from "./MySqlParser.js";
|
|
631
630
|
import { FrameClauseContext } from "./MySqlParser.js";
|
|
632
|
-
import { FrameUnitsContext } from "./MySqlParser.js";
|
|
633
|
-
import { FrameExtentContext } from "./MySqlParser.js";
|
|
634
|
-
import { FrameBetweenContext } from "./MySqlParser.js";
|
|
635
631
|
import { FrameRangeContext } from "./MySqlParser.js";
|
|
636
632
|
import { PartitionClauseContext } from "./MySqlParser.js";
|
|
637
633
|
import { ScalarFunctionNameContext } from "./MySqlParser.js";
|
|
@@ -716,16 +712,6 @@ export declare class MySqlParserListener implements ParseTreeListener {
|
|
|
716
712
|
* @param ctx the parse tree
|
|
717
713
|
*/
|
|
718
714
|
exitSqlStatement?: (ctx: SqlStatementContext) => void;
|
|
719
|
-
/**
|
|
720
|
-
* Enter a parse tree produced by `MySqlParser.emptyStatement_`.
|
|
721
|
-
* @param ctx the parse tree
|
|
722
|
-
*/
|
|
723
|
-
enterEmptyStatement_?: (ctx: EmptyStatement_Context) => void;
|
|
724
|
-
/**
|
|
725
|
-
* Exit a parse tree produced by `MySqlParser.emptyStatement_`.
|
|
726
|
-
* @param ctx the parse tree
|
|
727
|
-
*/
|
|
728
|
-
exitEmptyStatement_?: (ctx: EmptyStatement_Context) => void;
|
|
729
715
|
/**
|
|
730
716
|
* Enter a parse tree produced by `MySqlParser.ddlStatement`.
|
|
731
717
|
* @param ctx the parse tree
|
|
@@ -7524,36 +7510,6 @@ export declare class MySqlParserListener implements ParseTreeListener {
|
|
|
7524
7510
|
* @param ctx the parse tree
|
|
7525
7511
|
*/
|
|
7526
7512
|
exitFrameClause?: (ctx: FrameClauseContext) => void;
|
|
7527
|
-
/**
|
|
7528
|
-
* Enter a parse tree produced by `MySqlParser.frameUnits`.
|
|
7529
|
-
* @param ctx the parse tree
|
|
7530
|
-
*/
|
|
7531
|
-
enterFrameUnits?: (ctx: FrameUnitsContext) => void;
|
|
7532
|
-
/**
|
|
7533
|
-
* Exit a parse tree produced by `MySqlParser.frameUnits`.
|
|
7534
|
-
* @param ctx the parse tree
|
|
7535
|
-
*/
|
|
7536
|
-
exitFrameUnits?: (ctx: FrameUnitsContext) => void;
|
|
7537
|
-
/**
|
|
7538
|
-
* Enter a parse tree produced by `MySqlParser.frameExtent`.
|
|
7539
|
-
* @param ctx the parse tree
|
|
7540
|
-
*/
|
|
7541
|
-
enterFrameExtent?: (ctx: FrameExtentContext) => void;
|
|
7542
|
-
/**
|
|
7543
|
-
* Exit a parse tree produced by `MySqlParser.frameExtent`.
|
|
7544
|
-
* @param ctx the parse tree
|
|
7545
|
-
*/
|
|
7546
|
-
exitFrameExtent?: (ctx: FrameExtentContext) => void;
|
|
7547
|
-
/**
|
|
7548
|
-
* Enter a parse tree produced by `MySqlParser.frameBetween`.
|
|
7549
|
-
* @param ctx the parse tree
|
|
7550
|
-
*/
|
|
7551
|
-
enterFrameBetween?: (ctx: FrameBetweenContext) => void;
|
|
7552
|
-
/**
|
|
7553
|
-
* Exit a parse tree produced by `MySqlParser.frameBetween`.
|
|
7554
|
-
* @param ctx the parse tree
|
|
7555
|
-
*/
|
|
7556
|
-
exitFrameBetween?: (ctx: FrameBetweenContext) => void;
|
|
7557
7513
|
/**
|
|
7558
7514
|
* Enter a parse tree produced by `MySqlParser.frameRange`.
|
|
7559
7515
|
* @param ctx the parse tree
|
|
@@ -2,7 +2,6 @@ import { AbstractParseTreeVisitor } from "antlr4ng";
|
|
|
2
2
|
import { ProgramContext } from "./MySqlParser.js";
|
|
3
3
|
import { SingleStatementContext } from "./MySqlParser.js";
|
|
4
4
|
import { SqlStatementContext } from "./MySqlParser.js";
|
|
5
|
-
import { EmptyStatement_Context } from "./MySqlParser.js";
|
|
6
5
|
import { DdlStatementContext } from "./MySqlParser.js";
|
|
7
6
|
import { DmlStatementContext } from "./MySqlParser.js";
|
|
8
7
|
import { TransactionStatementContext } from "./MySqlParser.js";
|
|
@@ -629,9 +628,6 @@ import { OverClauseContext } from "./MySqlParser.js";
|
|
|
629
628
|
import { WindowSpecContext } from "./MySqlParser.js";
|
|
630
629
|
import { WindowNameContext } from "./MySqlParser.js";
|
|
631
630
|
import { FrameClauseContext } from "./MySqlParser.js";
|
|
632
|
-
import { FrameUnitsContext } from "./MySqlParser.js";
|
|
633
|
-
import { FrameExtentContext } from "./MySqlParser.js";
|
|
634
|
-
import { FrameBetweenContext } from "./MySqlParser.js";
|
|
635
631
|
import { FrameRangeContext } from "./MySqlParser.js";
|
|
636
632
|
import { PartitionClauseContext } from "./MySqlParser.js";
|
|
637
633
|
import { ScalarFunctionNameContext } from "./MySqlParser.js";
|
|
@@ -707,12 +703,6 @@ export declare class MySqlParserVisitor<Result> extends AbstractParseTreeVisitor
|
|
|
707
703
|
* @return the visitor result
|
|
708
704
|
*/
|
|
709
705
|
visitSqlStatement?: (ctx: SqlStatementContext) => Result;
|
|
710
|
-
/**
|
|
711
|
-
* Visit a parse tree produced by `MySqlParser.emptyStatement_`.
|
|
712
|
-
* @param ctx the parse tree
|
|
713
|
-
* @return the visitor result
|
|
714
|
-
*/
|
|
715
|
-
visitEmptyStatement_?: (ctx: EmptyStatement_Context) => Result;
|
|
716
706
|
/**
|
|
717
707
|
* Visit a parse tree produced by `MySqlParser.ddlStatement`.
|
|
718
708
|
* @param ctx the parse tree
|
|
@@ -4738,24 +4728,6 @@ export declare class MySqlParserVisitor<Result> extends AbstractParseTreeVisitor
|
|
|
4738
4728
|
* @return the visitor result
|
|
4739
4729
|
*/
|
|
4740
4730
|
visitFrameClause?: (ctx: FrameClauseContext) => Result;
|
|
4741
|
-
/**
|
|
4742
|
-
* Visit a parse tree produced by `MySqlParser.frameUnits`.
|
|
4743
|
-
* @param ctx the parse tree
|
|
4744
|
-
* @return the visitor result
|
|
4745
|
-
*/
|
|
4746
|
-
visitFrameUnits?: (ctx: FrameUnitsContext) => Result;
|
|
4747
|
-
/**
|
|
4748
|
-
* Visit a parse tree produced by `MySqlParser.frameExtent`.
|
|
4749
|
-
* @param ctx the parse tree
|
|
4750
|
-
* @return the visitor result
|
|
4751
|
-
*/
|
|
4752
|
-
visitFrameExtent?: (ctx: FrameExtentContext) => Result;
|
|
4753
|
-
/**
|
|
4754
|
-
* Visit a parse tree produced by `MySqlParser.frameBetween`.
|
|
4755
|
-
* @param ctx the parse tree
|
|
4756
|
-
* @return the visitor result
|
|
4757
|
-
*/
|
|
4758
|
-
visitFrameBetween?: (ctx: FrameBetweenContext) => Result;
|
|
4759
4731
|
/**
|
|
4760
4732
|
* Visit a parse tree produced by `MySqlParser.frameRange`.
|
|
4761
4733
|
* @param ctx the parse tree
|
|
@@ -905,168 +905,169 @@ export declare class PostgreSqlParser extends SQLParserBase {
|
|
|
905
905
|
static readonly RULE_aliasClause = 306;
|
|
906
906
|
static readonly RULE_funcAliasClause = 307;
|
|
907
907
|
static readonly RULE_joinType = 308;
|
|
908
|
-
static readonly
|
|
909
|
-
static readonly
|
|
910
|
-
static readonly
|
|
911
|
-
static readonly
|
|
912
|
-
static readonly
|
|
913
|
-
static readonly
|
|
914
|
-
static readonly
|
|
915
|
-
static readonly
|
|
916
|
-
static readonly
|
|
917
|
-
static readonly
|
|
918
|
-
static readonly
|
|
919
|
-
static readonly
|
|
920
|
-
static readonly
|
|
921
|
-
static readonly
|
|
922
|
-
static readonly
|
|
923
|
-
static readonly
|
|
924
|
-
static readonly
|
|
925
|
-
static readonly
|
|
926
|
-
static readonly
|
|
927
|
-
static readonly
|
|
928
|
-
static readonly
|
|
929
|
-
static readonly
|
|
930
|
-
static readonly
|
|
931
|
-
static readonly
|
|
932
|
-
static readonly
|
|
933
|
-
static readonly
|
|
934
|
-
static readonly
|
|
935
|
-
static readonly
|
|
936
|
-
static readonly
|
|
937
|
-
static readonly
|
|
938
|
-
static readonly
|
|
939
|
-
static readonly
|
|
940
|
-
static readonly
|
|
941
|
-
static readonly
|
|
942
|
-
static readonly
|
|
943
|
-
static readonly
|
|
944
|
-
static readonly
|
|
945
|
-
static readonly
|
|
946
|
-
static readonly
|
|
947
|
-
static readonly
|
|
948
|
-
static readonly
|
|
949
|
-
static readonly
|
|
950
|
-
static readonly
|
|
951
|
-
static readonly
|
|
952
|
-
static readonly
|
|
953
|
-
static readonly
|
|
954
|
-
static readonly
|
|
955
|
-
static readonly
|
|
956
|
-
static readonly
|
|
957
|
-
static readonly
|
|
958
|
-
static readonly
|
|
959
|
-
static readonly
|
|
960
|
-
static readonly
|
|
961
|
-
static readonly
|
|
962
|
-
static readonly
|
|
963
|
-
static readonly
|
|
964
|
-
static readonly
|
|
965
|
-
static readonly
|
|
966
|
-
static readonly
|
|
967
|
-
static readonly
|
|
968
|
-
static readonly
|
|
969
|
-
static readonly
|
|
970
|
-
static readonly
|
|
971
|
-
static readonly
|
|
972
|
-
static readonly
|
|
973
|
-
static readonly
|
|
974
|
-
static readonly
|
|
975
|
-
static readonly
|
|
976
|
-
static readonly
|
|
977
|
-
static readonly
|
|
978
|
-
static readonly
|
|
979
|
-
static readonly
|
|
980
|
-
static readonly
|
|
981
|
-
static readonly
|
|
982
|
-
static readonly
|
|
983
|
-
static readonly
|
|
984
|
-
static readonly
|
|
985
|
-
static readonly
|
|
986
|
-
static readonly
|
|
987
|
-
static readonly
|
|
988
|
-
static readonly
|
|
989
|
-
static readonly
|
|
990
|
-
static readonly
|
|
991
|
-
static readonly
|
|
992
|
-
static readonly
|
|
993
|
-
static readonly
|
|
994
|
-
static readonly
|
|
995
|
-
static readonly
|
|
996
|
-
static readonly
|
|
997
|
-
static readonly
|
|
998
|
-
static readonly
|
|
999
|
-
static readonly
|
|
1000
|
-
static readonly
|
|
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
|
|
1069
|
-
static readonly
|
|
908
|
+
static readonly RULE_joinCondition = 309;
|
|
909
|
+
static readonly RULE_joinQual = 310;
|
|
910
|
+
static readonly RULE_relationExpr = 311;
|
|
911
|
+
static readonly RULE_publicationRelationExpr = 312;
|
|
912
|
+
static readonly RULE_relationExprList = 313;
|
|
913
|
+
static readonly RULE_relationExprOptAlias = 314;
|
|
914
|
+
static readonly RULE_tableSampleClause = 315;
|
|
915
|
+
static readonly RULE_funcTable = 316;
|
|
916
|
+
static readonly RULE_rowsFromItem = 317;
|
|
917
|
+
static readonly RULE_whereClause = 318;
|
|
918
|
+
static readonly RULE_whereOrCurrentClause = 319;
|
|
919
|
+
static readonly RULE_tableFuncElementList = 320;
|
|
920
|
+
static readonly RULE_tableFuncElement = 321;
|
|
921
|
+
static readonly RULE_xmlTable = 322;
|
|
922
|
+
static readonly RULE_xmlTableColumnEl = 323;
|
|
923
|
+
static readonly RULE_xmlNamespaceEle = 324;
|
|
924
|
+
static readonly RULE_typename = 325;
|
|
925
|
+
static readonly RULE_simpleTypeName = 326;
|
|
926
|
+
static readonly RULE_constTypeName = 327;
|
|
927
|
+
static readonly RULE_numeric = 328;
|
|
928
|
+
static readonly RULE_optFloat = 329;
|
|
929
|
+
static readonly RULE_bit = 330;
|
|
930
|
+
static readonly RULE_character = 331;
|
|
931
|
+
static readonly RULE_constDatetime = 332;
|
|
932
|
+
static readonly RULE_optInterval = 333;
|
|
933
|
+
static readonly RULE_intervalSecond = 334;
|
|
934
|
+
static readonly RULE_comparisonOperator = 335;
|
|
935
|
+
static readonly RULE_expression = 336;
|
|
936
|
+
static readonly RULE_booleanExpression = 337;
|
|
937
|
+
static readonly RULE_predicate = 338;
|
|
938
|
+
static readonly RULE_valueExpression = 339;
|
|
939
|
+
static readonly RULE_primaryExpression = 340;
|
|
940
|
+
static readonly RULE_funcApplication = 341;
|
|
941
|
+
static readonly RULE_func_expr = 342;
|
|
942
|
+
static readonly RULE_funcExprWindowless = 343;
|
|
943
|
+
static readonly RULE_funcExprCommonSubExpr = 344;
|
|
944
|
+
static readonly RULE_xmlAttributeList = 345;
|
|
945
|
+
static readonly RULE_xmlAttributeEl = 346;
|
|
946
|
+
static readonly RULE_documentOrContent = 347;
|
|
947
|
+
static readonly RULE_xmlExistsArgument = 348;
|
|
948
|
+
static readonly RULE_xmlPassingMech = 349;
|
|
949
|
+
static readonly RULE_windowClause = 350;
|
|
950
|
+
static readonly RULE_havingClause = 351;
|
|
951
|
+
static readonly RULE_windowDefinition = 352;
|
|
952
|
+
static readonly RULE_over_clause = 353;
|
|
953
|
+
static readonly RULE_windowSpecification = 354;
|
|
954
|
+
static readonly RULE_optFrameClause = 355;
|
|
955
|
+
static readonly RULE_frameBound = 356;
|
|
956
|
+
static readonly RULE_row = 357;
|
|
957
|
+
static readonly RULE_explicitRow = 358;
|
|
958
|
+
static readonly RULE_subType = 359;
|
|
959
|
+
static readonly RULE_allOp = 360;
|
|
960
|
+
static readonly RULE_mathOp = 361;
|
|
961
|
+
static readonly RULE_qualOp = 362;
|
|
962
|
+
static readonly RULE_qualAllOp = 363;
|
|
963
|
+
static readonly RULE_subqueryOperator = 364;
|
|
964
|
+
static readonly RULE_exprList = 365;
|
|
965
|
+
static readonly RULE_selectExpressionColumnName = 366;
|
|
966
|
+
static readonly RULE_selectLiteralColumnName = 367;
|
|
967
|
+
static readonly RULE_columnExpr = 368;
|
|
968
|
+
static readonly RULE_columnExprNoParen = 369;
|
|
969
|
+
static readonly RULE_funcArgList = 370;
|
|
970
|
+
static readonly RULE_funcArgExpr = 371;
|
|
971
|
+
static readonly RULE_arrayExpr = 372;
|
|
972
|
+
static readonly RULE_extractArg = 373;
|
|
973
|
+
static readonly RULE_unicodeNormalForm = 374;
|
|
974
|
+
static readonly RULE_substrList = 375;
|
|
975
|
+
static readonly RULE_when_clause = 376;
|
|
976
|
+
static readonly RULE_indirectionEl = 377;
|
|
977
|
+
static readonly RULE_indirection = 378;
|
|
978
|
+
static readonly RULE_optIndirection = 379;
|
|
979
|
+
static readonly RULE_targetList = 380;
|
|
980
|
+
static readonly RULE_targetEl = 381;
|
|
981
|
+
static readonly RULE_tableAllColumns = 382;
|
|
982
|
+
static readonly RULE_qualifiedNameList = 383;
|
|
983
|
+
static readonly RULE_tableNameList = 384;
|
|
984
|
+
static readonly RULE_schemaNameList = 385;
|
|
985
|
+
static readonly RULE_databaseNameList = 386;
|
|
986
|
+
static readonly RULE_tableSpaceNameCreate = 387;
|
|
987
|
+
static readonly RULE_tableSpaceName = 388;
|
|
988
|
+
static readonly RULE_tableNameCreate = 389;
|
|
989
|
+
static readonly RULE_tableName = 390;
|
|
990
|
+
static readonly RULE_viewNameCreate = 391;
|
|
991
|
+
static readonly RULE_viewName = 392;
|
|
992
|
+
static readonly RULE_qualifiedName = 393;
|
|
993
|
+
static readonly RULE_tableSpaceNameList = 394;
|
|
994
|
+
static readonly RULE_nameList = 395;
|
|
995
|
+
static readonly RULE_databaseNameCreate = 396;
|
|
996
|
+
static readonly RULE_databaseName = 397;
|
|
997
|
+
static readonly RULE_schemaName = 398;
|
|
998
|
+
static readonly RULE_routineNameCreate = 399;
|
|
999
|
+
static readonly RULE_routineName = 400;
|
|
1000
|
+
static readonly RULE_procedureName = 401;
|
|
1001
|
+
static readonly RULE_procedureNameCreate = 402;
|
|
1002
|
+
static readonly RULE_emptyColumn = 403;
|
|
1003
|
+
static readonly RULE_columnName = 404;
|
|
1004
|
+
static readonly RULE_columnNamePath = 405;
|
|
1005
|
+
static readonly RULE_columnNameCreate = 406;
|
|
1006
|
+
static readonly RULE_functionNameCreate = 407;
|
|
1007
|
+
static readonly RULE_functionName = 408;
|
|
1008
|
+
static readonly RULE_stringConst = 409;
|
|
1009
|
+
static readonly RULE_anysconst = 410;
|
|
1010
|
+
static readonly RULE_signedConst = 411;
|
|
1011
|
+
static readonly RULE_roleSpec = 412;
|
|
1012
|
+
static readonly RULE_roleList = 413;
|
|
1013
|
+
static readonly RULE_colId = 414;
|
|
1014
|
+
static readonly RULE_typeFunctionName = 415;
|
|
1015
|
+
static readonly RULE_nonReservedWord = 416;
|
|
1016
|
+
static readonly RULE_colLabel = 417;
|
|
1017
|
+
static readonly RULE_indirectionLabel = 418;
|
|
1018
|
+
static readonly RULE_identifier = 419;
|
|
1019
|
+
static readonly RULE_unreservedKeyword = 420;
|
|
1020
|
+
static readonly RULE_colNameKeyword = 421;
|
|
1021
|
+
static readonly RULE_typeFuncNameKeyword = 422;
|
|
1022
|
+
static readonly RULE_reservedKeyword = 423;
|
|
1023
|
+
static readonly RULE_plBlock = 424;
|
|
1024
|
+
static readonly RULE_labelDecl = 425;
|
|
1025
|
+
static readonly RULE_declStatement = 426;
|
|
1026
|
+
static readonly RULE_declCursorArg = 427;
|
|
1027
|
+
static readonly RULE_assignOperator = 428;
|
|
1028
|
+
static readonly RULE_procStmt = 429;
|
|
1029
|
+
static readonly RULE_stmtPerform = 430;
|
|
1030
|
+
static readonly RULE_stmtCall = 431;
|
|
1031
|
+
static readonly RULE_stmtAssign = 432;
|
|
1032
|
+
static readonly RULE_stmtGetdiag = 433;
|
|
1033
|
+
static readonly RULE_getdiagListItem = 434;
|
|
1034
|
+
static readonly RULE_assignVar = 435;
|
|
1035
|
+
static readonly RULE_stmtIf = 436;
|
|
1036
|
+
static readonly RULE_stmtElse = 437;
|
|
1037
|
+
static readonly RULE_stmtCase = 438;
|
|
1038
|
+
static readonly RULE_stmtLoopWhileFor = 439;
|
|
1039
|
+
static readonly RULE_forControl = 440;
|
|
1040
|
+
static readonly RULE_stmtForeach = 441;
|
|
1041
|
+
static readonly RULE_stmtExit = 442;
|
|
1042
|
+
static readonly RULE_stmtReturn = 443;
|
|
1043
|
+
static readonly RULE_stmtRaise = 444;
|
|
1044
|
+
static readonly RULE_optRaiseUsingElem = 445;
|
|
1045
|
+
static readonly RULE_stmtAssert = 446;
|
|
1046
|
+
static readonly RULE_loopBody = 447;
|
|
1047
|
+
static readonly RULE_stmtExecsql = 448;
|
|
1048
|
+
static readonly RULE_stmtDynexecute = 449;
|
|
1049
|
+
static readonly RULE_optExecuteInto = 450;
|
|
1050
|
+
static readonly RULE_stmtOpen = 451;
|
|
1051
|
+
static readonly RULE_optOpenBoundListItem = 452;
|
|
1052
|
+
static readonly RULE_stmtFetch = 453;
|
|
1053
|
+
static readonly RULE_optFetchFirection = 454;
|
|
1054
|
+
static readonly RULE_stmtMove = 455;
|
|
1055
|
+
static readonly RULE_mergeStmt = 456;
|
|
1056
|
+
static readonly RULE_dataSource = 457;
|
|
1057
|
+
static readonly RULE_mergeWhenClause = 458;
|
|
1058
|
+
static readonly RULE_mergeInsert = 459;
|
|
1059
|
+
static readonly RULE_mergeUpdate = 460;
|
|
1060
|
+
static readonly RULE_defaultValuesOrValues = 461;
|
|
1061
|
+
static readonly RULE_exprofdefault = 462;
|
|
1062
|
+
static readonly RULE_stmtClose = 463;
|
|
1063
|
+
static readonly RULE_stmtNull = 464;
|
|
1064
|
+
static readonly RULE_stmtCommitOrRollback = 465;
|
|
1065
|
+
static readonly RULE_stmtSet = 466;
|
|
1066
|
+
static readonly RULE_cursorVariable = 467;
|
|
1067
|
+
static readonly RULE_exceptionSect = 468;
|
|
1068
|
+
static readonly RULE_procCondition = 469;
|
|
1069
|
+
static readonly RULE_anyIdentifier = 470;
|
|
1070
|
+
static readonly RULE_sqlExpression = 471;
|
|
1070
1071
|
static readonly literalNames: (string | null)[];
|
|
1071
1072
|
static readonly symbolicNames: (string | null)[];
|
|
1072
1073
|
static readonly ruleNames: string[];
|
|
@@ -1388,6 +1389,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
|
|
|
1388
1389
|
aliasClause(): AliasClauseContext;
|
|
1389
1390
|
funcAliasClause(): FuncAliasClauseContext;
|
|
1390
1391
|
joinType(): JoinTypeContext;
|
|
1392
|
+
joinCondition(): JoinConditionContext;
|
|
1391
1393
|
joinQual(): JoinQualContext;
|
|
1392
1394
|
relationExpr(): RelationExprContext;
|
|
1393
1395
|
publicationRelationExpr(): PublicationRelationExprContext;
|
|
@@ -1554,6 +1556,8 @@ export declare class PostgreSqlParser extends SQLParserBase {
|
|
|
1554
1556
|
anyIdentifier(): AnyIdentifierContext;
|
|
1555
1557
|
sqlExpression(): SqlExpressionContext;
|
|
1556
1558
|
sempred(localContext: antlr.RuleContext | null, ruleIndex: number, predIndex: number): boolean;
|
|
1559
|
+
private joinCondition_sempred;
|
|
1560
|
+
private joinQual_sempred;
|
|
1557
1561
|
private booleanExpression_sempred;
|
|
1558
1562
|
private valueExpression_sempred;
|
|
1559
1563
|
private primaryExpression_sempred;
|
|
@@ -6716,8 +6720,8 @@ export declare class TableRefContext extends antlr.ParserRuleContext {
|
|
|
6716
6720
|
KW_JOIN(i: number): antlr.TerminalNode | null;
|
|
6717
6721
|
KW_NATURAL(): antlr.TerminalNode[];
|
|
6718
6722
|
KW_NATURAL(i: number): antlr.TerminalNode | null;
|
|
6719
|
-
|
|
6720
|
-
|
|
6723
|
+
joinCondition(): JoinConditionContext[];
|
|
6724
|
+
joinCondition(i: number): JoinConditionContext | null;
|
|
6721
6725
|
relationExpr(): RelationExprContext | null;
|
|
6722
6726
|
aliasClause(): AliasClauseContext | null;
|
|
6723
6727
|
tableSampleClause(): TableSampleClauseContext | null;
|
|
@@ -6785,12 +6789,25 @@ export declare class JoinTypeContext extends antlr.ParserRuleContext {
|
|
|
6785
6789
|
exitRule(listener: PostgreSqlParserListener): void;
|
|
6786
6790
|
accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
|
|
6787
6791
|
}
|
|
6792
|
+
export declare class JoinConditionContext extends antlr.ParserRuleContext {
|
|
6793
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
6794
|
+
joinQual(): JoinQualContext | null;
|
|
6795
|
+
emptyColumn(): EmptyColumnContext | null;
|
|
6796
|
+
get ruleIndex(): number;
|
|
6797
|
+
enterRule(listener: PostgreSqlParserListener): void;
|
|
6798
|
+
exitRule(listener: PostgreSqlParserListener): void;
|
|
6799
|
+
accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
|
|
6800
|
+
}
|
|
6788
6801
|
export declare class JoinQualContext extends antlr.ParserRuleContext {
|
|
6789
6802
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
6790
6803
|
KW_USING(): antlr.TerminalNode | null;
|
|
6791
6804
|
optColumnList(): OptColumnListContext | null;
|
|
6792
6805
|
KW_ON(): antlr.TerminalNode | null;
|
|
6793
6806
|
expression(): ExpressionContext | null;
|
|
6807
|
+
columnNamePath(): ColumnNamePathContext[];
|
|
6808
|
+
columnNamePath(i: number): ColumnNamePathContext | null;
|
|
6809
|
+
emptyColumn(): EmptyColumnContext | null;
|
|
6810
|
+
EQUAL(): antlr.TerminalNode | null;
|
|
6794
6811
|
get ruleIndex(): number;
|
|
6795
6812
|
enterRule(listener: PostgreSqlParserListener): void;
|
|
6796
6813
|
exitRule(listener: PostgreSqlParserListener): void;
|