dt-sql-parser 4.0.2 → 4.1.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 (88) hide show
  1. package/README.md +6 -1
  2. package/dist/lib/flink/FlinkSqlLexer.js +1 -2
  3. package/dist/lib/flink/FlinkSqlParser.d.ts +175 -174
  4. package/dist/lib/flink/FlinkSqlParser.js +2315 -2388
  5. package/dist/lib/flink/FlinkSqlParserListener.d.ts +5 -16
  6. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +3 -10
  7. package/dist/lib/hive/HiveSqlLexer.js +1 -2
  8. package/dist/lib/hive/HiveSqlParser.d.ts +3 -1
  9. package/dist/lib/hive/HiveSqlParser.js +8 -9
  10. package/dist/lib/impala/ImpalaSqlLexer.js +1 -2
  11. package/dist/lib/impala/ImpalaSqlParser.d.ts +123 -107
  12. package/dist/lib/impala/ImpalaSqlParser.js +3223 -3155
  13. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +22 -0
  14. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +14 -0
  15. package/dist/lib/mysql/MySqlLexer.js +1 -2
  16. package/dist/lib/mysql/MySqlParser.d.ts +469 -422
  17. package/dist/lib/mysql/MySqlParser.js +11460 -10509
  18. package/dist/lib/mysql/MySqlParserListener.d.ts +33 -11
  19. package/dist/lib/mysql/MySqlParserVisitor.d.ts +21 -7
  20. package/dist/lib/postgresql/PostgreSqlLexer.js +1 -2
  21. package/dist/lib/postgresql/PostgreSqlParser.d.ts +2025 -6265
  22. package/dist/lib/postgresql/PostgreSqlParser.js +60092 -88368
  23. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +1688 -6083
  24. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +712 -3511
  25. package/dist/lib/spark/SparkSqlLexer.js +1 -2
  26. package/dist/lib/spark/SparkSqlParser.d.ts +16 -13
  27. package/dist/lib/spark/SparkSqlParser.js +50 -51
  28. package/dist/lib/spark/SparkSqlParserListener.d.ts +10 -10
  29. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +6 -6
  30. package/dist/lib/trino/TrinoSqlLexer.d.ts +323 -260
  31. package/dist/lib/trino/TrinoSqlLexer.js +1610 -1264
  32. package/dist/lib/trino/TrinoSqlListener.d.ts +1311 -200
  33. package/dist/lib/trino/TrinoSqlParser.d.ts +1908 -562
  34. package/dist/lib/trino/TrinoSqlParser.js +22629 -13412
  35. package/dist/lib/trino/TrinoSqlVisitor.d.ts +761 -69
  36. package/dist/locale/locale.d.ts +41 -0
  37. package/dist/locale/locale.js +43 -0
  38. package/dist/parser/common/basicSQL.d.ts +9 -4
  39. package/dist/parser/common/basicSQL.js +64 -21
  40. package/dist/parser/common/entityCollector.d.ts +60 -12
  41. package/dist/parser/common/entityCollector.js +141 -17
  42. package/dist/parser/common/parseErrorListener.d.ts +6 -3
  43. package/dist/parser/common/parseErrorListener.js +83 -2
  44. package/dist/parser/common/textAndWord.d.ts +6 -9
  45. package/dist/parser/common/textAndWord.js +9 -20
  46. package/dist/parser/common/transform.d.ts +8 -0
  47. package/dist/parser/common/transform.js +11 -0
  48. package/dist/parser/common/types.d.ts +1 -0
  49. package/dist/parser/flink/flinkEntityCollector.js +40 -6
  50. package/dist/parser/flink/flinkErrorListener.d.ts +9 -0
  51. package/dist/parser/flink/flinkErrorListener.js +67 -0
  52. package/dist/parser/flink/index.d.ts +4 -1
  53. package/dist/parser/flink/index.js +16 -12
  54. package/dist/parser/hive/hiveEntityCollector.js +40 -6
  55. package/dist/parser/hive/hiveErrorListener.d.ts +9 -0
  56. package/dist/parser/hive/hiveErrorListener.js +65 -0
  57. package/dist/parser/hive/index.d.ts +4 -1
  58. package/dist/parser/hive/index.js +16 -12
  59. package/dist/parser/impala/ImpalaErrorListener.d.ts +9 -0
  60. package/dist/parser/impala/ImpalaErrorListener.js +63 -0
  61. package/dist/parser/impala/impalaEntityCollector.js +51 -6
  62. package/dist/parser/impala/index.d.ts +4 -1
  63. package/dist/parser/impala/index.js +7 -3
  64. package/dist/parser/mysql/index.d.ts +4 -1
  65. package/dist/parser/mysql/index.js +7 -3
  66. package/dist/parser/mysql/mysqlEntityCollector.d.ts +3 -1
  67. package/dist/parser/mysql/mysqlEntityCollector.js +40 -5
  68. package/dist/parser/mysql/mysqlErrorListener.d.ts +9 -0
  69. package/dist/parser/mysql/mysqlErrorListener.js +63 -0
  70. package/dist/parser/postgresql/index.d.ts +4 -1
  71. package/dist/parser/postgresql/index.js +20 -16
  72. package/dist/parser/postgresql/postgreEntityCollector.d.ts +5 -1
  73. package/dist/parser/postgresql/postgreEntityCollector.js +44 -4
  74. package/dist/parser/postgresql/postgreErrorListener.d.ts +9 -0
  75. package/dist/parser/postgresql/postgreErrorListener.js +71 -0
  76. package/dist/parser/spark/index.d.ts +4 -1
  77. package/dist/parser/spark/index.js +7 -3
  78. package/dist/parser/spark/sparkEntityCollector.d.ts +1 -1
  79. package/dist/parser/spark/sparkEntityCollector.js +43 -6
  80. package/dist/parser/spark/sparkErrorListener.d.ts +9 -0
  81. package/dist/parser/spark/sparkErrorListener.js +63 -0
  82. package/dist/parser/trino/index.d.ts +4 -1
  83. package/dist/parser/trino/index.js +26 -13
  84. package/dist/parser/trino/trinoEntityCollector.d.ts +6 -4
  85. package/dist/parser/trino/trinoEntityCollector.js +44 -9
  86. package/dist/parser/trino/trinoErrorListener.d.ts +9 -0
  87. package/dist/parser/trino/trinoErrorListener.js +65 -0
  88. package/package.json +35 -11
