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.
Files changed (48) hide show
  1. package/dist/lib/flink/FlinkSqlParser.d.ts +220 -363
  2. package/dist/lib/flink/FlinkSqlParser.js +3246 -4046
  3. package/dist/lib/flink/FlinkSqlParserListener.d.ts +0 -154
  4. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +0 -98
  5. package/dist/lib/generic/GenericSqlListener.d.ts +11 -0
  6. package/dist/lib/generic/GenericSqlParser.d.ts +61 -47
  7. package/dist/lib/generic/GenericSqlParser.js +1047 -949
  8. package/dist/lib/generic/GenericSqlVisitor.d.ts +7 -0
  9. package/dist/lib/hive/HiveSqlParser.d.ts +515 -943
  10. package/dist/lib/hive/HiveSqlParser.js +8234 -10573
  11. package/dist/lib/hive/HiveSqlParserListener.d.ts +50 -490
  12. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +30 -310
  13. package/dist/lib/impala/ImpalaSqlParser.d.ts +96 -131
  14. package/dist/lib/impala/ImpalaSqlParser.js +3311 -3522
  15. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +0 -44
  16. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +0 -28
  17. package/dist/lib/mysql/MySqlParser.d.ts +425 -465
  18. package/dist/lib/mysql/MySqlParser.js +10300 -10510
  19. package/dist/lib/mysql/MySqlParserListener.d.ts +0 -44
  20. package/dist/lib/mysql/MySqlParserVisitor.d.ts +0 -28
  21. package/dist/lib/postgresql/PostgreSqlParser.d.ts +181 -164
  22. package/dist/lib/postgresql/PostgreSqlParser.js +10273 -10121
  23. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +11 -0
  24. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +7 -0
  25. package/dist/lib/trino/TrinoSqlListener.d.ts +0 -328
  26. package/dist/lib/trino/TrinoSqlParser.d.ts +205 -477
  27. package/dist/lib/trino/TrinoSqlParser.js +6689 -7898
  28. package/dist/lib/trino/TrinoSqlVisitor.d.ts +0 -206
  29. package/dist/parser/common/entityCollector.d.ts +37 -2
  30. package/dist/parser/common/entityCollector.js +303 -2
  31. package/dist/parser/flink/flinkEntityCollector.d.ts +2 -1
  32. package/dist/parser/flink/flinkEntityCollector.js +4 -0
  33. package/dist/parser/generic/genericEntityCollector.d.ts +7 -2
  34. package/dist/parser/generic/genericEntityCollector.js +65 -15
  35. package/dist/parser/generic/index.js +12 -0
  36. package/dist/parser/hive/hiveEntityCollector.d.ts +2 -1
  37. package/dist/parser/hive/hiveEntityCollector.js +5 -0
  38. package/dist/parser/impala/impalaEntityCollector.d.ts +2 -1
  39. package/dist/parser/impala/impalaEntityCollector.js +4 -0
  40. package/dist/parser/mysql/mysqlEntityCollector.d.ts +2 -1
  41. package/dist/parser/mysql/mysqlEntityCollector.js +19 -0
  42. package/dist/parser/postgresql/postgreEntityCollector.d.ts +2 -1
  43. package/dist/parser/postgresql/postgreEntityCollector.js +5 -0
  44. package/dist/parser/spark/sparkEntityCollector.d.ts +2 -1
  45. package/dist/parser/spark/sparkEntityCollector.js +5 -0
  46. package/dist/parser/trino/trinoEntityCollector.d.ts +2 -1
  47. package/dist/parser/trino/trinoEntityCollector.js +5 -0
  48. 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 RULE_joinQual = 309;
