dt-sql-parser 4.4.2 → 4.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +140 -3
  2. package/dist/lib/SQLParserBase.d.ts +13 -1
  3. package/dist/lib/SQLParserBase.js +40 -5
  4. package/dist/lib/flink/FlinkSqlLexer.d.ts +397 -399
  5. package/dist/lib/flink/FlinkSqlLexer.js +2489 -2504
  6. package/dist/lib/flink/FlinkSqlParser.d.ts +726 -728
  7. package/dist/lib/flink/FlinkSqlParser.js +4727 -5330
  8. package/dist/lib/flink/FlinkSqlParserListener.d.ts +132 -90
  9. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +84 -57
  10. package/dist/lib/hive/HiveSqlParser.d.ts +338 -239
  11. package/dist/lib/hive/HiveSqlParser.js +6466 -5794
  12. package/dist/lib/hive/HiveSqlParserListener.d.ts +88 -0
  13. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +56 -0
  14. package/dist/lib/impala/ImpalaSqlParser.d.ts +236 -125
  15. package/dist/lib/impala/ImpalaSqlParser.js +4257 -3483
  16. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +109 -14
  17. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +69 -8
  18. package/dist/lib/mysql/MySqlParser.d.ts +403 -306
  19. package/dist/lib/mysql/MySqlParser.js +10694 -10030
  20. package/dist/lib/mysql/MySqlParserListener.d.ts +121 -18
  21. package/dist/lib/mysql/MySqlParserVisitor.d.ts +75 -10
  22. package/dist/lib/postgresql/PostgreSqlParser.d.ts +256 -173
  23. package/dist/lib/postgresql/PostgreSqlParser.js +14934 -11710
  24. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +97 -5
  25. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +61 -3
  26. package/dist/lib/spark/SparkSqlParser.d.ts +314 -149
  27. package/dist/lib/spark/SparkSqlParser.js +6185 -5227
  28. package/dist/lib/spark/SparkSqlParserListener.d.ts +180 -5
  29. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +113 -3
  30. package/dist/lib/trino/TrinoSqlListener.d.ts +90 -37
  31. package/dist/lib/trino/TrinoSqlParser.d.ts +219 -165
  32. package/dist/lib/trino/TrinoSqlParser.js +4942 -4615
  33. package/dist/lib/trino/TrinoSqlVisitor.d.ts +55 -21
  34. package/dist/parser/common/basicSQL.d.ts +5 -5
  35. package/dist/parser/common/basicSQL.js +4 -2
  36. package/dist/parser/common/entityCollector.d.ts +91 -4
  37. package/dist/parser/common/entityCollector.js +227 -11
  38. package/dist/parser/common/textAndWord.d.ts +9 -1
  39. package/dist/parser/common/textAndWord.js +2 -0
  40. package/dist/parser/common/types.d.ts +2 -0
  41. package/dist/parser/common/types.js +2 -0
  42. package/dist/parser/flink/flinkEntityCollector.d.ts +10 -2
  43. package/dist/parser/flink/flinkEntityCollector.js +76 -14
  44. package/dist/parser/flink/index.js +5 -2
  45. package/dist/parser/hive/hiveEntityCollector.d.ts +13 -1
  46. package/dist/parser/hive/hiveEntityCollector.js +85 -12
  47. package/dist/parser/impala/impalaEntityCollector.d.ts +7 -1
  48. package/dist/parser/impala/impalaEntityCollector.js +63 -12
  49. package/dist/parser/impala/index.js +2 -1
  50. package/dist/parser/mysql/index.js +3 -1
  51. package/dist/parser/mysql/mysqlEntityCollector.d.ts +10 -1
  52. package/dist/parser/mysql/mysqlEntityCollector.js +65 -12
  53. package/dist/parser/mysql/mysqlErrorListener.js +2 -0
  54. package/dist/parser/postgresql/postgreEntityCollector.d.ts +12 -1
  55. package/dist/parser/postgresql/postgreEntityCollector.js +99 -22
  56. package/dist/parser/spark/index.js +3 -1
  57. package/dist/parser/spark/sparkEntityCollector.d.ts +13 -1
  58. package/dist/parser/spark/sparkEntityCollector.js +88 -12
  59. package/dist/parser/trino/trinoEntityCollector.d.ts +7 -1
  60. package/dist/parser/trino/trinoEntityCollector.js +53 -12
  61. package/package.json +1 -1
