/
ruleid_string.go
executable file
·153 lines (147 loc) · 7.67 KB
/
ruleid_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
// Code generated by "stringer -type=RuleId -linecomment"; DO NOT EDIT.
package analyzer
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[applyDefaultSelectLimitId-0]
_ = x[validateOffsetAndLimitId-1]
_ = x[validateStarExpressionsId-2]
_ = x[validateCreateTableId-3]
_ = x[validateAlterTableId-4]
_ = x[validateExprSemId-5]
_ = x[resolveVariablesId-6]
_ = x[resolveNamedWindowsId-7]
_ = x[resolveSetVariablesId-8]
_ = x[resolveViewsId-9]
_ = x[liftCtesId-10]
_ = x[resolveCtesId-11]
_ = x[liftRecursiveCtesId-12]
_ = x[resolveDatabasesId-13]
_ = x[resolveTablesId-14]
_ = x[loadStoredProceduresId-15]
_ = x[validateDropTablesId-16]
_ = x[pruneDropTablesId-17]
_ = x[setTargetSchemasId-18]
_ = x[resolveCreateLikeId-19]
_ = x[parseColumnDefaultsId-20]
_ = x[resolveDropConstraintId-21]
_ = x[validateDropConstraintId-22]
_ = x[loadCheckConstraintsId-23]
_ = x[assignCatalogId-24]
_ = x[resolveAnalyzeTablesId-25]
_ = x[resolveCreateSelectId-26]
_ = x[resolveSubqueriesId-27]
_ = x[setViewTargetSchemaId-28]
_ = x[resolveUnionsId-29]
_ = x[resolveDescribeQueryId-30]
_ = x[checkUniqueTableNamesId-31]
_ = x[resolveTableFunctionsId-32]
_ = x[resolveDeclarationsId-33]
_ = x[resolveColumnDefaultsId-34]
_ = x[validateColumnDefaultsId-35]
_ = x[validateCreateTriggerId-36]
_ = x[validateCreateProcedureId-37]
_ = x[resolveCreateProcedureId-38]
_ = x[loadInfoSchemaId-39]
_ = x[validateReadOnlyDatabaseId-40]
_ = x[validateReadOnlyTransactionId-41]
_ = x[validateDatabaseSetId-42]
_ = x[validatePrivilegesId-43]
_ = x[reresolveTablesId-44]
_ = x[setInsertColumnsId-45]
_ = x[validateJoinComplexityId-46]
_ = x[applyBinlogReplicaControllerId-47]
_ = x[applyEventSchedulerId-48]
_ = x[resolveUsingJoinsId-49]
_ = x[resolveOrderbyLiteralsId-50]
_ = x[resolveFunctionsId-51]
_ = x[flattenTableAliasesId-52]
_ = x[pushdownSortId-53]
_ = x[pushdownGroupbyAliasesId-54]
_ = x[pushdownSubqueryAliasFiltersId-55]
_ = x[qualifyColumnsId-56]
_ = x[resolveColumnsId-57]
_ = x[validateCheckConstraintId-58]
_ = x[resolveBarewordSetVariablesId-59]
_ = x[replaceCountStarId-60]
_ = x[expandStarsId-61]
_ = x[transposeRightJoinsId-62]
_ = x[resolveHavingId-63]
_ = x[mergeUnionSchemasId-64]
_ = x[flattenAggregationExprsId-65]
_ = x[reorderProjectionId-66]
_ = x[resolveSubqueryExprsId-67]
_ = x[replaceCrossJoinsId-68]
_ = x[moveJoinCondsToFilterId-69]
_ = x[moveFiltersToJoinCondId-70]
_ = x[simplifyFiltersId-71]
_ = x[pushNotFiltersId-72]
_ = x[optimizeDistinctId-73]
_ = x[hoistOutOfScopeFiltersId-74]
_ = x[unnestInSubqueriesId-75]
_ = x[unnestExistsSubqueriesId-76]
_ = x[finalizeSubqueriesId-77]
_ = x[finalizeUnionsId-78]
_ = x[loadTriggersId-79]
_ = x[loadEventsId-80]
_ = x[processTruncateId-81]
_ = x[resolveAlterColumnId-82]
_ = x[resolveGeneratorsId-83]
_ = x[removeUnnecessaryConvertsId-84]
_ = x[stripTableNameInDefaultsId-85]
_ = x[foldEmptyJoinsId-86]
_ = x[optimizeJoinsId-87]
_ = x[generateIndexScansId-88]
_ = x[matchAgainstId-89]
_ = x[pushFiltersId-90]
_ = x[applyIndexesFromOuterScopeId-91]
_ = x[pruneTablesId-92]
_ = x[fixupAuxiliaryExprsId-93]
_ = x[assignExecIndexesId-94]
_ = x[inlineSubqueryAliasRefsId-95]
_ = x[eraseProjectionId-96]
_ = x[flattenDistinctId-97]
_ = x[replaceAggId-98]
_ = x[replaceIdxSortId-99]
_ = x[insertTopNId-100]
_ = x[applyHashInId-101]
_ = x[resolveInsertRowsId-102]
_ = x[resolvePreparedInsertId-103]
_ = x[applyTriggersId-104]
_ = x[applyProceduresId-105]
_ = x[assignRoutinesId-106]
_ = x[modifyUpdateExprsForJoinId-107]
_ = x[applyRowUpdateAccumulatorsId-108]
_ = x[wrapWithRollbackId-109]
_ = x[applyFKsId-110]
_ = x[validateResolvedId-111]
_ = x[validateOrderById-112]
_ = x[validateGroupById-113]
_ = x[validateSchemaSourceId-114]
_ = x[validateIndexCreationId-115]
_ = x[validateOperandsId-116]
_ = x[validateCaseResultTypesId-117]
_ = x[validateIntervalUsageId-118]
_ = x[validateExplodeUsageId-119]
_ = x[validateSubqueryColumnsId-120]
_ = x[validateUnionSchemasMatchId-121]
_ = x[validateAggregationsId-122]
_ = x[validateDeleteFromId-123]
_ = x[cacheSubqueryResultsId-124]
_ = x[cacheSubqueryAliasesInJoinsId-125]
_ = x[backtickDefaulColumnValueNamesId-126]
_ = x[AutocommitId-127]
_ = x[TrackProcessId-128]
_ = x[parallelizeId-129]
_ = x[clearWarningsId-130]
}
const _RuleId_name = "applyDefaultSelectLimitvalidateOffsetAndLimitvalidateStarExpressionsvalidateCreateTablevalidateAlterTablevalidateExprSemresolveVariablesresolveNamedWindowsresolveSetVariablesresolveViewsliftCtesresolveCtesliftRecursiveCtesresolveDatabasesresolveTablesloadStoredProceduresvalidateDropTablespruneDropTablessetTargetSchemasresolveCreateLikeparseColumnDefaultsresolveDropConstraintvalidateDropConstraintloadCheckConstraintsassignCatalogresolveAnalyzeTablesresolveCreateSelectresolveSubqueriessetViewTargetSchemaresolveUnionsresolveDescribeQuerycheckUniqueTableNamesresolveTableFunctionsresolveDeclarationsresolveColumnDefaultsvalidateColumnDefaultsvalidateCreateTriggervalidateCreateProcedureresolveCreateProcedureloadInfoSchemavalidateReadOnlyDatabasevalidateReadOnlyTransactionvalidateDatabaseSetvalidatePrivilegesreresolveTablessetInsertColumnsvalidateJoinComplexityapplyBinlogReplicaControllerapplyEventSchedulerresolveUsingJoinsresolveOrderbyLiteralsresolveFunctionsflattenTableAliasespushdownSortpushdownGroupbyAliasespushdownSubqueryAliasFiltersqualifyColumnsresolveColumnsvalidateCheckConstraintresolveBarewordSetVariablesreplaceCountStarexpandStarstransposeRightJoinsresolveHavingmergeUnionSchemasflattenAggregationExprsreorderProjectionresolveSubqueryExprsreplaceCrossJoinsmoveJoinCondsToFiltermoveFiltersToJoinCondsimplifyFilterspushNotFiltersoptimizeDistincthoistOutOfScopeFiltersunnestInSubqueriesunnestExistsSubqueriesfinalizeSubqueriesfinalizeUnionsloadTriggersloadEventsprocessTruncateresolveAlterColumnresolveGeneratorsremoveUnnecessaryConvertsstripTableNamesFromColumnDefaultsfoldEmptyJoinsoptimizeJoinsgenerateIndexScansmatchAgainstpushFiltersapplyIndexesFromOuterScopepruneTablesfixupAuxiliaryExprsassignExecIndexesinlineSubqueryAliasRefseraseProjectionflattenDistinctreplaceAggreplaceIdxSortinsertTopNapplyHashInresolveInsertRowsresolvePreparedInsertapplyTriggersapplyProceduresassignRoutinesmodifyUpdateExprsForJoinapplyRowUpdateAccumulatorsrollback triggersapplyFKsvalidateResolvedvalidateOrderByvalidateGroupByvalidateSchemaSourcevalidateIndexCreationvalidateOperandsvalidateCaseResultTypesvalidateIntervalUsagevalidateExplodeUsagevalidateSubqueryColumnsvalidateUnionSchemasMatchvalidateAggregationsvalidateDeleteFromcacheSubqueryResultscacheSubqueryAliasesInJoinsbacktickDefaulColumnValueNamesaddAutocommitNodetrackProcessparallelizeclearWarnings"
var _RuleId_index = [...]uint16{0, 23, 45, 68, 87, 105, 120, 136, 155, 174, 186, 194, 205, 222, 238, 251, 271, 289, 304, 320, 337, 356, 377, 399, 419, 432, 452, 471, 488, 507, 520, 540, 561, 582, 601, 622, 644, 665, 688, 710, 724, 748, 775, 794, 812, 827, 843, 865, 893, 912, 929, 951, 967, 986, 998, 1020, 1048, 1062, 1076, 1099, 1126, 1142, 1153, 1172, 1185, 1202, 1225, 1242, 1262, 1279, 1300, 1321, 1336, 1350, 1366, 1388, 1406, 1428, 1446, 1460, 1472, 1482, 1497, 1515, 1532, 1557, 1590, 1604, 1617, 1635, 1647, 1658, 1684, 1695, 1714, 1731, 1754, 1769, 1784, 1794, 1808, 1818, 1829, 1846, 1867, 1880, 1895, 1909, 1933, 1959, 1976, 1984, 2000, 2015, 2030, 2050, 2071, 2087, 2110, 2131, 2151, 2174, 2199, 2219, 2237, 2257, 2284, 2314, 2331, 2343, 2354, 2367}
func (i RuleId) String() string {
if i < 0 || i >= RuleId(len(_RuleId_index)-1) {
return "RuleId(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _RuleId_name[_RuleId_index[i]:_RuleId_index[i+1]]
}