909
- static readonly RULE_relationExpr = 310;
910
- static readonly RULE_publicationRelationExpr = 311;
911
- static readonly RULE_relationExprList = 312;
912
- static readonly RULE_relationExprOptAlias = 313;
913
- static readonly RULE_tableSampleClause = 314;
914
- static readonly RULE_funcTable = 315;
915
- static readonly RULE_rowsFromItem = 316;
916
- static readonly RULE_whereClause = 317;
917
- static readonly RULE_whereOrCurrentClause = 318;
918
- static readonly RULE_tableFuncElementList = 319;
919
- static readonly RULE_tableFuncElement = 320;
920
- static readonly RULE_xmlTable = 321;
921
- static readonly RULE_xmlTableColumnEl = 322;
922
- static readonly RULE_xmlNamespaceEle = 323;
923
- static readonly RULE_typename = 324;
924
- static readonly RULE_simpleTypeName = 325;
925
- static readonly RULE_constTypeName = 326;
926
- static readonly RULE_numeric = 327;
927
- static readonly RULE_optFloat = 328;
928
- static readonly RULE_bit = 329;
929
- static readonly RULE_character = 330;
930
- static readonly RULE_constDatetime = 331;
931
- static readonly RULE_optInterval = 332;
932
- static readonly RULE_intervalSecond = 333;
933
- static readonly RULE_comparisonOperator = 334;
934
- static readonly RULE_expression = 335;
935
- static readonly RULE_booleanExpression = 336;
936
- static readonly RULE_predicate = 337;
937
- static readonly RULE_valueExpression = 338;
938
- static readonly RULE_primaryExpression = 339;
939
- static readonly RULE_funcApplication = 340;
940
- static readonly RULE_func_expr = 341;
941
- static readonly RULE_funcExprWindowless = 342;
942
- static readonly RULE_funcExprCommonSubExpr = 343;
943
- static readonly RULE_xmlAttributeList = 344;
944
- static readonly RULE_xmlAttributeEl = 345;
945
- static readonly RULE_documentOrContent = 346;
946
- static readonly RULE_xmlExistsArgument = 347;
947
- static readonly RULE_xmlPassingMech = 348;
948
- static readonly RULE_windowClause = 349;
949
- static readonly RULE_havingClause = 350;
950
- static readonly RULE_windowDefinition = 351;
951
- static readonly RULE_over_clause = 352;
952
- static readonly RULE_windowSpecification = 353;
953
- static readonly RULE_optFrameClause = 354;
954
- static readonly RULE_frameBound = 355;
955
- static readonly RULE_row = 356;
956
- static readonly RULE_explicitRow = 357;
957
- static readonly RULE_subType = 358;
958
- static readonly RULE_allOp = 359;
959
- static readonly RULE_mathOp = 360;
960
- static readonly RULE_qualOp = 361;
961
- static readonly RULE_qualAllOp = 362;
962
- static readonly RULE_subqueryOperator = 363;
963
- static readonly RULE_exprList = 364;
964
- static readonly RULE_selectExpressionColumnName = 365;
965
- static readonly RULE_selectLiteralColumnName = 366;
966
- static readonly RULE_columnExpr = 367;
967
- static readonly RULE_columnExprNoParen = 368;
968
- static readonly RULE_funcArgList = 369;
969
- static readonly RULE_funcArgExpr = 370;
970
- static readonly RULE_arrayExpr = 371;
971
- static readonly RULE_extractArg = 372;
972
- static readonly RULE_unicodeNormalForm = 373;
973
- static readonly RULE_substrList = 374;
974
- static readonly RULE_when_clause = 375;
975
- static readonly RULE_indirectionEl = 376;
976
- static readonly RULE_indirection = 377;
977
- static readonly RULE_optIndirection = 378;
978
- static readonly RULE_targetList = 379;
979
- static readonly RULE_targetEl = 380;
980
- static readonly RULE_tableAllColumns = 381;
981
- static readonly RULE_qualifiedNameList = 382;
982
- static readonly RULE_tableNameList = 383;
983
- static readonly RULE_schemaNameList = 384;
984
- static readonly RULE_databaseNameList = 385;
985
- static readonly RULE_tableSpaceNameCreate = 386;
986
- static readonly RULE_tableSpaceName = 387;
987
- static readonly RULE_tableNameCreate = 388;
988
- static readonly RULE_tableName = 389;
989
- static readonly RULE_viewNameCreate = 390;
990
- static readonly RULE_viewName = 391;
991
- static readonly RULE_qualifiedName = 392;
992
- static readonly RULE_tableSpaceNameList = 393;
993
- static readonly RULE_nameList = 394;
994
- static readonly RULE_databaseNameCreate = 395;
995
- static readonly RULE_databaseName = 396;
996
- static readonly RULE_schemaName = 397;
997
- static readonly RULE_routineNameCreate = 398;
998
- static readonly RULE_routineName = 399;
999
- static readonly RULE_procedureName = 400;
1000
- static readonly RULE_procedureNameCreate = 401;
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;
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
- joinQual(): JoinQualContext[];
6720
- joinQual(i: number): JoinQualContext | null;
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;