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.
- package/README.md +140 -3
- package/dist/lib/flink/FlinkSqlParser.d.ts +221 -114
- package/dist/lib/flink/FlinkSqlParser.js +3608 -2907
- package/dist/lib/flink/FlinkSqlParserListener.d.ts +99 -0
- package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +63 -0
- package/dist/lib/hive/HiveSqlParser.d.ts +169 -116
- package/dist/lib/hive/HiveSqlParser.js +5708 -5428
- package/dist/lib/hive/HiveSqlParserListener.d.ts +55 -0
- package/dist/lib/hive/HiveSqlParserVisitor.d.ts +35 -0
- package/dist/lib/impala/ImpalaSqlParser.d.ts +150 -81
- package/dist/lib/impala/ImpalaSqlParser.js +3730 -3323
- package/dist/lib/impala/ImpalaSqlParserListener.d.ts +76 -14
- package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +48 -8
- package/dist/lib/mysql/MySqlParser.d.ts +346 -316
- package/dist/lib/mysql/MySqlParser.js +10224 -10020
- package/dist/lib/mysql/MySqlParserListener.d.ts +55 -26
- package/dist/lib/mysql/MySqlParserVisitor.d.ts +33 -14
- package/dist/lib/postgresql/PostgreSqlParser.d.ts +215 -169
- package/dist/lib/postgresql/PostgreSqlParser.js +10333 -10051
- package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +51 -7
- package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +32 -4
- package/dist/lib/spark/SparkSqlParser.d.ts +215 -90
- package/dist/lib/spark/SparkSqlParser.js +5143 -4496
- package/dist/lib/spark/SparkSqlParserListener.d.ts +147 -5
- package/dist/lib/spark/SparkSqlParserVisitor.d.ts +92 -3
- package/dist/lib/trino/TrinoSqlListener.d.ts +90 -37
- package/dist/lib/trino/TrinoSqlParser.d.ts +219 -165
- package/dist/lib/trino/TrinoSqlParser.js +4942 -4615
- package/dist/lib/trino/TrinoSqlVisitor.d.ts +55 -21
- package/dist/parser/common/basicSQL.js +2 -0
- package/dist/parser/common/entityCollector.d.ts +91 -4
- package/dist/parser/common/entityCollector.js +215 -11
- package/dist/parser/common/textAndWord.d.ts +9 -1
- package/dist/parser/common/textAndWord.js +2 -0
- package/dist/parser/common/types.d.ts +2 -0
- package/dist/parser/common/types.js +2 -0
- package/dist/parser/flink/flinkEntityCollector.d.ts +10 -2
- package/dist/parser/flink/flinkEntityCollector.js +76 -14
- package/dist/parser/hive/hiveEntityCollector.d.ts +13 -1
- package/dist/parser/hive/hiveEntityCollector.js +85 -12
- package/dist/parser/impala/impalaEntityCollector.d.ts +7 -1
- package/dist/parser/impala/impalaEntityCollector.js +63 -12
- package/dist/parser/impala/index.js +2 -1
- package/dist/parser/mysql/mysqlEntityCollector.d.ts +9 -1
- package/dist/parser/mysql/mysqlEntityCollector.js +55 -12
- package/dist/parser/postgresql/postgreEntityCollector.d.ts +10 -1
- package/dist/parser/postgresql/postgreEntityCollector.js +86 -22
- package/dist/parser/spark/sparkEntityCollector.d.ts +13 -1
- package/dist/parser/spark/sparkEntityCollector.js +88 -12
- package/dist/parser/trino/index.js +2 -1
- package/dist/parser/trino/trinoEntityCollector.d.ts +7 -1
- package/dist/parser/trino/trinoEntityCollector.js +53 -12
- 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
|
|
1037
|
-
static readonly
|
|
1038
|
-
static readonly
|
|
1039
|
-
static readonly
|
|
1040
|
-
static readonly
|
|
1041
|
-
static readonly
|
|
1042
|
-
static readonly
|
|
1043
|
-
static readonly
|
|
1044
|
-
static readonly
|
|
1045
|
-
static readonly
|
|
1046
|
-
static readonly
|
|
1047
|
-
static readonly
|
|
1048
|
-
static readonly
|
|
1049
|
-
static readonly
|
|
1050
|
-
static readonly
|
|
1051
|
-
static readonly
|
|
1052
|
-
static readonly
|
|
1053
|
-
static readonly
|
|
1054
|
-
static readonly
|
|
1055
|
-
static readonly
|
|
1056
|
-
static readonly
|
|
1057
|
-
static readonly
|
|
1058
|
-
static readonly
|
|
1059
|
-
static readonly
|
|
1060
|
-
static readonly
|
|
1061
|
-
static readonly
|
|
1062
|
-
static readonly
|
|
1063
|
-
static readonly
|
|
1064
|
-
static readonly
|
|
1065
|
-
static readonly
|
|
1066
|
-
static readonly
|
|
1067
|
-
static readonly
|
|
1068
|
-
static readonly
|
|
1069
|
-
static readonly
|
|
1070
|
-
static readonly
|
|
1071
|
-
static readonly
|
|
1072
|
-
static readonly
|
|
1073
|
-
static readonly
|
|
1074
|
-
static readonly
|
|
1075
|
-
static readonly
|
|
1076
|
-
static readonly
|
|
1077
|
-
static readonly
|
|
1078
|
-
static readonly
|
|
1079
|
-
static readonly
|
|
1080
|
-
static readonly
|
|
1081
|
-
static readonly
|
|
1082
|
-
static readonly
|
|
1083
|
-
static readonly
|
|
1084
|
-
static readonly
|
|
1085
|
-
static readonly
|
|
1086
|
-
static readonly
|
|
1087
|
-
static readonly
|
|
1088
|
-
static readonly
|
|
1089
|
-
static readonly
|
|
1090
|
-
static readonly
|
|
1091
|
-
static readonly
|
|
1092
|
-
static readonly
|
|
1093
|
-
static readonly
|
|
1094
|
-
static readonly
|
|
1095
|
-
static readonly
|
|
1096
|
-
static readonly
|
|
1097
|
-
static readonly
|
|
1098
|
-
static readonly
|
|
1099
|
-
static readonly
|
|
1100
|
-
static readonly
|
|
1101
|
-
static readonly
|
|
1102
|
-
static readonly
|
|
1103
|
-
static readonly
|
|
1104
|
-
static readonly
|
|
1105
|
-
static readonly
|
|
1106
|
-
static readonly
|
|
1107
|
-
static readonly
|
|
1108
|
-
static readonly
|
|
1109
|
-
static readonly
|
|
1110
|
-
static readonly
|
|
1111
|
-
static readonly
|
|
1112
|
-
static readonly
|
|
1113
|
-
static readonly
|
|
1114
|
-
static readonly
|
|
1115
|
-
static readonly
|
|
1116
|
-
static readonly
|
|
1117
|
-
static readonly
|
|
1118
|
-
static readonly
|
|
1119
|
-
static readonly
|
|
1120
|
-
static readonly
|
|
1121
|
-
static readonly
|
|
1122
|
-
static readonly
|
|
1123
|
-
static readonly
|
|
1124
|
-
static readonly
|
|
1125
|
-
static readonly
|
|
1126
|
-
static readonly
|
|
1127
|
-
static readonly
|
|
1128
|
-
static readonly
|
|
1129
|
-
static readonly
|
|
1130
|
-
static readonly
|
|
1131
|
-
static readonly
|
|
1132
|
-
static readonly
|
|
1133
|
-
static readonly
|
|
1134
|
-
static readonly
|
|
1135
|
-
static readonly
|
|
1136
|
-
static readonly
|
|
1137
|
-
static readonly
|
|
1138
|
-
static readonly
|
|
1139
|
-
static readonly
|
|
1140
|
-
static readonly
|
|
1141
|
-
static readonly
|
|
1142
|
-
static readonly
|
|
1143
|
-
static readonly
|
|
1144
|
-
static readonly
|
|
1145
|
-
static readonly
|
|
1146
|
-
static readonly
|
|
1147
|
-
static readonly
|
|
1148
|
-
static readonly
|
|
1149
|
-
static readonly
|
|
1150
|
-
static readonly
|
|
1151
|
-
static readonly
|
|
1152
|
-
static readonly
|
|
1153
|
-
static readonly
|
|
1154
|
-
static readonly
|
|
1155
|
-
static readonly
|
|
1156
|
-
static readonly
|
|
1157
|
-
static readonly
|
|
1158
|
-
static readonly
|
|
1159
|
-
static readonly
|
|
1160
|
-
static readonly
|
|
1161
|
-
static readonly
|
|
1162
|
-
static readonly
|
|
1163
|
-
static readonly
|
|
1164
|
-
static readonly
|
|
1165
|
-
static readonly
|
|
1166
|
-
static readonly
|
|
1167
|
-
static readonly
|
|
1168
|
-
static readonly
|
|
1169
|
-
static readonly
|
|
1170
|
-
static readonly
|
|
1171
|
-
static readonly
|
|
1172
|
-
static readonly
|
|
1173
|
-
static readonly
|
|
1174
|
-
static readonly
|
|
1175
|
-
static readonly
|
|
1176
|
-
static readonly
|
|
1177
|
-
static readonly
|
|
1178
|
-
static readonly
|
|
1179
|
-
static readonly
|
|
1180
|
-
static readonly
|
|
1181
|
-
static readonly
|
|
1182
|
-
static readonly
|
|
1183
|
-
static readonly
|
|
1184
|
-
static readonly
|
|
1185
|
-
static readonly
|
|
1186
|
-
static readonly
|
|
1187
|
-
static readonly
|
|
1188
|
-
static readonly
|
|
1189
|
-
static readonly
|
|
1190
|
-
static readonly
|
|
1191
|
-
static readonly
|
|
1192
|
-
static readonly
|
|
1193
|
-
static readonly
|
|
1194
|
-
static readonly
|
|
1195
|
-
static readonly
|
|
1196
|
-
static readonly
|
|
1197
|
-
static readonly
|
|
1198
|
-
static readonly
|
|
1199
|
-
static readonly
|
|
1200
|
-
static readonly
|
|
1201
|
-
static readonly
|
|
1202
|
-
static readonly
|
|
1203
|
-
static readonly
|
|
1204
|
-
static readonly
|
|
1205
|
-
static readonly
|
|
1206
|
-
static readonly
|
|
1207
|
-
static readonly
|
|
1208
|
-
static readonly
|
|
1209
|
-
static readonly
|
|
1210
|
-
static readonly
|
|
1211
|
-
static readonly
|
|
1212
|
-
static readonly
|
|
1213
|
-
static readonly
|
|
1214
|
-
static readonly
|
|
1215
|
-
static readonly
|
|
1216
|
-
static readonly
|
|
1217
|
-
static readonly
|
|
1218
|
-
static readonly
|
|
1219
|
-
static readonly
|
|
1220
|
-
static readonly
|
|
1221
|
-
static readonly
|
|
1222
|
-
static readonly
|
|
1223
|
-
static readonly
|
|
1224
|
-
static readonly
|
|
1225
|
-
static readonly
|
|
1226
|
-
static readonly
|
|
1227
|
-
static readonly
|
|
1228
|
-
static readonly
|
|
1229
|
-
static readonly
|
|
1230
|
-
static readonly
|
|
1231
|
-
static readonly
|
|
1232
|
-
static readonly
|
|
1233
|
-
static readonly
|
|
1234
|
-
static readonly
|
|
1235
|
-
static readonly
|
|
1236
|
-
static readonly
|
|
1237
|
-
static readonly
|
|
1238
|
-
static readonly
|
|
1239
|
-
static readonly
|
|
1240
|
-
static readonly
|
|
1241
|
-
static readonly
|
|
1242
|
-
static readonly
|
|
1243
|
-
static readonly
|
|
1244
|
-
static readonly
|
|
1245
|
-
static readonly
|
|
1246
|
-
static readonly
|
|
1247
|
-
static readonly
|
|
1248
|
-
static readonly
|
|
1249
|
-
static readonly
|
|
1250
|
-
static readonly
|
|
1251
|
-
static readonly
|
|
1252
|
-
static readonly
|
|
1253
|
-
static readonly
|
|
1254
|
-
static readonly
|
|
1255
|
-
static readonly
|
|
1256
|
-
static readonly
|
|
1257
|
-
static readonly
|
|
1258
|
-
static readonly
|
|
1259
|
-
static readonly
|
|
1260
|
-
static readonly
|
|
1261
|
-
static readonly
|
|
1262
|
-
static readonly
|
|
1263
|
-
static readonly
|
|
1264
|
-
static readonly
|
|
1265
|
-
static readonly
|
|
1266
|
-
static readonly
|
|
1267
|
-
static readonly
|
|
1268
|
-
static readonly
|
|
1269
|
-
static readonly
|
|
1270
|
-
static readonly
|
|
1271
|
-
static readonly
|
|
1272
|
-
static readonly
|
|
1273
|
-
static readonly
|
|
1274
|
-
static readonly
|
|
1275
|
-
static readonly
|
|
1276
|
-
static readonly
|
|
1277
|
-
static readonly
|
|
1278
|
-
static readonly
|
|
1279
|
-
static readonly
|
|
1280
|
-
static readonly
|
|
1281
|
-
static readonly
|
|
1282
|
-
static readonly
|
|
1283
|
-
static readonly
|
|
1284
|
-
static readonly
|
|
1285
|
-
static readonly
|
|
1286
|
-
static readonly
|
|
1287
|
-
static readonly
|
|
1288
|
-
static readonly
|
|
1289
|
-
static readonly
|
|
1290
|
-
static readonly
|
|
1291
|
-
static readonly
|
|
1292
|
-
static readonly
|
|
1293
|
-
static readonly
|
|
1294
|
-
static readonly
|
|
1295
|
-
static readonly
|
|
1296
|
-
static readonly
|
|
1297
|
-
static readonly
|
|
1298
|
-
static readonly
|
|
1299
|
-
static readonly
|
|
1300
|
-
static readonly
|
|
1301
|
-
static readonly
|
|
1302
|
-
static readonly
|
|
1303
|
-
static readonly
|
|
1304
|
-
static readonly
|
|
1305
|
-
static readonly
|
|
1306
|
-
static readonly
|
|
1307
|
-
static readonly
|
|
1308
|
-
static readonly
|
|
1309
|
-
static readonly
|
|
1310
|
-
static readonly
|
|
1311
|
-
static readonly
|
|
1312
|
-
static readonly
|
|
1313
|
-
static readonly
|
|
1314
|
-
static readonly
|
|
1315
|
-
static readonly
|
|
1316
|
-
static readonly
|
|
1317
|
-
static readonly
|
|
1318
|
-
static readonly
|
|
1319
|
-
static readonly
|
|
1320
|
-
static readonly
|
|
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(
|
|
5747
|
-
|
|
5748
|
-
|
|
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
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
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
|
|
5767
|
-
|
|
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
|
-
|
|
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
|
|
5777
|
-
|
|
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
|
-
|
|
5781
|
-
|
|
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;
|