dt-sql-parser 4.4.0-beta.0 → 4.5.0-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 (53) hide show
  1. package/README.md +140 -3
  2. package/dist/lib/flink/FlinkSqlParser.d.ts +221 -114
  3. package/dist/lib/flink/FlinkSqlParser.js +3608 -2907
  4. package/dist/lib/flink/FlinkSqlParserListener.d.ts +99 -0
  5. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +63 -0
  6. package/dist/lib/hive/HiveSqlParser.d.ts +169 -116
  7. package/dist/lib/hive/HiveSqlParser.js +5708 -5428
  8. package/dist/lib/hive/HiveSqlParserListener.d.ts +55 -0
  9. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +35 -0
  10. package/dist/lib/impala/ImpalaSqlParser.d.ts +150 -81
  11. package/dist/lib/impala/ImpalaSqlParser.js +3730 -3323
  12. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +76 -14
  13. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +48 -8
  14. package/dist/lib/mysql/MySqlParser.d.ts +346 -316
  15. package/dist/lib/mysql/MySqlParser.js +10224 -10020
  16. package/dist/lib/mysql/MySqlParserListener.d.ts +55 -26
  17. package/dist/lib/mysql/MySqlParserVisitor.d.ts +33 -14
  18. package/dist/lib/postgresql/PostgreSqlParser.d.ts +215 -169
  19. package/dist/lib/postgresql/PostgreSqlParser.js +10333 -10051
  20. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +51 -7
  21. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +32 -4
  22. package/dist/lib/spark/SparkSqlParser.d.ts +215 -90
  23. package/dist/lib/spark/SparkSqlParser.js +5143 -4496
  24. package/dist/lib/spark/SparkSqlParserListener.d.ts +147 -5
  25. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +92 -3
  26. package/dist/lib/trino/TrinoSqlListener.d.ts +90 -37
  27. package/dist/lib/trino/TrinoSqlParser.d.ts +219 -165
  28. package/dist/lib/trino/TrinoSqlParser.js +4942 -4615
  29. package/dist/lib/trino/TrinoSqlVisitor.d.ts +55 -21
  30. package/dist/parser/common/basicSQL.js +2 -0
  31. package/dist/parser/common/entityCollector.d.ts +91 -4
  32. package/dist/parser/common/entityCollector.js +215 -11
  33. package/dist/parser/common/textAndWord.d.ts +9 -1
  34. package/dist/parser/common/textAndWord.js +2 -0
  35. package/dist/parser/common/types.d.ts +2 -0
  36. package/dist/parser/common/types.js +2 -0
  37. package/dist/parser/flink/flinkEntityCollector.d.ts +10 -2
  38. package/dist/parser/flink/flinkEntityCollector.js +76 -14
  39. package/dist/parser/hive/hiveEntityCollector.d.ts +13 -1
  40. package/dist/parser/hive/hiveEntityCollector.js +85 -12
  41. package/dist/parser/impala/impalaEntityCollector.d.ts +7 -1
  42. package/dist/parser/impala/impalaEntityCollector.js +63 -12
  43. package/dist/parser/impala/index.js +2 -1
  44. package/dist/parser/mysql/mysqlEntityCollector.d.ts +9 -1
  45. package/dist/parser/mysql/mysqlEntityCollector.js +55 -12
  46. package/dist/parser/postgresql/postgreEntityCollector.d.ts +10 -1
  47. package/dist/parser/postgresql/postgreEntityCollector.js +86 -22
  48. package/dist/parser/spark/sparkEntityCollector.d.ts +13 -1
  49. package/dist/parser/spark/sparkEntityCollector.js +88 -12
  50. package/dist/parser/trino/index.js +2 -1
  51. package/dist/parser/trino/trinoEntityCollector.d.ts +7 -1
  52. package/dist/parser/trino/trinoEntityCollector.js +53 -12
  53. package/package.json +1 -1
