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
@@ -1033,291 +1033,296 @@ export declare class MySqlParser extends SQLParserBase {
1033
1033
  static readonly RULE_tableSources = 131;
1034
1034
  static readonly RULE_tableSource = 132;
1035
1035
  static readonly RULE_tableSourceItem = 133;
1036
- static readonly RULE_fullColumnNames = 134;
1037
- static readonly RULE_indexHint = 135;
1038
- static readonly RULE_indexHintType = 136;
1039
- static readonly RULE_joinPart = 137;
1040
- static readonly RULE_joinSpec = 138;
1041
- static readonly RULE_queryExpression = 139;
1042
- static readonly RULE_querySpecification = 140;
1043
- static readonly RULE_unionStatement = 141;
1044
- static readonly RULE_lateralStatement = 142;
1045
- static readonly RULE_jsonTable = 143;
1046
- static readonly RULE_jsonColumnList = 144;
1047
- static readonly RULE_jsonColumn = 145;
1048
- static readonly RULE_jsonOnEmpty = 146;
1049
- static readonly RULE_jsonOnError = 147;
1050
- static readonly RULE_selectSpec = 148;
1051
- static readonly RULE_selectElements = 149;
1052
- static readonly RULE_selectElement = 150;
1053
- static readonly RULE_intoClause = 151;
1054
- static readonly RULE_selectFieldsInto = 152;
1055
- static readonly RULE_selectLinesInto = 153;
1056
- static readonly RULE_fromClause = 154;
1057
- static readonly RULE_groupByClause = 155;
1058
- static readonly RULE_havingClause = 156;
1059
- static readonly RULE_windowClause = 157;
1060
- static readonly RULE_groupByItem = 158;
1061
- static readonly RULE_limitClause = 159;
1062
- static readonly RULE_limitClauseAtom = 160;
1063
- static readonly RULE_startTransaction = 161;
1064
- static readonly RULE_beginWork = 162;
1065
- static readonly RULE_commitWork = 163;
1066
- static readonly RULE_rollbackWork = 164;
1067
- static readonly RULE_savePointStatement = 165;
1068
- static readonly RULE_rollbackStatement = 166;
1069
- static readonly RULE_releaseStatement = 167;
1070
- static readonly RULE_lockTables = 168;
1071
- static readonly RULE_unlockTables = 169;
1072
- static readonly RULE_setAutocommitStatement = 170;
1073
- static readonly RULE_setTransactionStatement = 171;
1074
- static readonly RULE_transactionMode = 172;
1075
- static readonly RULE_lockTableElement = 173;
1076
- static readonly RULE_lockAction = 174;
1077
- static readonly RULE_transactionOption = 175;
1078
- static readonly RULE_transactionLevel = 176;
1079
- static readonly RULE_changeMaster = 177;
1080
- static readonly RULE_changeReplicationFilter = 178;
1081
- static readonly RULE_changeReplicationSource = 179;
1082
- static readonly RULE_purgeBinaryLogs = 180;
1083
- static readonly RULE_startSlaveOrReplica = 181;
1084
- static readonly RULE_stopSlaveOrReplica = 182;
1085
- static readonly RULE_startGroupReplication = 183;
1086
- static readonly RULE_stopGroupReplication = 184;
1087
- static readonly RULE_masterOption = 185;
1088
- static readonly RULE_stringMasterOption = 186;
1089
- static readonly RULE_decimalMasterOption = 187;
1090
- static readonly RULE_boolMasterOption = 188;
1091
- static readonly RULE_v8NewMasterOption = 189;
1092
- static readonly RULE_replicationSourceOption = 190;
1093
- static readonly RULE_stringSourceOption = 191;
1094
- static readonly RULE_decimalSourceOption = 192;
1095
- static readonly RULE_boolSourceOption = 193;
1096
- static readonly RULE_otherSourceOption = 194;
1097
- static readonly RULE_channelOption = 195;
1098
- static readonly RULE_replicationFilter = 196;
1099
- static readonly RULE_tablePair = 197;
1100
- static readonly RULE_threadType = 198;
1101
- static readonly RULE_untilOption = 199;
1102
- static readonly RULE_connectionOptions = 200;
1103
- static readonly RULE_gtuidSet = 201;
1104
- static readonly RULE_xaStartTransaction = 202;
1105
- static readonly RULE_xaEndTransaction = 203;
1106
- static readonly RULE_xaPrepareStatement = 204;
1107
- static readonly RULE_xaCommitWork = 205;
1108
- static readonly RULE_xaRollbackWork = 206;
1109
- static readonly RULE_xaRecoverWork = 207;
1110
- static readonly RULE_prepareStatement = 208;
1111
- static readonly RULE_executeStatement = 209;
1112
- static readonly RULE_deallocatePrepare = 210;
1113
- static readonly RULE_routineBody = 211;
1114
- static readonly RULE_blockStatement = 212;
1115
- static readonly RULE_caseStatement = 213;
1116
- static readonly RULE_ifStatement = 214;
1117
- static readonly RULE_iterateStatement = 215;
1118
- static readonly RULE_leaveStatement = 216;
1119
- static readonly RULE_loopStatement = 217;
1120
- static readonly RULE_repeatStatement = 218;
1121
- static readonly RULE_returnStatement = 219;
1122
- static readonly RULE_whileStatement = 220;
1123
- static readonly RULE_cursorStatement = 221;
1124
- static readonly RULE_declareVariable = 222;
1125
- static readonly RULE_declareCondition = 223;
1126
- static readonly RULE_declareCursor = 224;
1127
- static readonly RULE_declareHandler = 225;
1128
- static readonly RULE_handlerConditionValue = 226;
1129
- static readonly RULE_procedureSqlStatement = 227;
1130
- static readonly RULE_caseAlternative = 228;
1131
- static readonly RULE_elseIfAlternative = 229;
1132
- static readonly RULE_alterUser = 230;
1133
- static readonly RULE_createUser = 231;
1134
- static readonly RULE_dropUser = 232;
1135
- static readonly RULE_grantStatement = 233;
1136
- static readonly RULE_roleOption = 234;
1137
- static readonly RULE_grantProxy = 235;
1138
- static readonly RULE_alterResourceGroup = 236;
1139
- static readonly RULE_createResourceGroup = 237;
1140
- static readonly RULE_dropResourceGroup = 238;
1141
- static readonly RULE_setResourceGroup = 239;
1142
- static readonly RULE_resourceGroupVCpuSpec = 240;
1143
- static readonly RULE_renameUser = 241;
1144
- static readonly RULE_revokeStatement = 242;
1145
- static readonly RULE_ignoreUnknownUser = 243;
1146
- static readonly RULE_privilegeObjectType = 244;
1147
- static readonly RULE_setPasswordStatement = 245;
1148
- static readonly RULE_userSpecification = 246;
1149
- static readonly RULE_alterUserAuthOption = 247;
1150
- static readonly RULE_createUserAuthOption = 248;
1151
- static readonly RULE_createUserInitialAuthOption = 249;
1152
- static readonly RULE_userAuthOption = 250;
1153
- static readonly RULE_authOptionClause = 251;
1154
- static readonly RULE_authenticationRule = 252;
1155
- static readonly RULE_tlsOption = 253;
1156
- static readonly RULE_userResourceOption = 254;
1157
- static readonly RULE_userPasswordOption = 255;
1158
- static readonly RULE_userLockOption = 256;
1159
- static readonly RULE_factorAuthOption = 257;
1160
- static readonly RULE_registrationOption = 258;
1161
- static readonly RULE_factor = 259;
1162
- static readonly RULE_privilegeClause = 260;
1163
- static readonly RULE_privilege = 261;
1164
- static readonly RULE_privilegeLevel = 262;
1165
- static readonly RULE_renameUserClause = 263;
1166
- static readonly RULE_analyzeTable = 264;
1167
- static readonly RULE_checkTable = 265;
1168
- static readonly RULE_checksumTable = 266;
1169
- static readonly RULE_optimizeTable = 267;
1170
- static readonly RULE_repairTable = 268;
1171
- static readonly RULE_tableActionOption = 269;
1172
- static readonly RULE_checkTableOption = 270;
1173
- static readonly RULE_installComponent = 271;
1174
- static readonly RULE_variableExpr = 272;
1175
- static readonly RULE_uninstallComponent = 273;
1176
- static readonly RULE_installPlugin = 274;
1177
- static readonly RULE_uninstallPlugin = 275;
1178
- static readonly RULE_cloneStatement = 276;
1179
- static readonly RULE_setStatement = 277;
1180
- static readonly RULE_showStatement = 278;
1181
- static readonly RULE_variableClause = 279;
1182
- static readonly RULE_showCommonEntity = 280;
1183
- static readonly RULE_showFilter = 281;
1184
- static readonly RULE_showGlobalInfoClause = 282;
1185
- static readonly RULE_showSchemaEntity = 283;
1186
- static readonly RULE_showProfileType = 284;
1187
- static readonly RULE_binLogStatement = 285;
1188
- static readonly RULE_cacheIndexStatement = 286;
1189
- static readonly RULE_flushStatement = 287;
1190
- static readonly RULE_killStatement = 288;
1191
- static readonly RULE_loadIndexIntoCache = 289;
1192
- static readonly RULE_resetStatement = 290;
1193
- static readonly RULE_resetOption = 291;
1194
- static readonly RULE_resetPersist = 292;
1195
- static readonly RULE_resetAllChannel = 293;
1196
- static readonly RULE_reStartStatement = 294;
1197
- static readonly RULE_shutdownStatement = 295;
1198
- static readonly RULE_tableIndex = 296;
1199
- static readonly RULE_flushOption = 297;
1200
- static readonly RULE_flushTableOption = 298;
1201
- static readonly RULE_loadedTableIndexes = 299;
1202
- static readonly RULE_simpleDescribeStatement = 300;
1203
- static readonly RULE_fullDescribeStatement = 301;
1204
- static readonly RULE_analyzeDescribeStatement = 302;
1205
- static readonly RULE_helpStatement = 303;
1206
- static readonly RULE_useStatement = 304;
1207
- static readonly RULE_signalStatement = 305;
1208
- static readonly RULE_resignalStatement = 306;
1209
- static readonly RULE_signalConditionInformation = 307;
1210
- static readonly RULE_withStatement = 308;
1211
- static readonly RULE_tableStatement = 309;
1212
- static readonly RULE_diagnosticsStatement = 310;
1213
- static readonly RULE_diagnosticsConditionInformationName = 311;
1214
- static readonly RULE_describeObjectClause = 312;
1215
- static readonly RULE_databaseNameCreate = 313;
1216
- static readonly RULE_databaseName = 314;
1217
- static readonly RULE_functionNameCreate = 315;
1218
- static readonly RULE_functionName = 316;
1219
- static readonly RULE_viewNameCreate = 317;
1220
- static readonly RULE_viewName = 318;
1221
- static readonly RULE_indexNameCreate = 319;
1222
- static readonly RULE_indexNames = 320;
1223
- static readonly RULE_indexName = 321;
1224
- static readonly RULE_groupNameCreate = 322;
1225
- static readonly RULE_groupName = 323;
1226
- static readonly RULE_tableNameCreate = 324;
1227
- static readonly RULE_tableNames = 325;
1228
- static readonly RULE_tableName = 326;
1229
- static readonly RULE_userOrRoleNames = 327;
1230
- static readonly RULE_userOrRoleName = 328;
1231
- static readonly RULE_columnNameCreate = 329;
1232
- static readonly RULE_columnNames = 330;
1233
- static readonly RULE_columnName = 331;
1234
- static readonly RULE_tableSpaceNameCreate = 332;
1235
- static readonly RULE_tableSpaceName = 333;
1236
- static readonly RULE_partitionNameCreate = 334;
1237
- static readonly RULE_partitionNames = 335;
1238
- static readonly RULE_partitionName = 336;
1239
- static readonly RULE_indexColumnName = 337;
1240
- static readonly RULE_userHostPort = 338;
1241
- static readonly RULE_userAtHost = 339;
1242
- static readonly RULE_simpleUserName = 340;
1243
- static readonly RULE_hostName = 341;
1244
- static readonly RULE_userName = 342;
1245
- static readonly RULE_mysqlVariable = 343;
1246
- static readonly RULE_charsetName = 344;
1247
- static readonly RULE_collationName = 345;
1248
- static readonly RULE_engineName = 346;
1249
- static readonly RULE_engineNameBase = 347;
1250
- static readonly RULE_uuidSet = 348;
1251
- static readonly RULE_xid = 349;
1252
- static readonly RULE_xuidStringId = 350;
1253
- static readonly RULE_fullId = 351;
1254
- static readonly RULE_uidList = 352;
1255
- static readonly RULE_uid = 353;
1256
- static readonly RULE_simpleId = 354;
1257
- static readonly RULE_dottedId = 355;
1258
- static readonly RULE_decimalLiteral = 356;
1259
- static readonly RULE_fileSizeLiteral = 357;
1260
- static readonly RULE_stringLiteral = 358;
1261
- static readonly RULE_booleanLiteral = 359;
1262
- static readonly RULE_hexadecimalLiteral = 360;
1263
- static readonly RULE_nullNotNull = 361;
1264
- static readonly RULE_constant = 362;
1265
- static readonly RULE_dataType = 363;
1266
- static readonly RULE_collectionOptions = 364;
1267
- static readonly RULE_convertedDataType = 365;
1268
- static readonly RULE_lengthOneDimension = 366;
1269
- static readonly RULE_lengthTwoDimension = 367;
1270
- static readonly RULE_lengthTwoOptionalDimension = 368;
1271
- static readonly RULE_indexColumnNames = 369;
1272
- static readonly RULE_expressions = 370;
1273
- static readonly RULE_valuesOrValueList = 371;
1274
- static readonly RULE_expressionsWithDefaults = 372;
1275
- static readonly RULE_expressionOrDefault = 373;
1276
- static readonly RULE_constants = 374;
1277
- static readonly RULE_simpleStrings = 375;
1278
- static readonly RULE_userVariables = 376;
1279
- static readonly RULE_defaultValue = 377;
1280
- static readonly RULE_currentTimestamp = 378;
1281
- static readonly RULE_ifExists = 379;
1282
- static readonly RULE_ifNotExists = 380;
1283
- static readonly RULE_orReplace = 381;
1284
- static readonly RULE_functionCall = 382;
1285
- static readonly RULE_specificFunction = 383;
1286
- static readonly RULE_caseFuncAlternative = 384;
1287
- static readonly RULE_levelsInWeightString = 385;
1288
- static readonly RULE_levelInWeightListElement = 386;
1289
- static readonly RULE_aggregateWindowedFunction = 387;
1290
- static readonly RULE_nonAggregateWindowedFunction = 388;
1291
- static readonly RULE_overClause = 389;
1292
- static readonly RULE_windowSpec = 390;
1293
- static readonly RULE_windowName = 391;
1294
- static readonly RULE_frameClause = 392;
1295
- static readonly RULE_frameUnits = 393;
1296
- static readonly RULE_frameExtent = 394;
1297
- static readonly RULE_frameBetween = 395;
1298
- static readonly RULE_frameRange = 396;
1299
- static readonly RULE_partitionClause = 397;
1300
- static readonly RULE_scalarFunctionName = 398;
1301
- static readonly RULE_passwordFunctionClause = 399;
1302
- static readonly RULE_functionArgs = 400;
1303
- static readonly RULE_functionArg = 401;
1304
- static readonly RULE_expression = 402;
1305
- static readonly RULE_predicate = 403;
1306
- static readonly RULE_expressionAtom = 404;
1307
- static readonly RULE_unaryOperator = 405;
1308
- static readonly RULE_comparisonOperator = 406;
1309
- static readonly RULE_comparisonBase = 407;
1310
- static readonly RULE_logicalOperator = 408;
1311
- static readonly RULE_bitOperator = 409;
1312
- static readonly RULE_mathOperator = 410;
1313
- static readonly RULE_jsonOperator = 411;
1314
- static readonly RULE_charsetNameBase = 412;
1315
- static readonly RULE_transactionLevelBase = 413;
1316
- static readonly RULE_privilegesBase = 414;
1317
- static readonly RULE_intervalTypeBase = 415;
1318
- static readonly RULE_dataTypeBase = 416;
1319
- static readonly RULE_keywordsCanBeId = 417;
1320
- static readonly RULE_functionNameBase = 418;
1036
+ static readonly RULE_atomSubQueryTableSource = 134;
1037
+ static readonly RULE_fullColumnNames = 135;
1038
+ static readonly RULE_indexHint = 136;
1039
+ static readonly RULE_indexHintType = 137;
1040
+ static readonly RULE_joinPart = 138;
1041
+ static readonly RULE_joinSpec = 139;
1042
+ static readonly RULE_queryExpression = 140;
1043
+ static readonly RULE_querySpecification = 141;
1044
+ static readonly RULE_unionStatement = 142;
1045
+ static readonly RULE_lateralStatement = 143;
1046
+ static readonly RULE_jsonTable = 144;
1047
+ static readonly RULE_jsonColumnList = 145;
1048
+ static readonly RULE_jsonColumn = 146;
1049
+ static readonly RULE_jsonOnEmpty = 147;
1050
+ static readonly RULE_jsonOnError = 148;
1051
+ static readonly RULE_selectSpec = 149;
1052
+ static readonly RULE_selectElements = 150;
1053
+ static readonly RULE_selectElement = 151;
1054
+ static readonly RULE_tableAllColumns = 152;
1055
+ static readonly RULE_pureAllColumns = 153;
1056
+ static readonly RULE_selectLiteralColumnName = 154;
1057
+ static readonly RULE_selectExpressionColumnName = 155;
1058
+ static readonly RULE_intoClause = 156;
1059
+ static readonly RULE_selectFieldsInto = 157;
1060
+ static readonly RULE_selectLinesInto = 158;
1061
+ static readonly RULE_fromClause = 159;
1062
+ static readonly RULE_groupByClause = 160;
1063
+ static readonly RULE_havingClause = 161;
1064
+ static readonly RULE_windowClause = 162;
1065
+ static readonly RULE_groupByItem = 163;
1066
+ static readonly RULE_limitClause = 164;
1067
+ static readonly RULE_limitClauseAtom = 165;
1068
+ static readonly RULE_startTransaction = 166;
1069
+ static readonly RULE_beginWork = 167;
1070
+ static readonly RULE_commitWork = 168;
1071
+ static readonly RULE_rollbackWork = 169;
1072
+ static readonly RULE_savePointStatement = 170;
1073
+ static readonly RULE_rollbackStatement = 171;
1074
+ static readonly RULE_releaseStatement = 172;
1075
+ static readonly RULE_lockTables = 173;
1076
+ static readonly RULE_unlockTables = 174;
1077
+ static readonly RULE_setAutocommitStatement = 175;
1078
+ static readonly RULE_setTransactionStatement = 176;
1079
+ static readonly RULE_transactionMode = 177;
1080
+ static readonly RULE_lockTableElement = 178;
1081
+ static readonly RULE_lockAction = 179;
1082
+ static readonly RULE_transactionOption = 180;
1083
+ static readonly RULE_transactionLevel = 181;
1084
+ static readonly RULE_changeMaster = 182;
1085
+ static readonly RULE_changeReplicationFilter = 183;
1086
+ static readonly RULE_changeReplicationSource = 184;
1087
+ static readonly RULE_purgeBinaryLogs = 185;
1088
+ static readonly RULE_startSlaveOrReplica = 186;
1089
+ static readonly RULE_stopSlaveOrReplica = 187;
1090
+ static readonly RULE_startGroupReplication = 188;
1091
+ static readonly RULE_stopGroupReplication = 189;
1092
+ static readonly RULE_masterOption = 190;
1093
+ static readonly RULE_stringMasterOption = 191;
1094
+ static readonly RULE_decimalMasterOption = 192;
1095
+ static readonly RULE_boolMasterOption = 193;
1096
+ static readonly RULE_v8NewMasterOption = 194;
1097
+ static readonly RULE_replicationSourceOption = 195;
1098
+ static readonly RULE_stringSourceOption = 196;
1099
+ static readonly RULE_decimalSourceOption = 197;
1100
+ static readonly RULE_boolSourceOption = 198;
1101
+ static readonly RULE_otherSourceOption = 199;
1102
+ static readonly RULE_channelOption = 200;
1103
+ static readonly RULE_replicationFilter = 201;
1104
+ static readonly RULE_tablePair = 202;
1105
+ static readonly RULE_threadType = 203;
1106
+ static readonly RULE_untilOption = 204;
1107
+ static readonly RULE_connectionOptions = 205;
1108
+ static readonly RULE_gtuidSet = 206;
1109
+ static readonly RULE_xaStartTransaction = 207;
1110
+ static readonly RULE_xaEndTransaction = 208;
1111
+ static readonly RULE_xaPrepareStatement = 209;
1112
+ static readonly RULE_xaCommitWork = 210;
1113
+ static readonly RULE_xaRollbackWork = 211;
1114
+ static readonly RULE_xaRecoverWork = 212;
1115
+ static readonly RULE_prepareStatement = 213;
1116
+ static readonly RULE_executeStatement = 214;
1117
+ static readonly RULE_deallocatePrepare = 215;
1118
+ static readonly RULE_routineBody = 216;
1119
+ static readonly RULE_blockStatement = 217;
1120
+ static readonly RULE_caseStatement = 218;
1121
+ static readonly RULE_ifStatement = 219;
1122
+ static readonly RULE_iterateStatement = 220;
1123
+ static readonly RULE_leaveStatement = 221;
1124
+ static readonly RULE_loopStatement = 222;
1125
+ static readonly RULE_repeatStatement = 223;
1126
+ static readonly RULE_returnStatement = 224;
1127
+ static readonly RULE_whileStatement = 225;
1128
+ static readonly RULE_cursorStatement = 226;
1129
+ static readonly RULE_declareVariable = 227;
1130
+ static readonly RULE_declareCondition = 228;
1131
+ static readonly RULE_declareCursor = 229;
1132
+ static readonly RULE_declareHandler = 230;
1133
+ static readonly RULE_handlerConditionValue = 231;
1134
+ static readonly RULE_procedureSqlStatement = 232;
1135
+ static readonly RULE_caseAlternative = 233;
1136
+ static readonly RULE_elseIfAlternative = 234;
1137
+ static readonly RULE_alterUser = 235;
1138
+ static readonly RULE_createUser = 236;
1139
+ static readonly RULE_dropUser = 237;
1140
+ static readonly RULE_grantStatement = 238;
1141
+ static readonly RULE_roleOption = 239;
1142
+ static readonly RULE_grantProxy = 240;
1143
+ static readonly RULE_alterResourceGroup = 241;
1144
+ static readonly RULE_createResourceGroup = 242;
1145
+ static readonly RULE_dropResourceGroup = 243;
1146
+ static readonly RULE_setResourceGroup = 244;
1147
+ static readonly RULE_resourceGroupVCpuSpec = 245;
1148
+ static readonly RULE_renameUser = 246;
1149
+ static readonly RULE_revokeStatement = 247;
1150
+ static readonly RULE_ignoreUnknownUser = 248;
1151
+ static readonly RULE_privilegeObjectType = 249;
1152
+ static readonly RULE_setPasswordStatement = 250;
1153
+ static readonly RULE_userSpecification = 251;
1154
+ static readonly RULE_alterUserAuthOption = 252;
1155
+ static readonly RULE_createUserAuthOption = 253;
1156
+ static readonly RULE_createUserInitialAuthOption = 254;
1157
+ static readonly RULE_userAuthOption = 255;
1158
+ static readonly RULE_authOptionClause = 256;
1159
+ static readonly RULE_authenticationRule = 257;
1160
+ static readonly RULE_tlsOption = 258;
1161
+ static readonly RULE_userResourceOption = 259;
1162
+ static readonly RULE_userPasswordOption = 260;
1163
+ static readonly RULE_userLockOption = 261;
1164
+ static readonly RULE_factorAuthOption = 262;
1165
+ static readonly RULE_registrationOption = 263;
1166
+ static readonly RULE_factor = 264;
1167
+ static readonly RULE_privilegeClause = 265;
1168
+ static readonly RULE_privilege = 266;
1169
+ static readonly RULE_privilegeLevel = 267;
1170
+ static readonly RULE_renameUserClause = 268;
1171
+ static readonly RULE_analyzeTable = 269;
1172
+ static readonly RULE_checkTable = 270;
1173
+ static readonly RULE_checksumTable = 271;
1174
+ static readonly RULE_optimizeTable = 272;
1175
+ static readonly RULE_repairTable = 273;
1176
+ static readonly RULE_tableActionOption = 274;
1177
+ static readonly RULE_checkTableOption = 275;
1178
+ static readonly RULE_installComponent = 276;
1179
+ static readonly RULE_variableExpr = 277;
1180
+ static readonly RULE_uninstallComponent = 278;
1181
+ static readonly RULE_installPlugin = 279;
1182
+ static readonly RULE_uninstallPlugin = 280;
1183
+ static readonly RULE_cloneStatement = 281;
1184
+ static readonly RULE_setStatement = 282;
1185
+ static readonly RULE_showStatement = 283;
1186
+ static readonly RULE_variableClause = 284;
1187
+ static readonly RULE_showCommonEntity = 285;
1188
+ static readonly RULE_showFilter = 286;
1189
+ static readonly RULE_showGlobalInfoClause = 287;
1190
+ static readonly RULE_showSchemaEntity = 288;
1191
+ static readonly RULE_showProfileType = 289;
1192
+ static readonly RULE_binLogStatement = 290;
1193
+ static readonly RULE_cacheIndexStatement = 291;
1194
+ static readonly RULE_flushStatement = 292;
1195
+ static readonly RULE_killStatement = 293;
1196
+ static readonly RULE_loadIndexIntoCache = 294;
1197
+ static readonly RULE_resetStatement = 295;
1198
+ static readonly RULE_resetOption = 296;
1199
+ static readonly RULE_resetPersist = 297;
1200
+ static readonly RULE_resetAllChannel = 298;
1201
+ static readonly RULE_reStartStatement = 299;
1202
+ static readonly RULE_shutdownStatement = 300;
1203
+ static readonly RULE_tableIndex = 301;
1204
+ static readonly RULE_flushOption = 302;
1205
+ static readonly RULE_flushTableOption = 303;
1206
+ static readonly RULE_loadedTableIndexes = 304;
1207
+ static readonly RULE_simpleDescribeStatement = 305;
1208
+ static readonly RULE_fullDescribeStatement = 306;
1209
+ static readonly RULE_analyzeDescribeStatement = 307;
1210
+ static readonly RULE_helpStatement = 308;
1211
+ static readonly RULE_useStatement = 309;
1212
+ static readonly RULE_signalStatement = 310;
1213
+ static readonly RULE_resignalStatement = 311;
1214
+ static readonly RULE_signalConditionInformation = 312;
1215
+ static readonly RULE_withStatement = 313;
1216
+ static readonly RULE_tableStatement = 314;
1217
+ static readonly RULE_diagnosticsStatement = 315;
1218
+ static readonly RULE_diagnosticsConditionInformationName = 316;
1219
+ static readonly RULE_describeObjectClause = 317;
1220
+ static readonly RULE_databaseNameCreate = 318;
1221
+ static readonly RULE_databaseName = 319;
1222
+ static readonly RULE_functionNameCreate = 320;
1223
+ static readonly RULE_functionName = 321;
1224
+ static readonly RULE_viewNameCreate = 322;
1225
+ static readonly RULE_viewName = 323;
1226
+ static readonly RULE_indexNameCreate = 324;
1227
+ static readonly RULE_indexNames = 325;
1228
+ static readonly RULE_indexName = 326;
1229
+ static readonly RULE_groupNameCreate = 327;
1230
+ static readonly RULE_groupName = 328;
1231
+ static readonly RULE_tableNameCreate = 329;
1232
+ static readonly RULE_tableNames = 330;
1233
+ static readonly RULE_tableName = 331;
1234
+ static readonly RULE_userOrRoleNames = 332;
1235
+ static readonly RULE_userOrRoleName = 333;
1236
+ static readonly RULE_columnNameCreate = 334;
1237
+ static readonly RULE_columnNames = 335;
1238
+ static readonly RULE_columnName = 336;
1239
+ static readonly RULE_tableSpaceNameCreate = 337;
1240
+ static readonly RULE_tableSpaceName = 338;
1241
+ static readonly RULE_partitionNameCreate = 339;
1242
+ static readonly RULE_partitionNames = 340;
1243
+ static readonly RULE_partitionName = 341;
1244
+ static readonly RULE_indexColumnName = 342;
1245
+ static readonly RULE_userHostPort = 343;
1246
+ static readonly RULE_userAtHost = 344;
1247
+ static readonly RULE_simpleUserName = 345;
1248
+ static readonly RULE_hostName = 346;
1249
+ static readonly RULE_userName = 347;
1250
+ static readonly RULE_mysqlVariable = 348;
1251
+ static readonly RULE_charsetName = 349;
1252
+ static readonly RULE_collationName = 350;
1253
+ static readonly RULE_engineName = 351;
1254
+ static readonly RULE_engineNameBase = 352;
1255
+ static readonly RULE_uuidSet = 353;
1256
+ static readonly RULE_xid = 354;
1257
+ static readonly RULE_xuidStringId = 355;
1258
+ static readonly RULE_fullId = 356;
1259
+ static readonly RULE_uidList = 357;
1260
+ static readonly RULE_uid = 358;
1261
+ static readonly RULE_simpleId = 359;
1262
+ static readonly RULE_dottedId = 360;
1263
+ static readonly RULE_decimalLiteral = 361;
1264
+ static readonly RULE_fileSizeLiteral = 362;
1265
+ static readonly RULE_stringLiteral = 363;
1266
+ static readonly RULE_booleanLiteral = 364;
1267
+ static readonly RULE_hexadecimalLiteral = 365;
1268
+ static readonly RULE_nullNotNull = 366;
1269
+ static readonly RULE_constant = 367;
1270
+ static readonly RULE_dataType = 368;
1271
+ static readonly RULE_collectionOptions = 369;
1272
+ static readonly RULE_convertedDataType = 370;
1273
+ static readonly RULE_lengthOneDimension = 371;
1274
+ static readonly RULE_lengthTwoDimension = 372;
1275
+ static readonly RULE_lengthTwoOptionalDimension = 373;
1276
+ static readonly RULE_indexColumnNames = 374;
1277
+ static readonly RULE_expressions = 375;
1278
+ static readonly RULE_valuesOrValueList = 376;
1279
+ static readonly RULE_expressionsWithDefaults = 377;
1280
+ static readonly RULE_expressionOrDefault = 378;
1281
+ static readonly RULE_constants = 379;
1282
+ static readonly RULE_simpleStrings = 380;
1283
+ static readonly RULE_userVariables = 381;
1284
+ static readonly RULE_defaultValue = 382;
1285
+ static readonly RULE_currentTimestamp = 383;
1286
+ static readonly RULE_ifExists = 384;
1287
+ static readonly RULE_ifNotExists = 385;
1288
+ static readonly RULE_orReplace = 386;
1289
+ static readonly RULE_functionCall = 387;
1290
+ static readonly RULE_specificFunction = 388;
1291
+ static readonly RULE_caseFuncAlternative = 389;
1292
+ static readonly RULE_levelsInWeightString = 390;
1293
+ static readonly RULE_levelInWeightListElement = 391;
1294
+ static readonly RULE_aggregateWindowedFunction = 392;
1295
+ static readonly RULE_nonAggregateWindowedFunction = 393;
1296
+ static readonly RULE_overClause = 394;
1297
+ static readonly RULE_windowSpec = 395;
1298
+ static readonly RULE_windowName = 396;
1299
+ static readonly RULE_frameClause = 397;
1300
+ static readonly RULE_frameUnits = 398;
1301
+ static readonly RULE_frameExtent = 399;
1302
+ static readonly RULE_frameBetween = 400;
1303
+ static readonly RULE_frameRange = 401;
1304
+ static readonly RULE_partitionClause = 402;
1305
+ static readonly RULE_scalarFunctionName = 403;
1306
+ static readonly RULE_passwordFunctionClause = 404;
1307
+ static readonly RULE_functionArgs = 405;
1308
+ static readonly RULE_functionArg = 406;
1309
+ static readonly RULE_expression = 407;
1310
+ static readonly RULE_predicate = 408;
1311
+ static readonly RULE_expressionAtom = 409;
1312
+ static readonly RULE_unaryOperator = 410;
1313
+ static readonly RULE_comparisonOperator = 411;
1314
+ static readonly RULE_comparisonBase = 412;
1315
+ static readonly RULE_logicalOperator = 413;
1316
+ static readonly RULE_bitOperator = 414;
1317
+ static readonly RULE_mathOperator = 415;
1318
+ static readonly RULE_jsonOperator = 416;
1319
+ static readonly RULE_charsetNameBase = 417;
1320
+ static readonly RULE_transactionLevelBase = 418;
1321
+ static readonly RULE_privilegesBase = 419;
1322
+ static readonly RULE_intervalTypeBase = 420;
1323
+ static readonly RULE_dataTypeBase = 421;
1324
+ static readonly RULE_keywordsCanBeId = 422;
1325
+ static readonly RULE_functionNameBase = 423;
1321
1326
  static readonly literalNames: (string | null)[];
1322
1327
  static readonly symbolicNames: (string | null)[];
1323
1328
  static readonly ruleNames: string[];
@@ -1464,6 +1469,7 @@ export declare class MySqlParser extends SQLParserBase {
1464
1469
  tableSources(): TableSourcesContext;
1465
1470
  tableSource(): TableSourceContext;
1466
1471
  tableSourceItem(): TableSourceItemContext;
1472
+ atomSubQueryTableSource(): AtomSubQueryTableSourceContext;
1467
1473
  fullColumnNames(): FullColumnNamesContext;
1468
1474
  indexHint(): IndexHintContext;
1469
1475
  indexHintType(): IndexHintTypeContext;
@@ -1481,6 +1487,10 @@ export declare class MySqlParser extends SQLParserBase {
1481
1487
  selectSpec(): SelectSpecContext;
1482
1488
  selectElements(): SelectElementsContext;
1483
1489
  selectElement(): SelectElementContext;
1490
+ tableAllColumns(): TableAllColumnsContext;
1491
+ pureAllColumns(): PureAllColumnsContext;
1492
+ selectLiteralColumnName(): SelectLiteralColumnNameContext;
1493
+ selectExpressionColumnName(): SelectExpressionColumnNameContext;
1484
1494
  intoClause(): IntoClauseContext;
1485
1495
  selectFieldsInto(): SelectFieldsIntoContext;
1486
1496
  selectLinesInto(): SelectLinesIntoContext;
@@ -5419,13 +5429,10 @@ export declare class TableSourceItemContext extends antlr.ParserRuleContext {
5419
5429
  copyFrom(ctx: TableSourceItemContext): void;
5420
5430
  }
5421
5431
  export declare class SubqueryTableItemContext extends TableSourceItemContext {
5422
- _parenthesisSubquery?: SelectStatementContext;
5423
5432
  _alias?: UidContext;
5424
5433
  constructor(ctx: TableSourceItemContext);
5434
+ atomSubQueryTableSource(): AtomSubQueryTableSourceContext;
5425
5435
  uid(): UidContext;
5426
- selectStatement(): SelectStatementContext | null;
5427
- LR_BRACKET(): antlr.TerminalNode | null;
5428
- RR_BRACKET(): antlr.TerminalNode | null;
5429
5436
  KW_LATERAL(): antlr.TerminalNode | null;
5430
5437
  KW_AS(): antlr.TerminalNode | null;
5431
5438
  fullColumnNames(): FullColumnNamesContext | null;
@@ -5460,6 +5467,17 @@ export declare class TableSourcesItemContext extends TableSourceItemContext {
5460
5467
  exitRule(listener: MySqlParserListener): void;
5461
5468
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
5462
5469
  }
5470
+ export declare class AtomSubQueryTableSourceContext extends antlr.ParserRuleContext {
5471
+ _parenthesisSubquery?: SelectStatementContext;
5472
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
5473
+ selectStatement(): SelectStatementContext;
5474
+ LR_BRACKET(): antlr.TerminalNode | null;
5475
+ RR_BRACKET(): antlr.TerminalNode | null;
5476
+ get ruleIndex(): number;
5477
+ enterRule(listener: MySqlParserListener): void;
5478
+ exitRule(listener: MySqlParserListener): void;
5479
+ accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
5480
+ }
5463
5481
  export declare class FullColumnNamesContext extends antlr.ParserRuleContext {
5464
5482
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
5465
5483
  LR_BRACKET(): antlr.TerminalNode;
@@ -5724,11 +5742,10 @@ export declare class SelectSpecContext extends antlr.ParserRuleContext {
5724
5742
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
5725
5743
  }
5726
5744
  export declare class SelectElementsContext extends antlr.ParserRuleContext {
5727
- _star?: Token | null;
5728
5745
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
5746
+ pureAllColumns(): PureAllColumnsContext | null;
5729
5747
  selectElement(): SelectElementContext[];
5730
5748
  selectElement(i: number): SelectElementContext | null;
5731
- STAR(): antlr.TerminalNode | null;
5732
5749
  COMMA(): antlr.TerminalNode[];
5733
5750
  COMMA(i: number): antlr.TerminalNode | null;
5734
5751
  get ruleIndex(): number;
@@ -5737,48 +5754,61 @@ export declare class SelectElementsContext extends antlr.ParserRuleContext {
5737
5754
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
5738
5755
  }
5739
5756
  export declare class SelectElementContext extends antlr.ParserRuleContext {
5740
- constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
5741
- get ruleIndex(): number;
5742
- copyFrom(ctx: SelectElementContext): void;
5743
- }
5744
- export declare class SelectExpressionElementContext extends SelectElementContext {
5745
5757
  _alias?: UidContext;
5746
- constructor(ctx: SelectElementContext);
5747
- expression(): ExpressionContext;
5748
- LOCAL_ID(): antlr.TerminalNode | null;
5749
- VAR_ASSIGN(): antlr.TerminalNode | null;
5758
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
5759
+ tableAllColumns(): TableAllColumnsContext | null;
5760
+ selectLiteralColumnName(): SelectLiteralColumnNameContext | null;
5750
5761
  uid(): UidContext | null;
5751
5762
  KW_AS(): antlr.TerminalNode | null;
5763
+ selectExpressionColumnName(): SelectExpressionColumnNameContext | null;
5764
+ get ruleIndex(): number;
5752
5765
  enterRule(listener: MySqlParserListener): void;
5753
5766
  exitRule(listener: MySqlParserListener): void;
5754
5767
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
5755
5768
  }
5756
- export declare class SelectFunctionElementContext extends SelectElementContext {
5757
- _alias?: UidContext;
5758
- constructor(ctx: SelectElementContext);
5759
- functionCall(): FunctionCallContext;
5760
- uid(): UidContext | null;
5761
- KW_AS(): antlr.TerminalNode | null;
5769
+ export declare class TableAllColumnsContext extends antlr.ParserRuleContext {
5770
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
5771
+ fullId(): FullIdContext;
5772
+ DOT(): antlr.TerminalNode;
5773
+ STAR(): antlr.TerminalNode;
5774
+ get ruleIndex(): number;
5762
5775
  enterRule(listener: MySqlParserListener): void;
5763
5776
  exitRule(listener: MySqlParserListener): void;
5764
5777
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
5765
5778
  }
5766
- export declare class SelectStarElementContext extends SelectElementContext {
5767
- _select_element?: FullIdContext;
5768
- constructor(ctx: SelectElementContext);
5769
- DOT(): antlr.TerminalNode;
5779
+ export declare class PureAllColumnsContext extends antlr.ParserRuleContext {
5780
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
5770
5781
  STAR(): antlr.TerminalNode;
5771
- fullId(): FullIdContext;
5782
+ get ruleIndex(): number;
5772
5783
  enterRule(listener: MySqlParserListener): void;
5773
5784
  exitRule(listener: MySqlParserListener): void;
5774
5785
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
5775
5786
  }
5776
- export declare class SelectColumnElementContext extends SelectElementContext {
5777
- _alias?: UidContext;
5778
- constructor(ctx: SelectElementContext);
5787
+ export declare class SelectLiteralColumnNameContext extends antlr.ParserRuleContext {
5788
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
5779
5789
  columnName(): ColumnNameContext;
5780
- uid(): UidContext | null;
5781
- KW_AS(): antlr.TerminalNode | null;
5790
+ get ruleIndex(): number;
5791
+ enterRule(listener: MySqlParserListener): void;
5792
+ exitRule(listener: MySqlParserListener): void;
5793
+ accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
5794
+ }
5795
+ export declare class SelectExpressionColumnNameContext extends antlr.ParserRuleContext {
5796
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
5797
+ get ruleIndex(): number;
5798
+ copyFrom(ctx: SelectExpressionColumnNameContext): void;
5799
+ }
5800
+ export declare class SelectExpressionElementContext extends SelectExpressionColumnNameContext {
5801
+ constructor(ctx: SelectExpressionColumnNameContext);
5802
+ expression(): ExpressionContext;
5803
+ LOCAL_ID(): antlr.TerminalNode | null;
5804
+ VAR_ASSIGN(): antlr.TerminalNode | null;
5805
+ enterRule(listener: MySqlParserListener): void;
5806
+ exitRule(listener: MySqlParserListener): void;
5807
+ accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
5808
+ }
5809
+ export declare class SelectFunctionElementContext extends SelectExpressionColumnNameContext {
5810
+ constructor(ctx: SelectExpressionColumnNameContext);
5811
+ functionCall(): FunctionCallContext;
5782
5812
  enterRule(listener: MySqlParserListener): void;
5783
5813
  exitRule(listener: MySqlParserListener): void;
5784
5814
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;