dt-sql-parser 4.5.1-beta.3 → 4.5.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/lib/SQLParserBase.d.ts +9 -0
  2. package/dist/lib/SQLParserBase.js +15 -0
  3. package/dist/lib/generic/GenericSqlListener.d.ts +11 -0
  4. package/dist/lib/generic/GenericSqlParser.d.ts +61 -47
  5. package/dist/lib/generic/GenericSqlParser.js +1047 -949
  6. package/dist/lib/generic/GenericSqlVisitor.d.ts +7 -0
  7. package/dist/lib/hive/HiveSqlParser.d.ts +54 -30
  8. package/dist/lib/hive/HiveSqlParser.js +5633 -5467
  9. package/dist/lib/hive/HiveSqlParserListener.d.ts +22 -0
  10. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +14 -0
  11. package/dist/lib/mysql/MySqlParser.d.ts +34 -9
  12. package/dist/lib/mysql/MySqlParser.js +5697 -5550
  13. package/dist/lib/mysql/MySqlParserListener.d.ts +33 -5
  14. package/dist/lib/mysql/MySqlParserVisitor.d.ts +20 -3
  15. package/dist/lib/postgresql/PostgreSqlParser.d.ts +200 -166
  16. package/dist/lib/postgresql/PostgreSqlParser.js +10389 -10136
  17. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +31 -5
  18. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +19 -3
  19. package/dist/lib/trino/TrinoSqlListener.d.ts +33 -0
  20. package/dist/lib/trino/TrinoSqlParser.d.ts +157 -115
  21. package/dist/lib/trino/TrinoSqlParser.js +4775 -4494
  22. package/dist/lib/trino/TrinoSqlVisitor.d.ts +21 -0
  23. package/dist/parser/common/basicSQL.d.ts +3 -0
  24. package/dist/parser/common/basicSQL.js +47 -1
  25. package/dist/parser/common/entityCollector.d.ts +37 -2
  26. package/dist/parser/common/entityCollector.js +303 -2
  27. package/dist/parser/flink/flinkEntityCollector.d.ts +2 -1
  28. package/dist/parser/flink/flinkEntityCollector.js +4 -0
  29. package/dist/parser/flink/index.js +1 -1
  30. package/dist/parser/generic/genericEntityCollector.d.ts +7 -2
  31. package/dist/parser/generic/genericEntityCollector.js +65 -15
  32. package/dist/parser/generic/index.js +13 -1
  33. package/dist/parser/hive/hiveEntityCollector.d.ts +2 -1
  34. package/dist/parser/hive/hiveEntityCollector.js +5 -0
  35. package/dist/parser/hive/index.js +1 -1
  36. package/dist/parser/impala/impalaEntityCollector.d.ts +2 -1
  37. package/dist/parser/impala/impalaEntityCollector.js +4 -0
  38. package/dist/parser/impala/index.js +1 -1
  39. package/dist/parser/mysql/index.js +15 -1
  40. package/dist/parser/mysql/mysqlEntityCollector.d.ts +3 -1
  41. package/dist/parser/mysql/mysqlEntityCollector.js +24 -0
  42. package/dist/parser/postgresql/index.js +3 -2
  43. package/dist/parser/postgresql/postgreEntityCollector.d.ts +3 -1
  44. package/dist/parser/postgresql/postgreEntityCollector.js +10 -0
  45. package/dist/parser/spark/index.js +1 -1
  46. package/dist/parser/spark/sparkEntityCollector.d.ts +2 -1
  47. package/dist/parser/spark/sparkEntityCollector.js +5 -0
  48. package/dist/parser/trino/index.js +4 -2
  49. package/dist/parser/trino/trinoEntityCollector.d.ts +2 -1
  50. package/dist/parser/trino/trinoEntityCollector.js +5 -0
  51. package/package.json +1 -1
@@ -537,7 +537,9 @@ import { ColumnNameCreateContext } from "./MySqlParser.js";
537
537
  import { ColumnNamesContext } from "./MySqlParser.js";