@@ -901,166 +901,170 @@ export declare class PostgreSqlParser extends SQLParserBase {
901
901
  static readonly RULE_fromClause = 302;
902
902
  static readonly RULE_fromList = 303;
903
903
  static readonly RULE_tableRef = 304;
904
- static readonly RULE_aliasClause = 305;
905
- static readonly RULE_funcAliasClause = 306;
906
- static readonly RULE_joinType = 307;
907
- static readonly RULE_joinQual = 308;
908
- static readonly RULE_relationExpr = 309;
909
- static readonly RULE_publicationRelationExpr = 310;
910
- static readonly RULE_relationExprList = 311;
911
- static readonly RULE_relationExprOptAlias = 312;
912
- static readonly RULE_tableSampleClause = 313;
913
- static readonly RULE_funcTable = 314;
914
- static readonly RULE_rowsFromItem = 315;
915
- static readonly RULE_whereClause = 316;
916
- static readonly RULE_whereOrCurrentClause = 317;
917
- static readonly RULE_tableFuncElementList = 318;
918
- static readonly RULE_tableFuncElement = 319;
919
- static readonly RULE_xmlTable = 320;
920
- static readonly RULE_xmlTableColumnEl = 321;
921
- static readonly RULE_xmlNamespaceEle = 322;
922
- static readonly RULE_typename = 323;
923
- static readonly RULE_simpleTypeName = 324;
924
- static readonly RULE_constTypeName = 325;
925
- static readonly RULE_numeric = 326;
926
- static readonly RULE_optFloat = 327;
927
- static readonly RULE_bit = 328;
928
- static readonly RULE_character = 329;
929
- static readonly RULE_constDatetime = 330;
930
- static readonly RULE_optInterval = 331;
931
- static readonly RULE_intervalSecond = 332;
932
- static readonly RULE_comparisonOperator = 333;
933
- static readonly RULE_expression = 334;
934
- static readonly RULE_booleanExpression = 335;
935
- static readonly RULE_predicate = 336;
936
- static readonly RULE_valueExpression = 337;
937
- static readonly RULE_primaryExpression = 338;
938
- static readonly RULE_funcApplication = 339;
939
- static readonly RULE_func_expr = 340;
940
- static readonly RULE_funcExprWindowless = 341;
941
- static readonly RULE_funcExprCommonSubExpr = 342;
942
- static readonly RULE_xmlAttributeList = 343;
943
- static readonly RULE_xmlAttributeEl = 344;
944
- static readonly RULE_documentOrContent = 345;
945
- static readonly RULE_xmlExistsArgument = 346;
946
- static readonly RULE_xmlPassingMech = 347;
947
- static readonly RULE_windowClause = 348;
948
- static readonly RULE_havingClause = 349;
949
- static readonly RULE_windowDefinition = 350;
950
- static readonly RULE_over_clause = 351;
951
- static readonly RULE_windowSpecification = 352;
952
- static readonly RULE_optFrameClause = 353;
953
- static readonly RULE_frameBound = 354;
954
- static readonly RULE_row = 355;
955
- static readonly RULE_explicitRow = 356;
956
- static readonly RULE_subType = 357;
957
- static readonly RULE_allOp = 358;
958
- static readonly RULE_mathOp = 359;
959
- static readonly RULE_qualOp = 360;
960
- static readonly RULE_qualAllOp = 361;
961
- static readonly RULE_subqueryOperator = 362;
962
- static readonly RULE_exprList = 363;
963
- static readonly RULE_columnExpr = 364;
964
- static readonly RULE_columnExprNoParen = 365;
965
- static readonly RULE_funcArgList = 366;
966
- static readonly RULE_funcArgExpr = 367;
967
- static readonly RULE_arrayExpr = 368;
968
- static readonly RULE_extractArg = 369;
969
- static readonly RULE_unicodeNormalForm = 370;
970
- static readonly RULE_substrList = 371;
971
- static readonly RULE_when_clause = 372;
972
- static readonly RULE_indirectionEl = 373;
973
- static readonly RULE_indirection = 374;
974
- static readonly RULE_optIndirection = 375;
975
- static readonly RULE_targetList = 376;
976
- static readonly RULE_targetEl = 377;
977
- static readonly RULE_qualifiedNameList = 378;
978
- static readonly RULE_tableNameList = 379;
979
- static readonly RULE_schemaNameList = 380;
980
- static readonly RULE_databaseNameList = 381;
981
- static readonly RULE_tableSpaceNameCreate = 382;
982
- static readonly RULE_tableSpaceName = 383;
983
- static readonly RULE_tableNameCreate = 384;
984
- static readonly RULE_tableName = 385;
985
- static readonly RULE_viewNameCreate = 386;
986
- static readonly RULE_viewName = 387;
987
- static readonly RULE_qualifiedName = 388;
988
- static readonly RULE_tableSpaceNameList = 389;
989
- static readonly RULE_nameList = 390;
990
- static readonly RULE_databaseNameCreate = 391;
991
- static readonly RULE_databaseName = 392;
992
- static readonly RULE_schemaName = 393;
993
- static readonly RULE_routineNameCreate = 394;
994
- static readonly RULE_routineName = 395;
995
- static readonly RULE_procedureName = 396;
996
- static readonly RULE_procedureNameCreate = 397;
997
- static readonly RULE_columnName = 398;
998
- static readonly RULE_columnNamePath = 399;
999
- static readonly RULE_columnNameCreate = 400;
1000
- static readonly RULE_functionNameCreate = 401;
1001
- static readonly RULE_functionName = 402;
1002
- static readonly RULE_stringConst = 403;
1003
- static readonly RULE_anysconst = 404;
1004
- static readonly RULE_signedConst = 405;
1005
- static readonly RULE_roleSpec = 406;
1006
- static readonly RULE_roleList = 407;
1007
- static readonly RULE_colId = 408;
1008
- static readonly RULE_typeFunctionName = 409;
1009
- static readonly RULE_nonReservedWord = 410;
1010
- static readonly RULE_colLabel = 411;
1011
- static readonly RULE_identifier = 412;
1012
- static readonly RULE_unreservedKeyword = 413;
1013
- static readonly RULE_colNameKeyword = 414;
1014
- static readonly RULE_typeFuncNameKeyword = 415;
1015
- static readonly RULE_reservedKeyword = 416;
1016
- static readonly RULE_plBlock = 417;
1017
- static readonly RULE_labelDecl = 418;
1018
- static readonly RULE_declStatement = 419;
1019
- static readonly RULE_declCursorArg = 420;
1020
- static readonly RULE_assignOperator = 421;
1021
- static readonly RULE_procStmt = 422;
1022
- static readonly RULE_stmtPerform = 423;
1023
- static readonly RULE_stmtCall = 424;
1024
- static readonly RULE_stmtAssign = 425;
1025
- static readonly RULE_stmtGetdiag = 426;
1026
- static readonly RULE_getdiagListItem = 427;
1027
- static readonly RULE_assignVar = 428;
1028
- static readonly RULE_stmtIf = 429;
1029
- static readonly RULE_stmtElse = 430;
1030
- static readonly RULE_stmtCase = 431;
1031
- static readonly RULE_stmtLoopWhileFor = 432;
1032
- static readonly RULE_forControl = 433;
1033
- static readonly RULE_stmtForeach = 434;
1034
- static readonly RULE_stmtExit = 435;
1035
- static readonly RULE_stmtReturn = 436;
1036
- static readonly RULE_stmtRaise = 437;
1037
- static readonly RULE_optRaiseUsingElem = 438;
1038
- static readonly RULE_stmtAssert = 439;
1039
- static readonly RULE_loopBody = 440;
1040
- static readonly RULE_stmtExecsql = 441;
1041
- static readonly RULE_stmtDynexecute = 442;
1042
- static readonly RULE_optExecuteInto = 443;
1043
- static readonly RULE_stmtOpen = 444;
1044
- static readonly RULE_optOpenBoundListItem = 445;
1045
- static readonly RULE_stmtFetch = 446;
1046
- static readonly RULE_optFetchFirection = 447;
1047
- static readonly RULE_stmtMove = 448;
1048
- static readonly RULE_mergeStmt = 449;
1049
- static readonly RULE_dataSource = 450;
1050
- static readonly RULE_mergeWhenClause = 451;
1051
- static readonly RULE_mergeInsert = 452;
1052
- static readonly RULE_mergeUpdate = 453;
1053
- static readonly RULE_defaultValuesOrValues = 454;
1054
- static readonly RULE_exprofdefault = 455;
1055
- static readonly RULE_stmtClose = 456;
1056
- static readonly RULE_stmtNull = 457;
1057
- static readonly RULE_stmtCommitOrRollback = 458;
1058
- static readonly RULE_stmtSet = 459;
1059
- static readonly RULE_cursorVariable = 460;
1060
- static readonly RULE_exceptionSect = 461;
1061
- static readonly RULE_procCondition = 462;
1062
- static readonly RULE_anyIdentifier = 463;
1063
- static readonly RULE_sqlExpression = 464;
904
+ static readonly RULE_expressionTable = 305;
905
+ static readonly RULE_aliasClause = 306;
906
+ static readonly RULE_funcAliasClause = 307;
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_columnName = 402;
1002
+ static readonly RULE_columnNamePath = 403;
1003
+ static readonly RULE_columnNameCreate = 404;
1004
+ static readonly RULE_functionNameCreate = 405;
1005
+ static readonly RULE_functionName = 406;
1006
+ static readonly RULE_stringConst = 407;
1007
+ static readonly RULE_anysconst = 408;
1008
+ static readonly RULE_signedConst = 409;
1009
+ static readonly RULE_roleSpec = 410;
1010
+ static readonly RULE_roleList = 411;
1011
+ static readonly RULE_colId = 412;
1012
+ static readonly RULE_typeFunctionName = 413;
1013
+ static readonly RULE_nonReservedWord = 414;
1014
+ static readonly RULE_colLabel = 415;
1015
+ static readonly RULE_identifier = 416;
1016
+ static readonly RULE_unreservedKeyword = 417;
1017
+ static readonly RULE_colNameKeyword = 418;
1018
+ static readonly RULE_typeFuncNameKeyword = 419;
1019
+ static readonly RULE_reservedKeyword = 420;
1020
+ static readonly RULE_plBlock = 421;
1021
+ static readonly RULE_labelDecl = 422;
1022
+ static readonly RULE_declStatement = 423;
1023
+ static readonly RULE_declCursorArg = 424;
1024
+ static readonly RULE_assignOperator = 425;
1025
+ static readonly RULE_procStmt = 426;
1026
+ static readonly RULE_stmtPerform = 427;
1027
+ static readonly RULE_stmtCall = 428;
1028
+ static readonly RULE_stmtAssign = 429;
1029
+ static readonly RULE_stmtGetdiag = 430;
1030
+ static readonly RULE_getdiagListItem = 431;
1031
+ static readonly RULE_assignVar = 432;
1032
+ static readonly RULE_stmtIf = 433;
1033
+ static readonly RULE_stmtElse = 434;
1034
+ static readonly RULE_stmtCase = 435;
1035
+ static readonly RULE_stmtLoopWhileFor = 436;
1036
+ static readonly RULE_forControl = 437;
1037
+ static readonly RULE_stmtForeach = 438;
1038
+ static readonly RULE_stmtExit = 439;
1039
+ static readonly RULE_stmtReturn = 440;
1040
+ static readonly RULE_stmtRaise = 441;
1041
+ static readonly RULE_optRaiseUsingElem = 442;
1042
+ static readonly RULE_stmtAssert = 443;
1043
+ static readonly RULE_loopBody = 444;
1044
+ static readonly RULE_stmtExecsql = 445;
1045
+ static readonly RULE_stmtDynexecute = 446;
1046
+ static readonly RULE_optExecuteInto = 447;
1047
+ static readonly RULE_stmtOpen = 448;
1048
+ static readonly RULE_optOpenBoundListItem = 449;
1049
+ static readonly RULE_stmtFetch = 450;
1050
+ static readonly RULE_optFetchFirection = 451;
1051
+ static readonly RULE_stmtMove = 452;
1052
+ static readonly RULE_mergeStmt = 453;
1053
+ static readonly RULE_dataSource = 454;
1054
+ static readonly RULE_mergeWhenClause = 455;
1055
+ static readonly RULE_mergeInsert = 456;
1056
+ static readonly RULE_mergeUpdate = 457;
1057
+ static readonly RULE_defaultValuesOrValues = 458;
1058
+ static readonly RULE_exprofdefault = 459;
1059
+ static readonly RULE_stmtClose = 460;
1060
+ static readonly RULE_stmtNull = 461;
1061
+ static readonly RULE_stmtCommitOrRollback = 462;
1062
+ static readonly RULE_stmtSet = 463;
1063
+ static readonly RULE_cursorVariable = 464;
1064
+ static readonly RULE_exceptionSect = 465;
1065
+ static readonly RULE_procCondition = 466;
1066
+ static readonly RULE_anyIdentifier = 467;
1067
+ static readonly RULE_sqlExpression = 468;
1064
1068
  static readonly literalNames: (string | null)[];
1065
1069
  static readonly symbolicNames: (string | null)[];
1066
1070
  static readonly ruleNames: string[];
@@ -1376,6 +1380,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
1376
1380
  fromClause(): FromClauseContext;
1377
1381
  fromList(): FromListContext;
1378
1382
  tableRef(): TableRefContext;
1383
+ expressionTable(): ExpressionTableContext;
1379
1384
  aliasClause(): AliasClauseContext;
1380
1385
  funcAliasClause(): FuncAliasClauseContext;
1381
1386
  joinType(): JoinTypeContext;
@@ -1438,6 +1443,8 @@ export declare class PostgreSqlParser extends SQLParserBase {
1438
1443
  qualAllOp(): QualAllOpContext;
1439
1444
  subqueryOperator(): SubqueryOperatorContext;
1440
1445
  exprList(): ExprListContext;
1446
+ selectExpressionColumnName(): SelectExpressionColumnNameContext;
1447
+ selectLiteralColumnName(): SelectLiteralColumnNameContext;
1441
1448
  columnExpr(): ColumnExprContext;
1442
1449
  columnExprNoParen(): ColumnExprNoParenContext;
1443
1450
  funcArgList(): FuncArgListContext;
@@ -1452,6 +1459,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
1452
1459
  optIndirection(): OptIndirectionContext;
1453
1460
  targetList(): TargetListContext;
1454
1461
  targetEl(): TargetElContext;
1462
+ tableAllColumns(): TableAllColumnsContext;
1455
1463
  qualifiedNameList(): QualifiedNameListContext;
1456
1464
  tableNameList(): TableNameListContext;
1457
1465
  schemaNameList(): SchemaNameListContext;
@@ -6689,6 +6697,7 @@ export declare class FromListContext extends antlr.ParserRuleContext {
6689
6697
  }
6690
6698
  export declare class TableRefContext extends antlr.ParserRuleContext {
6691
6699
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
6700
+ expressionTable(): ExpressionTableContext | null;
6692
6701
  OPEN_PAREN(): antlr.TerminalNode | null;
6693
6702
  tableRef(): TableRefContext[];
6694
6703
  tableRef(i: number): TableRefContext | null;
@@ -6702,16 +6711,12 @@ export declare class TableRefContext extends antlr.ParserRuleContext {
6702
6711
  joinQual(): JoinQualContext[];
6703
6712
  joinQual(i: number): JoinQualContext | null;
6704
6713
  relationExpr(): RelationExprContext | null;
6705
- xmlTable(): XmlTableContext | null;
6706
- funcTable(): FuncTableContext | null;
6707
- selectWithParens(): SelectWithParensContext | null;
6708
6714
  aliasClause(): AliasClauseContext | null;
6709
6715
  tableSampleClause(): TableSampleClauseContext | null;
6710
6716
  KW_LATERAL(): antlr.TerminalNode | null;
6711
6717
  viewName(): ViewNameContext | null;
6712
6718
  joinType(): JoinTypeContext[];
6713
6719
  joinType(i: number): JoinTypeContext | null;
6714
- funcAliasClause(): FuncAliasClauseContext | null;
6715
6720
  KW_ONLY(): antlr.TerminalNode | null;
6716
6721
  STAR(): antlr.TerminalNode | null;
6717
6722
  columnList(): ColumnListContext | null;
@@ -6721,6 +6726,18 @@ export declare class TableRefContext extends antlr.ParserRuleContext {
6721
6726
  exitRule(listener: PostgreSqlParserListener): void;
6722
6727
  accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
6723
6728
  }
6729
+ export declare class ExpressionTableContext extends antlr.ParserRuleContext {
6730
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
6731
+ xmlTable(): XmlTableContext | null;
6732
+ aliasClause(): AliasClauseContext | null;
6733
+ funcTable(): FuncTableContext | null;
6734
+ funcAliasClause(): FuncAliasClauseContext | null;
6735
+ selectWithParens(): SelectWithParensContext | null;
6736
+ get ruleIndex(): number;
6737
+ enterRule(listener: PostgreSqlParserListener): void;
6738
+ exitRule(listener: PostgreSqlParserListener): void;
6739
+ accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
6740
+ }
6724
6741
  export declare class AliasClauseContext extends antlr.ParserRuleContext {
6725
6742
  _alias?: ColIdContext;
6726
6743
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
@@ -7770,6 +7787,22 @@ export declare class ExprListContext extends antlr.ParserRuleContext {
7770
7787
  exitRule(listener: PostgreSqlParserListener): void;
7771
7788
  accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
7772
7789
  }
7790
+ export declare class SelectExpressionColumnNameContext extends antlr.ParserRuleContext {
7791
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
7792
+ expression(): ExpressionContext;
7793
+ get ruleIndex(): number;
7794
+ enterRule(listener: PostgreSqlParserListener): void;
7795
+ exitRule(listener: PostgreSqlParserListener): void;
7796
+ accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
7797
+ }
7798
+ export declare class SelectLiteralColumnNameContext extends antlr.ParserRuleContext {
7799
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
7800
+ columnName(): ColumnNameContext;
7801
+ get ruleIndex(): number;
7802
+ enterRule(listener: PostgreSqlParserListener): void;
7803
+ exitRule(listener: PostgreSqlParserListener): void;
7804
+ accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
7805
+ }
7773
7806
  export declare class ColumnExprContext extends antlr.ParserRuleContext {
7774
7807
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
7775
7808
  OPEN_PAREN(): antlr.TerminalNode | null;
@@ -7927,19 +7960,32 @@ export declare class TargetElContext extends antlr.ParserRuleContext {
7927
7960
  get ruleIndex(): number;
7928
7961
  copyFrom(ctx: TargetElContext): void;
7929
7962
  }
7963
+ export declare class Target_starContext extends TargetElContext {
7964
+ constructor(ctx: TargetElContext);
7965
+ tableAllColumns(): TableAllColumnsContext;
7966
+ enterRule(listener: PostgreSqlParserListener): void;
7967
+ exitRule(listener: PostgreSqlParserListener): void;
7968
+ accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
7969
+ }
7930
7970
  export declare class Target_labelContext extends TargetElContext {
7971
+ _alias?: IdentifierContext;
7931
7972
  constructor(ctx: TargetElContext);
7932
- columnExprNoParen(): ColumnExprNoParenContext;
7933
- KW_AS(): antlr.TerminalNode | null;
7934
- colLabel(): ColLabelContext | null;
7973
+ selectLiteralColumnName(): SelectLiteralColumnNameContext | null;
7974
+ selectExpressionColumnName(): SelectExpressionColumnNameContext | null;
7935
7975
  identifier(): IdentifierContext | null;
7976
+ KW_AS(): antlr.TerminalNode | null;
7936
7977
  enterRule(listener: PostgreSqlParserListener): void;
7937
7978
  exitRule(listener: PostgreSqlParserListener): void;
7938
7979
  accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
7939
7980
  }
7940
- export declare class Target_starContext extends TargetElContext {
7941
- constructor(ctx: TargetElContext);
7981
+ export declare class TableAllColumnsContext extends antlr.ParserRuleContext {
7982
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
7942
7983
  STAR(): antlr.TerminalNode;
7984
+ colId(): ColIdContext[];
7985
+ colId(i: number): ColIdContext | null;
7986
+ DOT(): antlr.TerminalNode[];
7987
+ DOT(i: number): antlr.TerminalNode | null;
7988
+ get ruleIndex(): number;
7943
7989
  enterRule(listener: PostgreSqlParserListener): void;
7944
7990
  exitRule(listener: PostgreSqlParserListener): void;
7945
7991
  accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;