@@ -916,406 +916,408 @@ export declare class MySqlParser extends SQLParserBase {
916
916
  static readonly RULE_createIndex = 14;
917
917
  static readonly RULE_createLogfileGroup = 15;
918
918
  static readonly RULE_createProcedure = 16;
919
- static readonly RULE_createRole = 17;
920
- static readonly RULE_createServer = 18;
921
- static readonly RULE_createTable = 19;
922
- static readonly RULE_createTablespaceInnodb = 20;
923
- static readonly RULE_createTablespaceNdb = 21;
924
- static readonly RULE_createTrigger = 22;
925
- static readonly RULE_withClause = 23;
926
- static readonly RULE_commonTableExpressions = 24;
927
- static readonly RULE_createView = 25;
928
- static readonly RULE_createDatabaseOption = 26;
929
- static readonly RULE_charSet = 27;
930
- static readonly RULE_currentUserExpression = 28;
931
- static readonly RULE_ownerStatement = 29;
932
- static readonly RULE_scheduleExpression = 30;
933
- static readonly RULE_timestampValue = 31;
934
- static readonly RULE_intervalExpr = 32;
935
- static readonly RULE_intervalType = 33;
936
- static readonly RULE_enableType = 34;
937
- static readonly RULE_indexType = 35;
938
- static readonly RULE_indexOption = 36;
939
- static readonly RULE_procedureParameter = 37;
940
- static readonly RULE_routineOption = 38;
941
- static readonly RULE_serverOption = 39;
942
- static readonly RULE_createDefinitions = 40;
943
- static readonly RULE_createDefinition = 41;
944
- static readonly RULE_checkConstraintDefinition = 42;
945
- static readonly RULE_constraintSymbol = 43;
946
- static readonly RULE_columnDefinition = 44;
947
- static readonly RULE_columnConstraint = 45;
948
- static readonly RULE_referenceDefinition = 46;
949
- static readonly RULE_referenceAction = 47;
950
- static readonly RULE_referenceControlType = 48;
951
- static readonly RULE_tableOption = 49;
952
- static readonly RULE_tableType = 50;
953
- static readonly RULE_tablespaceStorage = 51;
954
- static readonly RULE_partitionDefinitions = 52;
955
- static readonly RULE_partitionFunctionDefinition = 53;
956
- static readonly RULE_subpartitionFunctionDefinition = 54;
957
- static readonly RULE_partitionDefinition = 55;
958
- static readonly RULE_partitionDefinerAtom = 56;
959
- static readonly RULE_partitionDefinerVector = 57;
960
- static readonly RULE_subpartitionDefinition = 58;
961
- static readonly RULE_partitionOption = 59;
962
- static readonly RULE_alterDatabase = 60;
963
- static readonly RULE_alterEvent = 61;
964
- static readonly RULE_alterFunction = 62;
965
- static readonly RULE_alterInstance = 63;
966
- static readonly RULE_alterLogfileGroup = 64;
967
- static readonly RULE_alterProcedure = 65;
968
- static readonly RULE_alterServer = 66;
969
- static readonly RULE_alterTable = 67;
970
- static readonly RULE_alterTablespace = 68;
971
- static readonly RULE_alterView = 69;
972
- static readonly RULE_alterOption = 70;
973
- static readonly RULE_alterPartitionSpecification = 71;
974
- static readonly RULE_dropDatabase = 72;
975
- static readonly RULE_dropEvent = 73;
976
- static readonly RULE_dropIndex = 74;
977
- static readonly RULE_dropLogfileGroup = 75;
978
- static readonly RULE_dropProcedure = 76;
979
- static readonly RULE_dropFunction = 77;
980
- static readonly RULE_dropServer = 78;
981
- static readonly RULE_dropSpatial = 79;
982
- static readonly RULE_dropTable = 80;
983
- static readonly RULE_dropTablespace = 81;
984
- static readonly RULE_dropTrigger = 82;
985
- static readonly RULE_dropView = 83;
986
- static readonly RULE_dropRole = 84;
987
- static readonly RULE_setRole = 85;
988
- static readonly RULE_renameTable = 86;
989
- static readonly RULE_renameTableClause = 87;
990
- static readonly RULE_truncateTable = 88;
991
- static readonly RULE_callStatement = 89;
992
- static readonly RULE_deleteStatement = 90;
993
- static readonly RULE_doStatement = 91;
994
- static readonly RULE_handlerStatement = 92;
995
- static readonly RULE_insertStatement = 93;
996
- static readonly RULE_asRowAlias = 94;
997
- static readonly RULE_selectOrTableOrValues = 95;
998
- static readonly RULE_interSectStatement = 96;
999
- static readonly RULE_interSectQuery = 97;
1000
- static readonly RULE_loadDataStatement = 98;
1001
- static readonly RULE_loadXmlStatement = 99;
1002
- static readonly RULE_parenthesizedQuery = 100;
1003
- static readonly RULE_replaceStatement = 101;
1004
- static readonly RULE_selectStatement = 102;
1005
- static readonly RULE_setOperations = 103;
1006
- static readonly RULE_queryExpressionBody = 104;
1007
- static readonly RULE_queryItem = 105;
1008
- static readonly RULE_queryPrimary = 106;
1009
- static readonly RULE_updateStatement = 107;
1010
- static readonly RULE_valuesStatement = 108;
1011
- static readonly RULE_parenthesizedQueryExpression = 109;
1012
- static readonly RULE_queryBlock = 110;
1013
- static readonly RULE_replaceStatementValuesOrSelectOrTable = 111;
1014
- static readonly RULE_rowValuesList = 112;
1015
- static readonly RULE_setAssignmentList = 113;
1016
- static readonly RULE_updatedElement = 114;
1017
- static readonly RULE_assignmentField = 115;
1018
- static readonly RULE_lockClause = 116;
1019
- static readonly RULE_singleDeleteStatement = 117;
1020
- static readonly RULE_multipleDeleteStatement = 118;
1021
- static readonly RULE_handlerOpenStatement = 119;
1022
- static readonly RULE_handlerReadIndexStatement = 120;
1023
- static readonly RULE_handlerReadStatement = 121;
1024
- static readonly RULE_handlerCloseStatement = 122;
1025
- static readonly RULE_importTableStatement = 123;
1026
- static readonly RULE_singleUpdateStatement = 124;
1027
- static readonly RULE_multipleUpdateStatement = 125;
1028
- static readonly RULE_orderByClause = 126;
1029
- static readonly RULE_orderByExpression = 127;
1030
- static readonly RULE_tableSources = 128;
1031
- static readonly RULE_tableSource = 129;
1032
- static readonly RULE_tableSourceItem = 130;
1033
- static readonly RULE_fullColumnNames = 131;
1034
- static readonly RULE_indexHint = 132;
1035
- static readonly RULE_indexHintType = 133;
1036
- static readonly RULE_joinPart = 134;
1037
- static readonly RULE_joinSpec = 135;
1038
- static readonly RULE_queryExpression = 136;
1039
- static readonly RULE_querySpecification = 137;
1040
- static readonly RULE_unionStatement = 138;
1041
- static readonly RULE_lateralStatement = 139;
1042
- static readonly RULE_jsonTable = 140;
1043
- static readonly RULE_jsonColumnList = 141;
1044
- static readonly RULE_jsonColumn = 142;
1045
- static readonly RULE_jsonOnEmpty = 143;
1046
- static readonly RULE_jsonOnError = 144;
1047
- static readonly RULE_selectSpec = 145;
1048
- static readonly RULE_selectElements = 146;
1049
- static readonly RULE_selectElement = 147;
1050
- static readonly RULE_intoClause = 148;
1051
- static readonly RULE_selectFieldsInto = 149;
1052
- static readonly RULE_selectLinesInto = 150;
1053
- static readonly RULE_fromClause = 151;
1054
- static readonly RULE_groupByClause = 152;
1055
- static readonly RULE_havingClause = 153;
1056
- static readonly RULE_windowClause = 154;
1057
- static readonly RULE_groupByItem = 155;
1058
- static readonly RULE_limitClause = 156;
1059
- static readonly RULE_limitClauseAtom = 157;
1060
- static readonly RULE_startTransaction = 158;
1061
- static readonly RULE_beginWork = 159;
1062
- static readonly RULE_commitWork = 160;
1063
- static readonly RULE_rollbackWork = 161;
1064
- static readonly RULE_savepointStatement = 162;
1065
- static readonly RULE_rollbackStatement = 163;
1066
- static readonly RULE_releaseStatement = 164;
1067
- static readonly RULE_lockTables = 165;
1068
- static readonly RULE_unlockTables = 166;
1069
- static readonly RULE_setAutocommitStatement = 167;
1070
- static readonly RULE_setTransactionStatement = 168;
1071
- static readonly RULE_transactionMode = 169;
1072
- static readonly RULE_lockTableElement = 170;
1073
- static readonly RULE_lockAction = 171;
1074
- static readonly RULE_transactionOption = 172;
1075
- static readonly RULE_transactionLevel = 173;
1076
- static readonly RULE_changeMaster = 174;
1077
- static readonly RULE_changeReplicationFilter = 175;
1078
- static readonly RULE_changeReplicationSource = 176;
1079
- static readonly RULE_purgeBinaryLogs = 177;
1080
- static readonly RULE_startSlaveOrReplica = 178;
1081
- static readonly RULE_stopSlaveOrReplica = 179;
1082
- static readonly RULE_startGroupReplication = 180;
1083
- static readonly RULE_stopGroupReplication = 181;
1084
- static readonly RULE_masterOption = 182;
1085
- static readonly RULE_stringMasterOption = 183;
1086
- static readonly RULE_decimalMasterOption = 184;
1087
- static readonly RULE_boolMasterOption = 185;
1088
- static readonly RULE_v8NewMasterOption = 186;
1089
- static readonly RULE_replicationSourceOption = 187;
1090
- static readonly RULE_stringSourceOption = 188;
1091
- static readonly RULE_decimalSourceOption = 189;
1092
- static readonly RULE_boolSourceOption = 190;
1093
- static readonly RULE_otherSourceOption = 191;
1094
- static readonly RULE_channelOption = 192;
1095
- static readonly RULE_replicationFilter = 193;
1096
- static readonly RULE_tablePair = 194;
1097
- static readonly RULE_threadType = 195;
1098
- static readonly RULE_untilOption = 196;
1099
- static readonly RULE_connectionOptions = 197;
1100
- static readonly RULE_gtuidSet = 198;
1101
- static readonly RULE_xaStartTransaction = 199;
1102
- static readonly RULE_xaEndTransaction = 200;
1103
- static readonly RULE_xaPrepareStatement = 201;
1104
- static readonly RULE_xaCommitWork = 202;
1105
- static readonly RULE_xaRollbackWork = 203;
1106
- static readonly RULE_xaRecoverWork = 204;
1107
- static readonly RULE_prepareStatement = 205;
1108
- static readonly RULE_executeStatement = 206;
1109
- static readonly RULE_deallocatePrepare = 207;
1110
- static readonly RULE_routineBody = 208;
1111
- static readonly RULE_blockStatement = 209;
1112
- static readonly RULE_caseStatement = 210;
1113
- static readonly RULE_ifStatement = 211;
1114
- static readonly RULE_iterateStatement = 212;
1115
- static readonly RULE_leaveStatement = 213;
1116
- static readonly RULE_loopStatement = 214;
1117
- static readonly RULE_repeatStatement = 215;
1118
- static readonly RULE_returnStatement = 216;
1119
- static readonly RULE_whileStatement = 217;
1120
- static readonly RULE_cursorStatement = 218;
1121
- static readonly RULE_declareVariable = 219;
1122
- static readonly RULE_declareCondition = 220;
1123
- static readonly RULE_declareCursor = 221;
1124
- static readonly RULE_declareHandler = 222;
1125
- static readonly RULE_handlerConditionValue = 223;
1126
- static readonly RULE_procedureSqlStatement = 224;
1127
- static readonly RULE_caseAlternative = 225;
1128
- static readonly RULE_elifAlternative = 226;
1129
- static readonly RULE_alterUser = 227;
1130
- static readonly RULE_createUser = 228;
1131
- static readonly RULE_dropUser = 229;
1132
- static readonly RULE_grantStatement = 230;
1133
- static readonly RULE_roleOption = 231;
1134
- static readonly RULE_grantProxy = 232;
1135
- static readonly RULE_alterResourceGroup = 233;
1136
- static readonly RULE_createResourceGroup = 234;
1137
- static readonly RULE_dropResourceGroup = 235;
1138
- static readonly RULE_setResourceGroup = 236;
1139
- static readonly RULE_resourceGroupVcpuSpec = 237;
1140
- static readonly RULE_renameUser = 238;
1141
- static readonly RULE_revokeStatement = 239;
1142
- static readonly RULE_ignoreUnknownUser = 240;
1143
- static readonly RULE_privilegeObjectType = 241;
1144
- static readonly RULE_setPasswordStatement = 242;
1145
- static readonly RULE_userSpecification = 243;
1146
- static readonly RULE_alterUserAuthOption = 244;
1147
- static readonly RULE_createUserAuthOption = 245;
1148
- static readonly RULE_createUserInitialAuthOption = 246;
1149
- static readonly RULE_userAuthOption = 247;
1150
- static readonly RULE_authOptionClause = 248;
1151
- static readonly RULE_authenticationRule = 249;
1152
- static readonly RULE_tlsOption = 250;
1153
- static readonly RULE_userResourceOption = 251;
1154
- static readonly RULE_userPasswordOption = 252;
1155
- static readonly RULE_userLockOption = 253;
1156
- static readonly RULE_factorAuthOption = 254;
1157
- static readonly RULE_registrationOption = 255;
1158
- static readonly RULE_factor = 256;
1159
- static readonly RULE_privelegeClause = 257;
1160
- static readonly RULE_privilege = 258;
1161
- static readonly RULE_privilegeLevel = 259;
1162
- static readonly RULE_renameUserClause = 260;
1163
- static readonly RULE_analyzeTable = 261;
1164
- static readonly RULE_checkTable = 262;
1165
- static readonly RULE_checksumTable = 263;
1166
- static readonly RULE_optimizeTable = 264;
1167
- static readonly RULE_repairTable = 265;
1168
- static readonly RULE_tableActionOption = 266;
1169
- static readonly RULE_checkTableOption = 267;
1170
- static readonly RULE_createFunction = 268;
1171
- static readonly RULE_installComponent = 269;
1172
- static readonly RULE_variableExpr = 270;
1173
- static readonly RULE_uninstallComponent = 271;
1174
- static readonly RULE_installPlugin = 272;
1175
- static readonly RULE_uninstallPlugin = 273;
1176
- static readonly RULE_cloneStatement = 274;
1177
- static readonly RULE_setStatement = 275;
1178
- static readonly RULE_showStatement = 276;
1179
- static readonly RULE_variableClause = 277;
1180
- static readonly RULE_showCommonEntity = 278;
1181
- static readonly RULE_showFilter = 279;
1182
- static readonly RULE_showGlobalInfoClause = 280;
1183
- static readonly RULE_showSchemaEntity = 281;
1184
- static readonly RULE_showProfileType = 282;
1185
- static readonly RULE_binlogStatement = 283;
1186
- static readonly RULE_cacheIndexStatement = 284;
1187
- static readonly RULE_flushStatement = 285;
1188
- static readonly RULE_killStatement = 286;
1189
- static readonly RULE_loadIndexIntoCache = 287;
1190
- static readonly RULE_resetStatement = 288;
1191
- static readonly RULE_resetOption = 289;
1192
- static readonly RULE_resetPersist = 290;
1193
- static readonly RULE_resetAllChannel = 291;
1194
- static readonly RULE_reStartStatement = 292;
1195
- static readonly RULE_shutdownStatement = 293;
1196
- static readonly RULE_tableIndex = 294;
1197
- static readonly RULE_flushOption = 295;
1198
- static readonly RULE_flushTableOption = 296;
1199
- static readonly RULE_loadedTableIndexes = 297;
1200
- static readonly RULE_simpleDescribeStatement = 298;
1201
- static readonly RULE_fullDescribeStatement = 299;
1202
- static readonly RULE_analyzeDescribeStatement = 300;
1203
- static readonly RULE_helpStatement = 301;
1204
- static readonly RULE_useStatement = 302;
1205
- static readonly RULE_signalStatement = 303;
1206
- static readonly RULE_resignalStatement = 304;
1207
- static readonly RULE_signalConditionInformation = 305;
1208
- static readonly RULE_withStatement = 306;
1209
- static readonly RULE_tableStatement = 307;
1210
- static readonly RULE_diagnosticsStatement = 308;
1211
- static readonly RULE_diagnosticsConditionInformationName = 309;
1212
- static readonly RULE_describeObjectClause = 310;
1213
- static readonly RULE_databaseNameCreate = 311;
1214
- static readonly RULE_databaseName = 312;
1215
- static readonly RULE_functionNameCreate = 313;
1216
- static readonly RULE_functionName = 314;
1217
- static readonly RULE_viewNameCreate = 315;
1218
- static readonly RULE_viewName = 316;
1219
- static readonly RULE_indexNameCreate = 317;
1220
- static readonly RULE_indexNames = 318;
1221
- static readonly RULE_indexName = 319;
1222
- static readonly RULE_groupNameCreate = 320;
1223
- static readonly RULE_groupName = 321;
1224
- static readonly RULE_tableNameCreate = 322;
1225
- static readonly RULE_tableNames = 323;
1226
- static readonly RULE_tableName = 324;
1227
- static readonly RULE_userOrRoleNames = 325;
1228
- static readonly RULE_userOrRoleName = 326;
1229
- static readonly RULE_columnNameCreate = 327;
1230
- static readonly RULE_columnNames = 328;
1231
- static readonly RULE_columnName = 329;
1232
- static readonly RULE_tablespaceNameCreate = 330;
1233
- static readonly RULE_tablespaceName = 331;
1234
- static readonly RULE_partitionNameCreate = 332;
1235
- static readonly RULE_partitionNames = 333;
1236
- static readonly RULE_partitionName = 334;
1237
- static readonly RULE_indexColumnName = 335;
1238
- static readonly RULE_userHostPort = 336;
1239
- static readonly RULE_userAtHost = 337;
1240
- static readonly RULE_simpleUserName = 338;
1241
- static readonly RULE_hostName = 339;
1242
- static readonly RULE_userName = 340;
1243
- static readonly RULE_mysqlVariable = 341;
1244
- static readonly RULE_charsetName = 342;
1245
- static readonly RULE_collationName = 343;
1246
- static readonly RULE_engineName = 344;
1247
- static readonly RULE_engineNameBase = 345;
1248
- static readonly RULE_uuidSet = 346;
1249
- static readonly RULE_xid = 347;
1250
- static readonly RULE_xuidStringId = 348;
1251
- static readonly RULE_fullId = 349;
1252
- static readonly RULE_uidList = 350;
1253
- static readonly RULE_uid = 351;
1254
- static readonly RULE_simpleId = 352;
1255
- static readonly RULE_dottedId = 353;
1256
- static readonly RULE_decimalLiteral = 354;
1257
- static readonly RULE_fileSizeLiteral = 355;
1258
- static readonly RULE_stringLiteral = 356;
1259
- static readonly RULE_booleanLiteral = 357;
1260
- static readonly RULE_hexadecimalLiteral = 358;
1261
- static readonly RULE_nullNotnull = 359;
1262
- static readonly RULE_constant = 360;
1263
- static readonly RULE_dataType = 361;
1264
- static readonly RULE_collectionOptions = 362;
1265
- static readonly RULE_convertedDataType = 363;
1266
- static readonly RULE_lengthOneDimension = 364;
1267
- static readonly RULE_lengthTwoDimension = 365;
1268
- static readonly RULE_lengthTwoOptionalDimension = 366;
1269
- static readonly RULE_indexColumnNames = 367;
1270
- static readonly RULE_expressions = 368;
1271
- static readonly RULE_valuesOrValueList = 369;
1272
- static readonly RULE_expressionsWithDefaults = 370;
1273
- static readonly RULE_expressionOrDefault = 371;
1274
- static readonly RULE_constants = 372;
1275
- static readonly RULE_simpleStrings = 373;
1276
- static readonly RULE_userVariables = 374;
1277
- static readonly RULE_defaultValue = 375;
1278
- static readonly RULE_currentTimestamp = 376;
1279
- static readonly RULE_ifExists = 377;
1280
- static readonly RULE_ifNotExists = 378;
1281
- static readonly RULE_orReplace = 379;
1282
- static readonly RULE_functionCall = 380;
1283
- static readonly RULE_specificFunction = 381;
1284
- static readonly RULE_caseFuncAlternative = 382;
1285
- static readonly RULE_levelsInWeightString = 383;
1286
- static readonly RULE_levelInWeightListElement = 384;
1287
- static readonly RULE_aggregateWindowedFunction = 385;
1288
- static readonly RULE_nonAggregateWindowedFunction = 386;
1289
- static readonly RULE_overClause = 387;
1290
- static readonly RULE_windowSpec = 388;
1291
- static readonly RULE_windowName = 389;
1292
- static readonly RULE_frameClause = 390;
1293
- static readonly RULE_frameUnits = 391;
1294
- static readonly RULE_frameExtent = 392;
1295
- static readonly RULE_frameBetween = 393;
1296
- static readonly RULE_frameRange = 394;
1297
- static readonly RULE_partitionClause = 395;
1298
- static readonly RULE_scalarFunctionName = 396;
1299
- static readonly RULE_passwordFunctionClause = 397;
1300
- static readonly RULE_functionArgs = 398;
1301
- static readonly RULE_functionArg = 399;
1302
- static readonly RULE_expression = 400;
1303
- static readonly RULE_predicate = 401;
1304
- static readonly RULE_expressionAtom = 402;
1305
- static readonly RULE_unaryOperator = 403;
1306
- static readonly RULE_comparisonOperator = 404;
1307
- static readonly RULE_comparisonBase = 405;
1308
- static readonly RULE_logicalOperator = 406;
1309
- static readonly RULE_bitOperator = 407;
1310
- static readonly RULE_mathOperator = 408;
1311
- static readonly RULE_jsonOperator = 409;
1312
- static readonly RULE_charsetNameBase = 410;
1313
- static readonly RULE_transactionLevelBase = 411;
1314
- static readonly RULE_privilegesBase = 412;
1315
- static readonly RULE_intervalTypeBase = 413;
1316
- static readonly RULE_dataTypeBase = 414;
1317
- static readonly RULE_keywordsCanBeId = 415;
1318
- static readonly RULE_functionNameBase = 416;
919
+ static readonly RULE_createFunction = 17;
920
+ static readonly RULE_createFunctionLoadable = 18;
921
+ static readonly RULE_createRole = 19;
922
+ static readonly RULE_createServer = 20;
923
+ static readonly RULE_createTable = 21;
924
+ static readonly RULE_createTablespaceInnodb = 22;
925
+ static readonly RULE_createTablespaceNdb = 23;
926
+ static readonly RULE_createTrigger = 24;
927
+ static readonly RULE_withClause = 25;
928
+ static readonly RULE_commonTableExpressions = 26;
929
+ static readonly RULE_createView = 27;
930
+ static readonly RULE_createDatabaseOption = 28;
931
+ static readonly RULE_charSet = 29;
932
+ static readonly RULE_currentUserExpression = 30;
933
+ static readonly RULE_ownerStatement = 31;
934
+ static readonly RULE_scheduleExpression = 32;
935
+ static readonly RULE_timestampValue = 33;
936
+ static readonly RULE_intervalExpr = 34;
937
+ static readonly RULE_intervalType = 35;
938
+ static readonly RULE_enableType = 36;
939
+ static readonly RULE_indexType = 37;
940
+ static readonly RULE_indexOption = 38;
941
+ static readonly RULE_procedureParameter = 39;
942
+ static readonly RULE_functionParameter = 40;
943
+ static readonly RULE_routineOption = 41;
944
+ static readonly RULE_serverOption = 42;
945
+ static readonly RULE_createDefinitions = 43;
946
+ static readonly RULE_createDefinition = 44;
947
+ static readonly RULE_checkConstraintDefinition = 45;
948
+ static readonly RULE_constraintSymbol = 46;
949
+ static readonly RULE_columnDefinition = 47;
950
+ static readonly RULE_columnConstraint = 48;
951
+ static readonly RULE_referenceDefinition = 49;
952
+ static readonly RULE_referenceAction = 50;
953
+ static readonly RULE_referenceControlType = 51;
954
+ static readonly RULE_tableOption = 52;
955
+ static readonly RULE_tableType = 53;
956
+ static readonly RULE_tablespaceStorage = 54;
957
+ static readonly RULE_partitionDefinitions = 55;
958
+ static readonly RULE_partitionFunctionDefinition = 56;
959
+ static readonly RULE_subpartitionFunctionDefinition = 57;
960
+ static readonly RULE_partitionDefinition = 58;
961
+ static readonly RULE_partitionDefinerAtom = 59;
962
+ static readonly RULE_partitionDefinerVector = 60;
963
+ static readonly RULE_subpartitionDefinition = 61;
964
+ static readonly RULE_partitionOption = 62;
965
+ static readonly RULE_alterDatabase = 63;
966
+ static readonly RULE_alterEvent = 64;
967
+ static readonly RULE_alterFunction = 65;
968
+ static readonly RULE_alterInstance = 66;
969
+ static readonly RULE_alterLogfileGroup = 67;
970
+ static readonly RULE_alterProcedure = 68;
971
+ static readonly RULE_alterServer = 69;
972
+ static readonly RULE_alterTable = 70;
973
+ static readonly RULE_alterTablespace = 71;
974
+ static readonly RULE_alterView = 72;
975
+ static readonly RULE_alterOption = 73;
976
+ static readonly RULE_alterPartitionSpecification = 74;
977
+ static readonly RULE_dropDatabase = 75;
978
+ static readonly RULE_dropEvent = 76;
979
+ static readonly RULE_dropIndex = 77;
980
+ static readonly RULE_dropLogfileGroup = 78;
981
+ static readonly RULE_dropProcedure = 79;
982
+ static readonly RULE_dropFunction = 80;
983
+ static readonly RULE_dropServer = 81;
984
+ static readonly RULE_dropSpatial = 82;
985
+ static readonly RULE_dropTable = 83;
986
+ static readonly RULE_dropTablespace = 84;
987
+ static readonly RULE_dropTrigger = 85;
988
+ static readonly RULE_dropView = 86;
989
+ static readonly RULE_dropRole = 87;
990
+ static readonly RULE_setRole = 88;
991
+ static readonly RULE_renameTable = 89;
992
+ static readonly RULE_renameTableClause = 90;
993
+ static readonly RULE_truncateTable = 91;
994
+ static readonly RULE_callStatement = 92;
995
+ static readonly RULE_deleteStatement = 93;
996
+ static readonly RULE_doStatement = 94;
997
+ static readonly RULE_handlerStatement = 95;
998
+ static readonly RULE_insertStatement = 96;
999
+ static readonly RULE_asRowAlias = 97;
1000
+ static readonly RULE_selectOrTableOrValues = 98;
1001
+ static readonly RULE_interSectStatement = 99;
1002
+ static readonly RULE_interSectQuery = 100;
1003
+ static readonly RULE_loadDataStatement = 101;
1004
+ static readonly RULE_loadXmlStatement = 102;
1005
+ static readonly RULE_parenthesizedQuery = 103;
1006
+ static readonly RULE_replaceStatement = 104;
1007
+ static readonly RULE_selectStatement = 105;
1008
+ static readonly RULE_setOperations = 106;
1009
+ static readonly RULE_queryExpressionBody = 107;
1010
+ static readonly RULE_queryItem = 108;
1011
+ static readonly RULE_queryPrimary = 109;
1012
+ static readonly RULE_updateStatement = 110;
1013
+ static readonly RULE_valuesStatement = 111;
1014
+ static readonly RULE_parenthesizedQueryExpression = 112;
1015
+ static readonly RULE_queryBlock = 113;
1016
+ static readonly RULE_replaceStatementValuesOrSelectOrTable = 114;
1017
+ static readonly RULE_rowValuesList = 115;
1018
+ static readonly RULE_setAssignmentList = 116;
1019
+ static readonly RULE_updatedElement = 117;
1020
+ static readonly RULE_assignmentField = 118;
1021
+ static readonly RULE_lockClause = 119;
1022
+ static readonly RULE_singleDeleteStatement = 120;
1023
+ static readonly RULE_multipleDeleteStatement = 121;
1024
+ static readonly RULE_handlerOpenStatement = 122;
1025
+ static readonly RULE_handlerReadIndexStatement = 123;
1026
+ static readonly RULE_handlerReadStatement = 124;
1027
+ static readonly RULE_handlerCloseStatement = 125;
1028
+ static readonly RULE_importTableStatement = 126;
1029
+ static readonly RULE_singleUpdateStatement = 127;
1030
+ static readonly RULE_multipleUpdateStatement = 128;
1031
+ static readonly RULE_orderByClause = 129;
1032
+ static readonly RULE_orderByExpression = 130;
1033
+ static readonly RULE_tableSources = 131;
1034
+ static readonly RULE_tableSource = 132;
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_elifAlternative = 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_privelegeClause = 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;
1319
1321
  static readonly literalNames: (string | null)[];
1320
1322
  static readonly symbolicNames: (string | null)[];
1321
1323
  static readonly ruleNames: string[];
@@ -1343,6 +1345,8 @@ export declare class MySqlParser extends SQLParserBase {
1343
1345
  createIndex(): CreateIndexContext;
1344
1346
  createLogfileGroup(): CreateLogfileGroupContext;
1345
1347
  createProcedure(): CreateProcedureContext;
1348
+ createFunction(): CreateFunctionContext;
1349
+ createFunctionLoadable(): CreateFunctionLoadableContext;
1346
1350
  createRole(): CreateRoleContext;
1347
1351
  createServer(): CreateServerContext;
1348
1352
  createTable(): CreateTableContext;
@@ -1364,6 +1368,7 @@ export declare class MySqlParser extends SQLParserBase {
1364
1368
  indexType(): IndexTypeContext;
1365
1369
  indexOption(): IndexOptionContext;
1366
1370
  procedureParameter(): ProcedureParameterContext;
1371
+ functionParameter(): FunctionParameterContext;
1367
1372
  routineOption(): RoutineOptionContext;
1368
1373
  serverOption(): ServerOptionContext;
1369
1374
  createDefinitions(): CreateDefinitionsContext;
@@ -1596,7 +1601,6 @@ export declare class MySqlParser extends SQLParserBase {
1596
1601
  repairTable(): RepairTableContext;
1597
1602
  tableActionOption(): TableActionOptionContext;
1598
1603
  checkTableOption(): CheckTableOptionContext;
1599
- createFunction(): CreateFunctionContext;
1600
1604
  installComponent(): InstallComponentContext;
1601
1605
  variableExpr(): VariableExprContext;
1602
1606
  uninstallComponent(): UninstallComponentContext;
@@ -1812,6 +1816,7 @@ export declare class DdlStatementContext extends antlr.ParserRuleContext {
1812
1816
  createLogfileGroup(): CreateLogfileGroupContext | null;
1813
1817
  createProcedure(): CreateProcedureContext | null;
1814
1818
  createFunction(): CreateFunctionContext | null;
1819
+ createFunctionLoadable(): CreateFunctionLoadableContext | null;
1815
1820
  createServer(): CreateServerContext | null;
1816
1821
  createTable(): CreateTableContext | null;
1817
1822
  createTablespaceInnodb(): CreateTablespaceInnodbContext | null;
@@ -2133,6 +2138,51 @@ export declare class CreateProcedureContext extends antlr.ParserRuleContext {
2133
2138
  exitRule(listener: MySqlParserListener): void;
2134
2139
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
2135
2140
  }
2141
+ export declare class CreateFunctionContext extends antlr.ParserRuleContext {
2142
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2143
+ KW_CREATE(): antlr.TerminalNode;
2144
+ KW_FUNCTION(): antlr.TerminalNode;
2145
+ functionNameCreate(): FunctionNameCreateContext;
2146
+ LR_BRACKET(): antlr.TerminalNode;
2147
+ RR_BRACKET(): antlr.TerminalNode;
2148
+ KW_RETURNS(): antlr.TerminalNode;
2149
+ dataType(): DataTypeContext;
2150
+ routineBody(): RoutineBodyContext | null;
2151
+ returnStatement(): ReturnStatementContext | null;
2152
+ ownerStatement(): OwnerStatementContext | null;
2153
+ KW_AGGREGATE(): antlr.TerminalNode | null;
2154
+ ifNotExists(): IfNotExistsContext | null;
2155
+ functionParameter(): FunctionParameterContext[];
2156
+ functionParameter(i: number): FunctionParameterContext | null;
2157
+ COMMA(): antlr.TerminalNode[];
2158
+ COMMA(i: number): antlr.TerminalNode | null;
2159
+ routineOption(): RoutineOptionContext[];
2160
+ routineOption(i: number): RoutineOptionContext | null;
2161
+ get ruleIndex(): number;
2162
+ enterRule(listener: MySqlParserListener): void;
2163
+ exitRule(listener: MySqlParserListener): void;
2164
+ accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
2165
+ }
2166
+ export declare class CreateFunctionLoadableContext extends antlr.ParserRuleContext {
2167
+ _returnType?: Token | null;
2168
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2169
+ KW_CREATE(): antlr.TerminalNode;
2170
+ KW_FUNCTION(): antlr.TerminalNode;
2171
+ functionNameCreate(): FunctionNameCreateContext;
2172
+ KW_RETURNS(): antlr.TerminalNode;
2173
+ KW_SONAME(): antlr.TerminalNode;
2174
+ STRING_LITERAL(): antlr.TerminalNode;
2175
+ KW_STRING(): antlr.TerminalNode | null;
2176
+ KW_INTEGER(): antlr.TerminalNode | null;
2177
+ KW_REAL(): antlr.TerminalNode | null;
2178
+ KW_DECIMAL(): antlr.TerminalNode | null;
2179
+ KW_AGGREGATE(): antlr.TerminalNode | null;
2180
+ ifNotExists(): IfNotExistsContext | null;
2181
+ get ruleIndex(): number;
2182
+ enterRule(listener: MySqlParserListener): void;
2183
+ exitRule(listener: MySqlParserListener): void;
2184
+ accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
2185
+ }
2136
2186
  export declare class CreateRoleContext extends antlr.ParserRuleContext {
2137
2187
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2138
2188
  KW_CREATE(): antlr.TerminalNode;
@@ -2319,7 +2369,8 @@ export declare class CreateTriggerContext extends antlr.ParserRuleContext {
2319
2369
  KW_UPDATE(): antlr.TerminalNode | null;
2320
2370
  KW_DELETE(): antlr.TerminalNode | null;
2321
2371
  ownerStatement(): OwnerStatementContext | null;
2322
- ifNotExists(): IfNotExistsContext | null;
2372
+ ifNotExists(): IfNotExistsContext[];
2373
+ ifNotExists(i: number): IfNotExistsContext | null;
2323
2374
  KW_FOLLOWS(): antlr.TerminalNode | null;
2324
2375
  KW_PRECEDES(): antlr.TerminalNode | null;
2325
2376
  get ruleIndex(): number;
@@ -2585,6 +2636,16 @@ export declare class ProcedureParameterContext extends antlr.ParserRuleContext {
2585
2636
  exitRule(listener: MySqlParserListener): void;
2586
2637
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
2587
2638
  }
2639
+ export declare class FunctionParameterContext extends antlr.ParserRuleContext {
2640
+ _paramName?: UidContext;
2641
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2642
+ dataType(): DataTypeContext;
2643
+ uid(): UidContext;
2644
+ get ruleIndex(): number;
2645
+ enterRule(listener: MySqlParserListener): void;
2646
+ exitRule(listener: MySqlParserListener): void;
2647
+ accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
2648
+ }
2588
2649
  export declare class RoutineOptionContext extends antlr.ParserRuleContext {
2589
2650
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2590
2651
  get ruleIndex(): number;
@@ -2607,6 +2668,7 @@ export declare class RoutineLanguageContext extends RoutineOptionContext {
2607
2668
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
2608
2669
  }
2609
2670
  export declare class RoutineCommentContext extends RoutineOptionContext {
2671
+ _comment?: Token | null;
2610
2672
  constructor(ctx: RoutineOptionContext);
2611
2673
  KW_COMMENT(): antlr.TerminalNode;
2612
2674
  STRING_LITERAL(): antlr.TerminalNode;
@@ -2719,6 +2781,7 @@ export declare class ConstraintSymbolContext extends antlr.ParserRuleContext {
2719
2781
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
2720
2782
  }
2721
2783
  export declare class ColumnDefinitionContext extends antlr.ParserRuleContext {
2784
+ _colType?: DataTypeContext;
2722
2785
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2723
2786
  dataType(): DataTypeContext;
2724
2787
  columnConstraint(): ColumnConstraintContext[];
@@ -2762,6 +2825,7 @@ export declare class AutoIncrementColumnConstraintContext extends ColumnConstrai
2762
2825
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
2763
2826
  }
2764
2827
  export declare class CommentColumnConstraintContext extends ColumnConstraintContext {
2828
+ _comment?: Token | null;
2765
2829
  constructor(ctx: ColumnConstraintContext);
2766
2830
  KW_COMMENT(): antlr.TerminalNode;
2767
2831
  STRING_LITERAL(): antlr.TerminalNode;
@@ -3183,6 +3247,7 @@ export declare class TableOptionSecondaryEngineAttributeContext extends TableOpt
3183
3247
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
3184
3248
  }
3185
3249
  export declare class TableOptionCommentContext extends TableOptionContext {
3250
+ _comment?: Token | null;
3186
3251
  constructor(ctx: TableOptionContext);
3187
3252
  KW_COMMENT(): antlr.TerminalNode;
3188
3253
  STRING_LITERAL(): antlr.TerminalNode;
@@ -5528,6 +5593,7 @@ export declare class QuerySpecificationContext extends antlr.ParserRuleContext {
5528
5593
  windowClause(): WindowClauseContext | null;
5529
5594
  orderByClause(): OrderByClauseContext | null;
5530
5595
  limitClause(): LimitClauseContext | null;
5596
+ unionStatement(): UnionStatementContext | null;
5531
5597
  get ruleIndex(): number;
5532
5598
  enterRule(listener: MySqlParserListener): void;
5533
5599
  exitRule(listener: MySqlParserListener): void;
@@ -8067,26 +8133,6 @@ export declare class CheckTableOptionContext extends antlr.ParserRuleContext {
8067
8133
  exitRule(listener: MySqlParserListener): void;
8068
8134
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
8069
8135
  }
8070
- export declare class CreateFunctionContext extends antlr.ParserRuleContext {
8071
- _returnType?: Token | null;
8072
- constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
8073
- KW_CREATE(): antlr.TerminalNode;
8074
- KW_FUNCTION(): antlr.TerminalNode;
8075
- functionNameCreate(): FunctionNameCreateContext;
8076
- KW_RETURNS(): antlr.TerminalNode;
8077
- KW_SONAME(): antlr.TerminalNode;
8078
- STRING_LITERAL(): antlr.TerminalNode;
8079
- KW_STRING(): antlr.TerminalNode | null;
8080
- KW_INTEGER(): antlr.TerminalNode | null;
8081
- KW_REAL(): antlr.TerminalNode | null;
8082
- KW_DECIMAL(): antlr.TerminalNode | null;
8083
- KW_AGGREGATE(): antlr.TerminalNode | null;
8084
- ifNotExists(): IfNotExistsContext | null;
8085
- get ruleIndex(): number;
8086
- enterRule(listener: MySqlParserListener): void;
8087
- exitRule(listener: MySqlParserListener): void;
8088
- accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
8089
- }
8090
8136
  export declare class InstallComponentContext extends antlr.ParserRuleContext {
8091
8137
  _component_name?: UidContext;
8092
8138
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
@@ -11383,6 +11429,7 @@ export declare class KeywordsCanBeIdContext extends antlr.ParserRuleContext {
11383
11429
  KW_RESOURCE_GROUP_USER(): antlr.TerminalNode | null;
11384
11430
  KW_RESUME(): antlr.TerminalNode | null;
11385
11431
  KW_RETURNED_SQLSTATE(): antlr.TerminalNode | null;
11432
+ KW_RETURNING(): antlr.TerminalNode | null;
11386
11433
  KW_RETURNS(): antlr.TerminalNode | null;
11387
11434
  KW_REUSE(): antlr.TerminalNode | null;
11388
11435
  KW_ROLE(): antlr.TerminalNode | null;