538
538
  import { EmptyColumnContext } from "./MySqlParser.js";
539
539
  import { ColumnNameContext } from "./MySqlParser.js";
540
- import { ColumnNamePathContext } from "./MySqlParser.js";
540
+ import { ColumnNamePath_defaultContext } from "./MySqlParser.js";
541
+ import { ColumnNamePath_dottedContext } from "./MySqlParser.js";
542
+ import { ColumnNamePath_dot_emptyContext } from "./MySqlParser.js";
541
543
  import { ColumnNamePathAllowEmptyContext } from "./MySqlParser.js";
542
544
  import { TableSpaceNameCreateContext } from "./MySqlParser.js";
543
545
  import { TableSpaceNameContext } from "./MySqlParser.js";
@@ -6535,15 +6537,41 @@ export declare class MySqlParserListener implements ParseTreeListener {
6535
6537
  */
6536
6538
  exitColumnName?: (ctx: ColumnNameContext) => void;
6537
6539
  /**
6538
- * Enter a parse tree produced by `MySqlParser.columnNamePath`.
6540
+ * Enter a parse tree produced by the `columnNamePath_default`
6541
+ * labeled alternative in `MySqlParser.columnNamePath`.
6539
6542
  * @param ctx the parse tree
6540
6543
  */
6541
- enterColumnNamePath?: (ctx: ColumnNamePathContext) => void;
6544
+ enterColumnNamePath_default?: (ctx: ColumnNamePath_defaultContext) => void;
6542
6545
  /**
6543
- * Exit a parse tree produced by `MySqlParser.columnNamePath`.
6546
+ * Exit a parse tree produced by the `columnNamePath_default`
6547
+ * labeled alternative in `MySqlParser.columnNamePath`.
6544
6548
  * @param ctx the parse tree
6545
6549
  */
6546
- exitColumnNamePath?: (ctx: ColumnNamePathContext) => void;
6550
+ exitColumnNamePath_default?: (ctx: ColumnNamePath_defaultContext) => void;
6551
+ /**
6552
+ * Enter a parse tree produced by the `columnNamePath_dotted`
6553
+ * labeled alternative in `MySqlParser.columnNamePath`.
6554
+ * @param ctx the parse tree
6555
+ */
6556
+ enterColumnNamePath_dotted?: (ctx: ColumnNamePath_dottedContext) => void;
6557
+ /**
6558
+ * Exit a parse tree produced by the `columnNamePath_dotted`
6559
+ * labeled alternative in `MySqlParser.columnNamePath`.
6560
+ * @param ctx the parse tree
6561
+ */
6562
+ exitColumnNamePath_dotted?: (ctx: ColumnNamePath_dottedContext) => void;
6563
+ /**
6564
+ * Enter a parse tree produced by the `columnNamePath_dot_empty`
6565
+ * labeled alternative in `MySqlParser.columnNamePath`.
6566
+ * @param ctx the parse tree
6567
+ */
6568
+ enterColumnNamePath_dot_empty?: (ctx: ColumnNamePath_dot_emptyContext) => void;
6569
+ /**
6570
+ * Exit a parse tree produced by the `columnNamePath_dot_empty`
6571
+ * labeled alternative in `MySqlParser.columnNamePath`.
6572
+ * @param ctx the parse tree
6573
+ */
6574
+ exitColumnNamePath_dot_empty?: (ctx: ColumnNamePath_dot_emptyContext) => void;
6547
6575
  /**
6548
6576
  * Enter a parse tree produced by `MySqlParser.columnNamePathAllowEmpty`.
6549
6577
  * @param ctx the parse tree
@@ -537,7 +537,9 @@ import { ColumnNameCreateContext } from "./MySqlParser.js";
537
537
  import { ColumnNamesContext } from "./MySqlParser.js";
538
538
  import { EmptyColumnContext } from "./MySqlParser.js";
539
539
  import { ColumnNameContext } from "./MySqlParser.js";
540
- import { ColumnNamePathContext } from "./MySqlParser.js";
540
+ import { ColumnNamePath_defaultContext } from "./MySqlParser.js";
541
+ import { ColumnNamePath_dottedContext } from "./MySqlParser.js";
542
+ import { ColumnNamePath_dot_emptyContext } from "./MySqlParser.js";
541
543
  import { ColumnNamePathAllowEmptyContext } from "./MySqlParser.js";
542
544
  import { TableSpaceNameCreateContext } from "./MySqlParser.js";
543
545
  import { TableSpaceNameContext } from "./MySqlParser.js";
@@ -4151,11 +4153,26 @@ export declare class MySqlParserVisitor<Result> extends AbstractParseTreeVisitor
4151
4153
  */
4152
4154
  visitColumnName?: (ctx: ColumnNameContext) => Result;
4153
4155
  /**
4154
- * Visit a parse tree produced by `MySqlParser.columnNamePath`.
4156
+ * Visit a parse tree produced by the `columnNamePath_default`
4157
+ * labeled alternative in `MySqlParser.columnNamePath`.
4155
4158
  * @param ctx the parse tree
4156
4159
  * @return the visitor result
4157
4160
  */
4158
- visitColumnNamePath?: (ctx: ColumnNamePathContext) => Result;
4161
+ visitColumnNamePath_default?: (ctx: ColumnNamePath_defaultContext) => Result;
4162
+ /**
4163
+ * Visit a parse tree produced by the `columnNamePath_dotted`
4164
+ * labeled alternative in `MySqlParser.columnNamePath`.
4165
+ * @param ctx the parse tree
4166
+ * @return the visitor result
4167
+ */
4168
+ visitColumnNamePath_dotted?: (ctx: ColumnNamePath_dottedContext) => Result;
4169
+ /**
4170
+ * Visit a parse tree produced by the `columnNamePath_dot_empty`
4171
+ * labeled alternative in `MySqlParser.columnNamePath`.
4172
+ * @param ctx the parse tree
4173
+ * @return the visitor result
4174
+ */
4175
+ visitColumnNamePath_dot_empty?: (ctx: ColumnNamePath_dot_emptyContext) => Result;
4159
4176
  /**
4160
4177
  * Visit a parse tree produced by `MySqlParser.columnNamePathAllowEmpty`.
4161
4178
  * @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[];
@@ -1076,6 +1077,8 @@ export declare class PostgreSqlParser extends SQLParserBase {
1076
1077
  get ruleNames(): string[];
1077
1078
  get serializedATN(): number[];
1078
1079
  protected createFailedPredicateException(predicate?: string, message?: string): antlr.FailedPredicateException;
1080
+ isFollowedByInto(): boolean;
1081
+ isFollowedByEnd(): boolean;
1079
1082
  constructor(input: antlr.TokenStream);
1080
1083
  program(): ProgramContext;
1081
1084
  singleStmt(): SingleStmtContext;
@@ -1386,6 +1389,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
1386
1389
  aliasClause(): AliasClauseContext;
1387
1390
  funcAliasClause(): FuncAliasClauseContext;
1388
1391
  joinType(): JoinTypeContext;
1392
+ joinCondition(): JoinConditionContext;
1389
1393
  joinQual(): JoinQualContext;
1390
1394
  relationExpr(): RelationExprContext;
1391
1395
  publicationRelationExpr(): PublicationRelationExprContext;
@@ -1552,10 +1556,14 @@ export declare class PostgreSqlParser extends SQLParserBase {
1552
1556
  anyIdentifier(): AnyIdentifierContext;
1553
1557
  sqlExpression(): SqlExpressionContext;
1554
1558
  sempred(localContext: antlr.RuleContext | null, ruleIndex: number, predIndex: number): boolean;
1559
+ private joinCondition_sempred;
1560
+ private joinQual_sempred;
1555
1561
  private booleanExpression_sempred;
1556
1562
  private valueExpression_sempred;
1557
1563
  private primaryExpression_sempred;
1564
+ private targetList_sempred;
1558
1565
  private targetEl_sempred;
1566
+ private columnNamePath_sempred;
1559
1567
  static readonly _serializedATN: number[];
1560
1568
  private static __ATN;
1561
1569
  static get _ATN(): antlr.ATN;
@@ -6712,8 +6720,8 @@ export declare class TableRefContext extends antlr.ParserRuleContext {
6712
6720
  KW_JOIN(i: number): antlr.TerminalNode | null;
6713
6721
  KW_NATURAL(): antlr.TerminalNode[];
6714
6722
  KW_NATURAL(i: number): antlr.TerminalNode | null;
6715
- joinQual(): JoinQualContext[];
6716
- joinQual(i: number): JoinQualContext | null;
6723
+ joinCondition(): JoinConditionContext[];
6724
+ joinCondition(i: number): JoinConditionContext | null;
6717
6725
  relationExpr(): RelationExprContext | null;
6718
6726
  aliasClause(): AliasClauseContext | null;
6719
6727
  tableSampleClause(): TableSampleClauseContext | null;
@@ -6781,12 +6789,25 @@ export declare class JoinTypeContext extends antlr.ParserRuleContext {
6781
6789
  exitRule(listener: PostgreSqlParserListener): void;
6782
6790
  accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
6783
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
+ }
6784
6801
  export declare class JoinQualContext extends antlr.ParserRuleContext {
6785
6802
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
6786
6803
  KW_USING(): antlr.TerminalNode | null;
6787
6804
  optColumnList(): OptColumnListContext | null;
6788
6805
  KW_ON(): antlr.TerminalNode | null;
6789
6806
  expression(): ExpressionContext | null;
6807
+ columnNamePath(): ColumnNamePathContext[];
6808
+ columnNamePath(i: number): ColumnNamePathContext | null;
6809
+ emptyColumn(): EmptyColumnContext | null;
6810
+ EQUAL(): antlr.TerminalNode | null;
6790
6811
  get ruleIndex(): number;
6791
6812
  enterRule(listener: PostgreSqlParserListener): void;
6792
6813
  exitRule(listener: PostgreSqlParserListener): void;
@@ -8211,9 +8232,22 @@ export declare class ColumnNameContext extends antlr.ParserRuleContext {
8211
8232
  }
8212
8233
  export declare class ColumnNamePathContext extends antlr.ParserRuleContext {
8213
8234
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
8235
+ get ruleIndex(): number;
8236
+ copyFrom(ctx: ColumnNamePathContext): void;
8237
+ }
8238
+ export declare class ColumnNamePath_defaultContext extends ColumnNamePathContext {
8239
+ constructor(ctx: ColumnNamePathContext);
8214
8240
  colId(): ColIdContext;
8215
8241
  optIndirection(): OptIndirectionContext;
8216
- get ruleIndex(): number;
8242
+ enterRule(listener: PostgreSqlParserListener): void;
8243
+ exitRule(listener: PostgreSqlParserListener): void;
8244
+ accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
8245
+ }
8246
+ export declare class ColumnNamePath_dot_emptyContext extends ColumnNamePathContext {
8247
+ constructor(ctx: ColumnNamePathContext);
8248
+ colId(): ColIdContext;
8249
+ DOT(): antlr.TerminalNode;
8250
+ emptyColumn(): EmptyColumnContext;
8217
8251
  enterRule(listener: PostgreSqlParserListener): void;
8218
8252
  exitRule(listener: PostgreSqlParserListener): void;
8219
8253
  accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
@@ -9577,7 +9611,7 @@ export declare class AnyIdentifierContext extends antlr.ParserRuleContext {
9577
9611
  }
9578
9612
  export declare class SqlExpressionContext extends antlr.ParserRuleContext {
9579
9613
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
9580
- targetList(): TargetListContext | null;
9614
+ targetList(): TargetListContext;
9581
9615
  intoClause(): IntoClauseContext | null;
9582
9616
  fromClause(): FromClauseContext | null;
9583
9617
  whereClause(): WhereClauseContext | null;