@@ -901,166 +901,172 @@ 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_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;
1064
1070
  static readonly literalNames: (string | null)[];
1065
1071
  static readonly symbolicNames: (string | null)[];
1066
1072
  static readonly ruleNames: string[];
@@ -1376,6 +1382,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
1376
1382
  fromClause(): FromClauseContext;
1377
1383
  fromList(): FromListContext;
1378
1384
  tableRef(): TableRefContext;
1385
+ expressionTable(): ExpressionTableContext;
1379
1386
  aliasClause(): AliasClauseContext;
1380
1387
  funcAliasClause(): FuncAliasClauseContext;
1381
1388
  joinType(): JoinTypeContext;
@@ -1438,6 +1445,8 @@ export declare class PostgreSqlParser extends SQLParserBase {
1438
1445
  qualAllOp(): QualAllOpContext;
1439
1446
  subqueryOperator(): SubqueryOperatorContext;
1440
1447
  exprList(): ExprListContext;
1448
+ selectExpressionColumnName(): SelectExpressionColumnNameContext;
1449
+ selectLiteralColumnName(): SelectLiteralColumnNameContext;
1441
1450
  columnExpr(): ColumnExprContext;
1442
1451
  columnExprNoParen(): ColumnExprNoParenContext;
1443
1452
  funcArgList(): FuncArgListContext;
@@ -1452,6 +1461,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
1452
1461
  optIndirection(): OptIndirectionContext;
1453
1462
  targetList(): TargetListContext;
1454
1463
  targetEl(): TargetElContext;
1464
+ tableAllColumns(): TableAllColumnsContext;
1455
1465
  qualifiedNameList(): QualifiedNameListContext;
1456
1466
  tableNameList(): TableNameListContext;
1457
1467
  schemaNameList(): SchemaNameListContext;
@@ -1472,6 +1482,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
1472
1482
  routineName(): RoutineNameContext;
1473
1483
  procedureName(): ProcedureNameContext;
1474
1484
  procedureNameCreate(): ProcedureNameCreateContext;
1485
+ emptyColumn(): EmptyColumnContext;
1475
1486
  columnName(): ColumnNameContext;
1476
1487
  columnNamePath(): ColumnNamePathContext;
1477
1488
  columnNameCreate(): ColumnNameCreateContext;
@@ -1486,6 +1497,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
1486
1497
  typeFunctionName(): TypeFunctionNameContext;
1487
1498
  nonReservedWord(): NonReservedWordContext;
1488
1499
  colLabel(): ColLabelContext;
1500
+ indirectionLabel(): IndirectionLabelContext;
1489
1501
  identifier(): IdentifierContext;
1490
1502
  unreservedKeyword(): UnreservedKeywordContext;
1491
1503
  colNameKeyword(): ColNameKeywordContext;
@@ -1543,7 +1555,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
1543
1555
  private booleanExpression_sempred;
1544
1556
  private valueExpression_sempred;
1545
1557
  private primaryExpression_sempred;
1546
- private columnName_sempred;
1558
+ private targetEl_sempred;
1547
1559
  static readonly _serializedATN: number[];
1548
1560
  private static __ATN;
1549
1561
  static get _ATN(): antlr.ATN;
@@ -6689,6 +6701,7 @@ export declare class FromListContext extends antlr.ParserRuleContext {
6689
6701
  }
6690
6702
  export declare class TableRefContext extends antlr.ParserRuleContext {
6691
6703
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
6704
+ expressionTable(): ExpressionTableContext | null;
6692
6705
  OPEN_PAREN(): antlr.TerminalNode | null;
6693
6706
  tableRef(): TableRefContext[];
6694
6707
  tableRef(i: number): TableRefContext | null;
@@ -6702,16 +6715,12 @@ export declare class TableRefContext extends antlr.ParserRuleContext {
6702
6715
  joinQual(): JoinQualContext[];
6703
6716
  joinQual(i: number): JoinQualContext | null;
6704
6717
  relationExpr(): RelationExprContext | null;
6705
- xmlTable(): XmlTableContext | null;
6706
- funcTable(): FuncTableContext | null;
6707
- selectWithParens(): SelectWithParensContext | null;
6708
6718
  aliasClause(): AliasClauseContext | null;
6709
6719
  tableSampleClause(): TableSampleClauseContext | null;
6710
6720
  KW_LATERAL(): antlr.TerminalNode | null;
6711
6721
  viewName(): ViewNameContext | null;
6712
6722
  joinType(): JoinTypeContext[];
6713
6723
  joinType(i: number): JoinTypeContext | null;
6714
- funcAliasClause(): FuncAliasClauseContext | null;
6715
6724
  KW_ONLY(): antlr.TerminalNode | null;
6716
6725
  STAR(): antlr.TerminalNode | null;
6717
6726
  columnList(): ColumnListContext | null;
@@ -6721,6 +6730,18 @@ export declare class TableRefContext extends antlr.ParserRuleContext {
6721
6730
  exitRule(listener: PostgreSqlParserListener): void;
6722
6731
  accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
6723
6732
  }
6733
+ export declare class ExpressionTableContext extends antlr.ParserRuleContext {
6734
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
6735
+ xmlTable(): XmlTableContext | null;
6736
+ aliasClause(): AliasClauseContext | null;
6737
+ funcTable(): FuncTableContext | null;
6738
+ funcAliasClause(): FuncAliasClauseContext | null;
6739
+ selectWithParens(): SelectWithParensContext | null;
6740
+ get ruleIndex(): number;
6741
+ enterRule(listener: PostgreSqlParserListener): void;
6742
+ exitRule(listener: PostgreSqlParserListener): void;
6743
+ accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
6744
+ }
6724
6745
  export declare class AliasClauseContext extends antlr.ParserRuleContext {
6725
6746
  _alias?: ColIdContext;
6726
6747
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
@@ -7770,6 +7791,22 @@ export declare class ExprListContext extends antlr.ParserRuleContext {
7770
7791
  exitRule(listener: PostgreSqlParserListener): void;
7771
7792
  accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
7772
7793
  }
7794
+ export declare class SelectExpressionColumnNameContext extends antlr.ParserRuleContext {
7795
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
7796
+ expression(): ExpressionContext;
7797
+ get ruleIndex(): number;
7798
+ enterRule(listener: PostgreSqlParserListener): void;
7799
+ exitRule(listener: PostgreSqlParserListener): void;
7800
+ accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
7801
+ }
7802
+ export declare class SelectLiteralColumnNameContext extends antlr.ParserRuleContext {
7803
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
7804
+ columnName(): ColumnNameContext;
7805
+ get ruleIndex(): number;
7806
+ enterRule(listener: PostgreSqlParserListener): void;
7807
+ exitRule(listener: PostgreSqlParserListener): void;
7808
+ accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
7809
+ }
7773
7810
  export declare class ColumnExprContext extends antlr.ParserRuleContext {
7774
7811
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
7775
7812
  OPEN_PAREN(): antlr.TerminalNode | null;
@@ -7881,7 +7918,7 @@ export declare class When_clauseContext extends antlr.ParserRuleContext {
7881
7918
  export declare class IndirectionElContext extends antlr.ParserRuleContext {
7882
7919
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
7883
7920
  DOT(): antlr.TerminalNode | null;
7884
- colLabel(): ColLabelContext | null;
7921
+ indirectionLabel(): IndirectionLabelContext | null;
7885
7922
  STAR(): antlr.TerminalNode | null;
7886
7923
  OPEN_BRACKET(): antlr.TerminalNode | null;
7887
7924
  CLOSE_BRACKET(): antlr.TerminalNode | null;
@@ -7927,19 +7964,48 @@ export declare class TargetElContext extends antlr.ParserRuleContext {
7927
7964
  get ruleIndex(): number;
7928
7965
  copyFrom(ctx: TargetElContext): void;
7929
7966
  }
7930
- export declare class Target_labelContext extends TargetElContext {
7967
+ export declare class Target_emptyContext extends TargetElContext {
7931
7968
  constructor(ctx: TargetElContext);
7932
- columnExprNoParen(): ColumnExprNoParenContext;
7933
- KW_AS(): antlr.TerminalNode | null;
7934
- colLabel(): ColLabelContext | null;
7935
- identifier(): IdentifierContext | null;
7969
+ emptyColumn(): EmptyColumnContext;
7970
+ enterRule(listener: PostgreSqlParserListener): void;
7971
+ exitRule(listener: PostgreSqlParserListener): void;
7972
+ accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
7973
+ }
7974
+ export declare class Target_dot_emptyContext extends TargetElContext {
7975
+ constructor(ctx: TargetElContext);
7976
+ colId(): ColIdContext;
7977
+ DOT(): antlr.TerminalNode;
7978
+ emptyColumn(): EmptyColumnContext;
7936
7979
  enterRule(listener: PostgreSqlParserListener): void;
7937
7980
  exitRule(listener: PostgreSqlParserListener): void;
7938
7981
  accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
7939
7982
  }
7940
7983
  export declare class Target_starContext extends TargetElContext {
7941
7984
  constructor(ctx: TargetElContext);
7985
+ tableAllColumns(): TableAllColumnsContext;
7986
+ enterRule(listener: PostgreSqlParserListener): void;
7987
+ exitRule(listener: PostgreSqlParserListener): void;
7988
+ accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
7989
+ }
7990
+ export declare class Target_labelContext extends TargetElContext {
7991
+ _alias?: IdentifierContext;
7992
+ constructor(ctx: TargetElContext);
7993
+ selectLiteralColumnName(): SelectLiteralColumnNameContext | null;
7994
+ selectExpressionColumnName(): SelectExpressionColumnNameContext | null;
7995
+ identifier(): IdentifierContext | null;
7996
+ KW_AS(): antlr.TerminalNode | null;
7997
+ enterRule(listener: PostgreSqlParserListener): void;
7998
+ exitRule(listener: PostgreSqlParserListener): void;
7999
+ accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
8000
+ }
8001
+ export declare class TableAllColumnsContext extends antlr.ParserRuleContext {
8002
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
7942
8003
  STAR(): antlr.TerminalNode;
8004
+ colId(): ColIdContext[];
8005
+ colId(i: number): ColIdContext | null;
8006
+ DOT(): antlr.TerminalNode[];
8007
+ DOT(i: number): antlr.TerminalNode | null;
8008
+ get ruleIndex(): number;
7943
8009
  enterRule(listener: PostgreSqlParserListener): void;
7944
8010
  exitRule(listener: PostgreSqlParserListener): void;
7945
8011
  accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
@@ -8127,10 +8193,17 @@ export declare class ProcedureNameCreateContext extends antlr.ParserRuleContext
8127
8193
  exitRule(listener: PostgreSqlParserListener): void;
8128
8194
  accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
8129
8195
  }
8196
+ export declare class EmptyColumnContext extends antlr.ParserRuleContext {
8197
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
8198
+ get ruleIndex(): number;
8199
+ enterRule(listener: PostgreSqlParserListener): void;
8200
+ exitRule(listener: PostgreSqlParserListener): void;
8201
+ accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
8202
+ }
8130
8203
  export declare class ColumnNameContext extends antlr.ParserRuleContext {
8131
8204
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
8132
- colId(): ColIdContext | null;
8133
- optIndirection(): OptIndirectionContext | null;
8205
+ colId(): ColIdContext;
8206
+ optIndirection(): OptIndirectionContext;
8134
8207
  get ruleIndex(): number;
8135
8208
  enterRule(listener: PostgreSqlParserListener): void;
8136
8209
  exitRule(listener: PostgreSqlParserListener): void;
@@ -8269,6 +8342,16 @@ export declare class ColLabelContext extends antlr.ParserRuleContext {
8269
8342
  exitRule(listener: PostgreSqlParserListener): void;
8270
8343
  accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
8271
8344
  }
8345
+ export declare class IndirectionLabelContext extends antlr.ParserRuleContext {
8346
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
8347
+ identifier(): IdentifierContext | null;
8348
+ colNameKeyword(): ColNameKeywordContext | null;
8349
+ typeFuncNameKeyword(): TypeFuncNameKeywordContext | null;
8350
+ get ruleIndex(): number;
8351
+ enterRule(listener: PostgreSqlParserListener): void;
8352
+ exitRule(listener: PostgreSqlParserListener): void;
8353
+ accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
8354
+ }
8272
8355
  export declare class IdentifierContext extends antlr.ParserRuleContext {
8273
8356
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
8274
8357
  Identifier(): antlr.TerminalNode | null;