modulepackage
0.0.0-20240814195656-ed936a2b0889
Repository: https://github.com/smlxl/sqlparser.git
Documentation: pkg.go.dev
# README
sqlparser

Go package for parsing MySQL SQL queries.
Notice
The backbone of this repo is extracted from vitessio/vitess.
Inside vitessio/vitess there is a very nicely written sql parser. However as it's not a self-contained application, I created this one. It applies the same LICENSE as vitessio/vitess.
Usage
import (
"github.com/smlxl/sqlparser"
)
Then use:
sql := "SELECT * FROM table WHERE a = 'abc'"
stmt, err := sqlparser.Parse(sql)
if err != nil {
// Do something with the err
}
// Otherwise do something with stmt
switch stmt := stmt.(type) {
case *sqlparser.Select:
_ = stmt
case *sqlparser.Insert:
}
Alternative to read many queries from a io.Reader:
r := strings.NewReader("INSERT INTO table1 VALUES (1, 'a'); INSERT INTO table2 VALUES (3, 4);")
tokens := sqlparser.NewTokenizer(r)
for {
stmt, err := sqlparser.ParseNext(tokens)
if err == io.EOF {
break
}
// Do something with stmt or err.
}
See parse_test.go for more examples, or read the godoc.
Porting Instructions
You only need the below if you plan to try and keep this library up to date with vitessio/vitess.
Keeping up to date
shopt -s nullglob
VITESS=${GOPATH?}/src/vitess.io/vitess/go/
XWB1989=${GOPATH?}/src/github.com/smlxl/sqlparser/
# Create patches for everything that changed
LASTIMPORT=1b7879cb91f1dfe1a2dfa06fea96e951e3a7aec5
for path in ${VITESS?}/{vt/sqlparser,sqltypes,bytes2,hack}; do
cd ${path}
git format-patch ${LASTIMPORT?} .
done;
# Apply patches to the dependencies
cd ${XWB1989?}
git am --directory dependency -p2 ${VITESS?}/{sqltypes,bytes2,hack}/*.patch
# Apply the main patches to the repo
cd ${XWB1989?}
git am -p4 ${VITESS?}/vt/sqlparser/*.patch
# If you encounter diff failures, manually fix them with
patch -p4 < .git/rebase-apply/patch
...
git add name_of_files
git am --continue
# Cleanup
rm ${VITESS?}/{sqltypes,bytes2,hack}/*.patch ${VITESS?}/*.patch
# and Finally update the LASTIMPORT in this README.
Fresh install
TODO: Change these instructions to use git to copy the files, that'll make later patching easier.
VITESS=${GOPATH?}/src/vitess.io/vitess/go/
XWB1989=${GOPATH?}/src/github.com/smlxl/sqlparser/
cd ${XWB1989?}
# Copy all the code
cp -pr ${VITESS?}/vt/sqlparser/ .
cp -pr ${VITESS?}/sqltypes dependency
cp -pr ${VITESS?}/bytes2 dependency
cp -pr ${VITESS?}/hack dependency
# Delete some code we haven't ported
rm dependency/sqltypes/arithmetic.go dependency/sqltypes/arithmetic_test.go dependency/sqltypes/event_token.go dependency/sqltypes/event_token_test.go dependency/sqltypes/proto3.go dependency/sqltypes/proto3_test.go dependency/sqltypes/query_response.go dependency/sqltypes/result.go dependency/sqltypes/result_test.go
# Some automated fixes
# Fix imports
sed -i '.bak' 's_vitess.io/vitess/go/vt/proto/query_github.com/smlxl/sqlparser/dependency/querypb_g' *.go dependency/sqltypes/*.go
sed -i '.bak' 's_vitess.io/vitess/go/_github.com/smlxl/sqlparser/dependency/_g' *.go dependency/sqltypes/*.go
# Copy the proto, but basically drop everything we don't want
cp -pr ${VITESS?}/vt/proto/query dependency/querypb
sed -i '.bak' 's_.*Descriptor.*__g' dependency/querypb/*.go
sed -i '.bak' 's_.*ProtoMessage.*__g' dependency/querypb/*.go
sed -i '.bak' 's/proto.CompactTextString(m)/"TODO"/g' dependency/querypb/*.go
sed -i '.bak' 's/proto.EnumName/EnumName/g' dependency/querypb/*.go
sed -i '.bak' 's/proto.Equal/reflect.DeepEqual/g' dependency/sqltypes/*.go
# Remove the error library
sed -i '.bak' 's/vterrors.Errorf([^,]*, /fmt.Errorf(/g' *.go dependency/sqltypes/*.go
sed -i '.bak' 's/vterrors.New([^,]*, /errors.New(/g' *.go dependency/sqltypes/*.go
Testing
VITESS=${GOPATH?}/src/vitess.io/vitess/go/
XWB1989=${GOPATH?}/src/github.com/smlxl/sqlparser/
cd ${XWB1989?}
# Test, fix and repeat
go test ./...
# Finally make some diffs (for later reference)
diff -u ${VITESS?}/sqltypes/ ${XWB1989?}/dependency/sqltypes/ > ${XWB1989?}/patches/sqltypes.patch
diff -u ${VITESS?}/bytes2/ ${XWB1989?}/dependency/bytes2/ > ${XWB1989?}/patches/bytes2.patch
diff -u ${VITESS?}/vt/proto/query/ ${XWB1989?}/dependency/querypb/ > ${XWB1989?}/patches/querypb.patch
diff -u ${VITESS?}/vt/sqlparser/ ${XWB1989?}/ > ${XWB1989?}/patches/sqlparser.patch
# Functions
AllowScatterDirective returns true if the allow scatter override is set to true.
AndExpressions ands together two or more expressions, minimising the expr when possible.
Append appends the SQLNode to the buffer.
AppendString appends a string to the expression provided.
ASTToStatementType returns a StatementType from an AST stmt.
BuildParsedQuery builds a ParsedQuery from the input.
CachePlan takes Statement and returns true if the query plan should be cached.
CanNormalize takes Statement and returns if the statement can be normalized.
CanonicalString returns a canonical string representation of an SQLNode where all identifiers are always escaped and all SQL syntax is in uppercase.
CloneAggrFunc creates a deep clone of the input.
CloneAlterOption creates a deep clone of the input.
CloneCallable creates a deep clone of the input.
CloneColTuple creates a deep clone of the input.
CloneColumnCharset creates a deep clone of the input.
CloneColumns creates a deep clone of the input.
CloneComments creates a deep clone of the input.
CloneConstraintInfo creates a deep clone of the input.
CloneDatabaseOption creates a deep clone of the input.
CloneDBDDLStatement creates a deep clone of the input.
CloneDDLStatement creates a deep clone of the input.
CloneExplain creates a deep clone of the input.
CloneExpr creates a deep clone of the input.
CloneExprs creates a deep clone of the input.
CloneIdentifierCI creates a deep clone of the input.
CloneIdentifierCS creates a deep clone of the input.
CloneIndexHints creates a deep clone of the input.
CloneInsertRows creates a deep clone of the input.
CloneNamedWindows creates a deep clone of the input.
CloneOnDup creates a deep clone of the input.
CloneOrderBy creates a deep clone of the input.
ClonePartitions creates a deep clone of the input.
CloneRefOfAddColumns creates a deep clone of the input.
CloneRefOfAddConstraintDefinition creates a deep clone of the input.
CloneRefOfAddIndexDefinition creates a deep clone of the input.
CloneRefOfAliasedExpr creates a deep clone of the input.
CloneRefOfAliasedTableExpr creates a deep clone of the input.
CloneRefOfAlterCharset creates a deep clone of the input.
CloneRefOfAlterCheck creates a deep clone of the input.
CloneRefOfAlterColumn creates a deep clone of the input.
CloneRefOfAlterDatabase creates a deep clone of the input.
CloneRefOfAlterIndex creates a deep clone of the input.
CloneRefOfAlterMigration creates a deep clone of the input.
CloneRefOfAlterTable creates a deep clone of the input.
CloneRefOfAlterView creates a deep clone of the input.
CloneRefOfAlterVschema creates a deep clone of the input.
CloneRefOfAnalyze creates a deep clone of the input.
CloneRefOfAndExpr creates a deep clone of the input.
CloneRefOfAnyValue creates a deep clone of the input.
CloneRefOfArgument creates a deep clone of the input.
CloneRefOfArgumentLessWindowExpr creates a deep clone of the input.
CloneRefOfAssignmentExpr creates a deep clone of the input.
CloneRefOfAutoIncSpec creates a deep clone of the input.
CloneRefOfAvg creates a deep clone of the input.
CloneRefOfBegin creates a deep clone of the input.
CloneRefOfBetweenExpr creates a deep clone of the input.
CloneRefOfBinaryExpr creates a deep clone of the input.
CloneRefOfBitAnd creates a deep clone of the input.
CloneRefOfBitOr creates a deep clone of the input.
CloneRefOfBitXor creates a deep clone of the input.
CloneRefOfBool creates a deep clone of the input.
CloneRefOfCallProc creates a deep clone of the input.
CloneRefOfCaseExpr creates a deep clone of the input.
CloneRefOfCastExpr creates a deep clone of the input.
CloneRefOfChangeColumn creates a deep clone of the input.
CloneRefOfCharExpr creates a deep clone of the input.
CloneRefOfCheckConstraintDefinition creates a deep clone of the input.
CloneRefOfCollateExpr creates a deep clone of the input.
CloneRefOfColName creates a deep clone of the input.
CloneRefOfColumnCharset creates a deep clone of the input.
CloneRefOfColumnDefinition creates a deep clone of the input.
CloneRefOfColumnType creates a deep clone of the input.
CloneRefOfColumnTypeOptions creates a deep clone of the input.
CloneRefOfCommentOnly creates a deep clone of the input.
CloneRefOfCommit creates a deep clone of the input.
CloneRefOfCommonTableExpr creates a deep clone of the input.
CloneRefOfComparisonExpr creates a deep clone of the input.
CloneRefOfConstraintDefinition creates a deep clone of the input.
CloneRefOfConvertExpr creates a deep clone of the input.
CloneRefOfConvertType creates a deep clone of the input.
CloneRefOfConvertUsingExpr creates a deep clone of the input.
CloneRefOfCount creates a deep clone of the input.
CloneRefOfCountStar creates a deep clone of the input.
CloneRefOfCreateDatabase creates a deep clone of the input.
CloneRefOfCreateTable creates a deep clone of the input.
CloneRefOfCreateView creates a deep clone of the input.
CloneRefOfCurTimeFuncExpr creates a deep clone of the input.
CloneRefOfDatabaseOption creates a deep clone of the input.
CloneRefOfDeallocateStmt creates a deep clone of the input.
CloneRefOfDefault creates a deep clone of the input.
CloneRefOfDefiner creates a deep clone of the input.
CloneRefOfDelete creates a deep clone of the input.
CloneRefOfDerivedTable creates a deep clone of the input.
CloneRefOfDropColumn creates a deep clone of the input.
CloneRefOfDropDatabase creates a deep clone of the input.
CloneRefOfDropKey creates a deep clone of the input.
CloneRefOfDropTable creates a deep clone of the input.
CloneRefOfDropView creates a deep clone of the input.
CloneRefOfExecuteStmt creates a deep clone of the input.
CloneRefOfExistsExpr creates a deep clone of the input.
CloneRefOfExplainStmt creates a deep clone of the input.
CloneRefOfExplainTab creates a deep clone of the input.
CloneRefOfExtractFuncExpr creates a deep clone of the input.
CloneRefOfExtractValueExpr creates a deep clone of the input.
CloneRefOfFirstOrLastValueExpr creates a deep clone of the input.
CloneRefOfFlush creates a deep clone of the input.
CloneRefOfForce creates a deep clone of the input.
CloneRefOfForeignKeyDefinition creates a deep clone of the input.
CloneRefOfFrameClause creates a deep clone of the input.
CloneRefOfFramePoint creates a deep clone of the input.
CloneRefOfFromFirstLastClause creates a deep clone of the input.
CloneRefOfFuncExpr creates a deep clone of the input.
CloneRefOfGeoHashFromLatLongExpr creates a deep clone of the input.
CloneRefOfGeoHashFromPointExpr creates a deep clone of the input.
CloneRefOfGeoJSONFromGeomExpr creates a deep clone of the input.
CloneRefOfGeomCollPropertyFuncExpr creates a deep clone of the input.
CloneRefOfGeomFormatExpr creates a deep clone of the input.
CloneRefOfGeomFromGeoHashExpr creates a deep clone of the input.
CloneRefOfGeomFromGeoJSONExpr creates a deep clone of the input.
CloneRefOfGeomFromTextExpr creates a deep clone of the input.
CloneRefOfGeomFromWKBExpr creates a deep clone of the input.
CloneRefOfGeomPropertyFuncExpr creates a deep clone of the input.
CloneRefOfGroupBy creates a deep clone of the input.
CloneRefOfGroupConcatExpr creates a deep clone of the input.
CloneRefOfGTIDFuncExpr creates a deep clone of the input.
CloneRefOfIdentifierCI creates a deep clone of the input.
CloneRefOfIdentifierCS creates a deep clone of the input.
CloneRefOfIndexColumn creates a deep clone of the input.
CloneRefOfIndexDefinition creates a deep clone of the input.
CloneRefOfIndexHint creates a deep clone of the input.
CloneRefOfIndexInfo creates a deep clone of the input.
CloneRefOfIndexOption creates a deep clone of the input.
CloneRefOfInsert creates a deep clone of the input.
CloneRefOfInsertExpr creates a deep clone of the input.
CloneRefOfInt creates a deep clone of the input.
CloneRefOfIntervalDateExpr creates a deep clone of the input.
CloneRefOfIntervalFuncExpr creates a deep clone of the input.
CloneRefOfIntroducerExpr creates a deep clone of the input.
CloneRefOfIsExpr creates a deep clone of the input.
CloneRefOfJoinCondition creates a deep clone of the input.
CloneRefOfJoinTableExpr creates a deep clone of the input.
CloneRefOfJSONArrayExpr creates a deep clone of the input.
CloneRefOfJSONAttributesExpr creates a deep clone of the input.
CloneRefOfJSONContainsExpr creates a deep clone of the input.
CloneRefOfJSONContainsPathExpr creates a deep clone of the input.
CloneRefOfJSONExtractExpr creates a deep clone of the input.
CloneRefOfJSONKeysExpr creates a deep clone of the input.
CloneRefOfJSONObjectExpr creates a deep clone of the input.
CloneRefOfJSONObjectParam creates a deep clone of the input.
CloneRefOfJSONOverlapsExpr creates a deep clone of the input.
CloneRefOfJSONPrettyExpr creates a deep clone of the input.
CloneRefOfJSONQuoteExpr creates a deep clone of the input.
CloneRefOfJSONRemoveExpr creates a deep clone of the input.
CloneRefOfJSONSchemaValidationReportFuncExpr creates a deep clone of the input.
CloneRefOfJSONSchemaValidFuncExpr creates a deep clone of the input.
CloneRefOfJSONSearchExpr creates a deep clone of the input.
CloneRefOfJSONStorageFreeExpr creates a deep clone of the input.
CloneRefOfJSONStorageSizeExpr creates a deep clone of the input.
CloneRefOfJSONTableExpr creates a deep clone of the input.
CloneRefOfJSONUnquoteExpr creates a deep clone of the input.
CloneRefOfJSONValueExpr creates a deep clone of the input.
CloneRefOfJSONValueMergeExpr creates a deep clone of the input.
CloneRefOfJSONValueModifierExpr creates a deep clone of the input.
CloneRefOfJtColumnDefinition creates a deep clone of the input.
CloneRefOfJtNestedPathColDef creates a deep clone of the input.
CloneRefOfJtOnResponse creates a deep clone of the input.
CloneRefOfJtOrdinalColDef creates a deep clone of the input.
CloneRefOfJtPathColDef creates a deep clone of the input.
CloneRefOfKeyState creates a deep clone of the input.
CloneRefOfKill creates a deep clone of the input.
CloneRefOfLagLeadExpr creates a deep clone of the input.
CloneRefOfLimit creates a deep clone of the input.
CloneRefOfLineStringExpr creates a deep clone of the input.
CloneRefOfLinestrPropertyFuncExpr creates a deep clone of the input.
CloneRefOfLiteral creates a deep clone of the input.
CloneRefOfLoad creates a deep clone of the input.
CloneRefOfLocateExpr creates a deep clone of the input.
CloneRefOfLockingFunc creates a deep clone of the input.
CloneRefOfLockOption creates a deep clone of the input.
CloneRefOfLockTables creates a deep clone of the input.
CloneRefOfMatchExpr creates a deep clone of the input.
CloneRefOfMax creates a deep clone of the input.
CloneRefOfMemberOfExpr creates a deep clone of the input.
CloneRefOfMin creates a deep clone of the input.
CloneRefOfModifyColumn creates a deep clone of the input.
CloneRefOfMultiLinestringExpr creates a deep clone of the input.
CloneRefOfMultiPointExpr creates a deep clone of the input.
CloneRefOfMultiPolygonExpr creates a deep clone of the input.
CloneRefOfNamedWindow creates a deep clone of the input.
CloneRefOfNextval creates a deep clone of the input.
CloneRefOfNotExpr creates a deep clone of the input.
CloneRefOfNTHValueExpr creates a deep clone of the input.
CloneRefOfNtileExpr creates a deep clone of the input.
CloneRefOfNullTreatmentClause creates a deep clone of the input.
CloneRefOfNullVal creates a deep clone of the input.
CloneRefOfOffset creates a deep clone of the input.
CloneRefOfOptLike creates a deep clone of the input.
CloneRefOfOrder creates a deep clone of the input.
CloneRefOfOrderByOption creates a deep clone of the input.
CloneRefOfOrExpr creates a deep clone of the input.
CloneRefOfOtherAdmin creates a deep clone of the input.
CloneRefOfOverClause creates a deep clone of the input.
CloneRefOfParenTableExpr creates a deep clone of the input.
CloneRefOfParsedComments creates a deep clone of the input.
CloneRefOfPartitionDefinition creates a deep clone of the input.
CloneRefOfPartitionDefinitionOptions creates a deep clone of the input.
CloneRefOfPartitionEngine creates a deep clone of the input.
CloneRefOfPartitionOption creates a deep clone of the input.
CloneRefOfPartitionSpec creates a deep clone of the input.
CloneRefOfPartitionValueRange creates a deep clone of the input.
CloneRefOfPerformanceSchemaFuncExpr creates a deep clone of the input.
CloneRefOfPointExpr creates a deep clone of the input.
CloneRefOfPointPropertyFuncExpr creates a deep clone of the input.
CloneRefOfPolygonExpr creates a deep clone of the input.
CloneRefOfPolygonPropertyFuncExpr creates a deep clone of the input.
CloneRefOfPrepareStmt creates a deep clone of the input.
CloneRefOfPurgeBinaryLogs creates a deep clone of the input.
CloneRefOfReferenceDefinition creates a deep clone of the input.
CloneRefOfRegexpInstrExpr creates a deep clone of the input.
CloneRefOfRegexpLikeExpr creates a deep clone of the input.
CloneRefOfRegexpReplaceExpr creates a deep clone of the input.
CloneRefOfRegexpSubstrExpr creates a deep clone of the input.
CloneRefOfRelease creates a deep clone of the input.
CloneRefOfRenameColumn creates a deep clone of the input.
CloneRefOfRenameIndex creates a deep clone of the input.
CloneRefOfRenameTable creates a deep clone of the input.
CloneRefOfRenameTableName creates a deep clone of the input.
CloneRefOfRenameTablePair creates a deep clone of the input.
CloneRefOfRevertMigration creates a deep clone of the input.
CloneRefOfRollback creates a deep clone of the input.
CloneRefOfRootNode creates a deep clone of the input.
CloneRefOfRowAlias creates a deep clone of the input.
CloneRefOfSavepoint creates a deep clone of the input.
CloneRefOfSelect creates a deep clone of the input.
CloneRefOfSelectInto creates a deep clone of the input.
CloneRefOfSet creates a deep clone of the input.
CloneRefOfSetExpr creates a deep clone of the input.
CloneRefOfShow creates a deep clone of the input.
CloneRefOfShowBasic creates a deep clone of the input.
CloneRefOfShowCreate creates a deep clone of the input.
CloneRefOfShowFilter creates a deep clone of the input.
CloneRefOfShowMigrationLogs creates a deep clone of the input.
CloneRefOfShowOther creates a deep clone of the input.
CloneRefOfShowThrottledApps creates a deep clone of the input.
CloneRefOfShowThrottlerStatus creates a deep clone of the input.
CloneRefOfSRollback creates a deep clone of the input.
CloneRefOfStarExpr creates a deep clone of the input.
CloneRefOfStd creates a deep clone of the input.
CloneRefOfStdDev creates a deep clone of the input.
CloneRefOfStdPop creates a deep clone of the input.
CloneRefOfStdSamp creates a deep clone of the input.
CloneRefOfStream creates a deep clone of the input.
CloneRefOfSubPartition creates a deep clone of the input.
CloneRefOfSubPartitionDefinition creates a deep clone of the input.
CloneRefOfSubPartitionDefinitionOptions creates a deep clone of the input.
CloneRefOfSubquery creates a deep clone of the input.
CloneRefOfSubstrExpr creates a deep clone of the input.
CloneRefOfSum creates a deep clone of the input.
CloneRefOfTableAndLockType creates a deep clone of the input.
CloneRefOfTableName creates a deep clone of the input.
CloneRefOfTableOption creates a deep clone of the input.
CloneRefOfTablespaceOperation creates a deep clone of the input.
CloneRefOfTableSpec creates a deep clone of the input.
CloneRefOfTimestampDiffExpr creates a deep clone of the input.
CloneRefOfTrimFuncExpr creates a deep clone of the input.
CloneRefOfTruncateTable creates a deep clone of the input.
CloneRefOfUnaryExpr creates a deep clone of the input.
CloneRefOfUnion creates a deep clone of the input.
CloneRefOfUnlockTables creates a deep clone of the input.
CloneRefOfUpdate creates a deep clone of the input.
CloneRefOfUpdateExpr creates a deep clone of the input.
CloneRefOfUpdateXMLExpr creates a deep clone of the input.
CloneRefOfUse creates a deep clone of the input.
CloneRefOfValidation creates a deep clone of the input.
CloneRefOfValuesFuncExpr creates a deep clone of the input.
CloneRefOfVariable creates a deep clone of the input.
CloneRefOfVariance creates a deep clone of the input.
CloneRefOfVarPop creates a deep clone of the input.
CloneRefOfVarSamp creates a deep clone of the input.
CloneRefOfVExplainStmt creates a deep clone of the input.
CloneRefOfVindexParam creates a deep clone of the input.
CloneRefOfVindexSpec creates a deep clone of the input.
CloneRefOfVStream creates a deep clone of the input.
CloneRefOfWeightStringFuncExpr creates a deep clone of the input.
CloneRefOfWhen creates a deep clone of the input.
CloneRefOfWhere creates a deep clone of the input.
CloneRefOfWindowDefinition creates a deep clone of the input.
CloneRefOfWindowSpecification creates a deep clone of the input.
CloneRefOfWith creates a deep clone of the input.
CloneRefOfXorExpr creates a deep clone of the input.
CloneRootNode creates a deep clone of the input.
CloneSelectExpr creates a deep clone of the input.
CloneSelectExprs creates a deep clone of the input.
CloneSelectStatement creates a deep clone of the input.
CloneSetExprs creates a deep clone of the input.
CloneShowInternal creates a deep clone of the input.
CloneSimpleTableExpr creates a deep clone of the input.
CloneSliceOfAlterOption creates a deep clone of the input.
CloneSliceOfDatabaseOption creates a deep clone of the input.
CloneSliceOfExpr creates a deep clone of the input.
CloneSliceOfIdentifierCI creates a deep clone of the input.
CloneSliceOfRefOfColName creates a deep clone of the input.
CloneSliceOfRefOfColumnDefinition creates a deep clone of the input.
CloneSliceOfRefOfCommonTableExpr creates a deep clone of the input.
CloneSliceOfRefOfConstraintDefinition creates a deep clone of the input.
CloneSliceOfRefOfIndexColumn creates a deep clone of the input.
CloneSliceOfRefOfIndexDefinition creates a deep clone of the input.
CloneSliceOfRefOfIndexOption creates a deep clone of the input.
CloneSliceOfRefOfJSONObjectParam creates a deep clone of the input.
CloneSliceOfRefOfJtColumnDefinition creates a deep clone of the input.
CloneSliceOfRefOfPartitionDefinition creates a deep clone of the input.
CloneSliceOfRefOfRenameTablePair creates a deep clone of the input.
CloneSliceOfRefOfVariable creates a deep clone of the input.
CloneSliceOfRefOfWhen creates a deep clone of the input.
CloneSliceOfString creates a deep clone of the input.
CloneSliceOfTableExpr creates a deep clone of the input.
CloneSliceOfTxAccessMode creates a deep clone of the input.
CloneSliceOfVindexParam creates a deep clone of the input.
CloneSQLNode creates a deep clone of the input.
CloneStatement creates a deep clone of the input.
CloneSubPartitionDefinitions creates a deep clone of the input.
CloneTableAndLockTypes creates a deep clone of the input.
CloneTableExpr creates a deep clone of the input.
CloneTableExprs creates a deep clone of the input.
CloneTableName creates a deep clone of the input.
CloneTableNames creates a deep clone of the input.
CloneTableOptions creates a deep clone of the input.
CloneUpdateExprs creates a deep clone of the input.
CloneValTuple creates a deep clone of the input.
CloneValues creates a deep clone of the input.
CloneVindexParam creates a deep clone of the input.
CloneWindowDefinitions creates a deep clone of the input.
No description provided by the author
Consolidator returns the consolidator option.
ContainsAggregation returns true if the expression contains aggregation.
ConvertMySQLVersionToCommentVersion converts the MySQL version into comment version format.
CopyOnRewrite traverses a syntax tree recursively, starting with root, and calling pre and post for each node as described below.
EncodeValue encodes one bind variable value into the query.
ExtractINFromOR rewrites the OR expression into an IN clause.
ExtractMysqlComment extracts the version and SQL from a comment-only query such as /*!50708 sql here */.
FetchBindVar resolves the bind variable by fetching it from bindVariables.
FkChecksStateString prints the foreign key checks state.
ForeignKeyChecksState returns the state of foreign_key_checks variable if it is part of a SET_VAR optimizer hint in the comments.
FormatImpossibleQuery creates an impossible query in a TrackedBuffer.
GetAllSelects gets all the select statement s.
GetBindvars returns a map of the bind vars referenced in the statement.
GetFirstSelect gets the first select statement.
GetPriorityFromStatement gets the priority from the provided Statement, using DirectivePriority.
GetTableName returns the table name from the SimpleTableExpr only if it's a simple expression.
GetWorkloadNameFromStatement gets the workload name from the provided Statement, using workloadLabel as the name of the query directive that specifies it.
IgnoreMaxMaxMemoryRowsDirective returns true if the max memory rows override directive is set to true.
IgnoreMaxPayloadSizeDirective returns true if the max payload size override directive is set to true.
No description provided by the author
IsColName returns true if the Expr is a *ColName.
No description provided by the author
IsDML returns true if the query is an INSERT, UPDATE or DELETE statement.
IsDMLStatement returns true if the query is an INSERT, UPDATE or DELETE statement.
IsLiteral returns true if the expression is of a literal type.
IsLockingFunc returns true for all functions that are used to work with mysql advisory locks.
IsNull returns true if the Expr is SQL NULL.
IsSimpleTuple returns true if the Expr is a ValTuple that contains simple values or if it's a list arg.
IsValue returns true if the Expr is a string, integral or value arg.
KeywordString returns the string corresponding to the given keyword.
LikeToRegexp converts a like sql expression to regular expression.
No description provided by the author
MakeColumns is used to make a list of columns from a list of strings.
MultiShardAutocommitDirective returns true if multishard autocommit directive is set to true in query.
No description provided by the author
MustRewriteAST takes Statement and returns true if RewriteAST must run on it for correct execution irrespective of user flags.
No description provided by the author
NewAliasedExpr makes a new AliasedExpr.
NewAliasedTableExpr makes a new AliasedTableExpr with an alias.
NewArgument builds a new ValArg.
NewBitLiteral builds a new BitNum containing a bit literal.
NewCaseExpr makes a new CaseExpr.
NewColName makes a new ColName.
NewColNameWithQualifier makes a new ColName pointing to a specific table.
NewComparisonExpr makes a new ComparisonExpr.
NewDateLiteral builds a new Date.
No description provided by the author
NewDerivedTable makes a new DerivedTable.
NewExistsExpr makes a new ExistsExpr.
No description provided by the author
NewFloatLiteral builds a new FloatVal.
No description provided by the author
NewHexLiteral builds a new HexVal.
NewHexNumLiteral builds a new HexNum.
NewIdentifierCI makes a new IdentifierCI.
NewIdentifierCS creates a new IdentifierCS.
NewIntLiteral builds a new IntVal.
NewJoinCondition makes a new JoinCondition.
NewJoinTableExpr makes a new JoinTableExpr.
NewLimit makes a new Limit.
NewLimitWithoutOffset makes a new Limit without an offset.
NewListArg builds a new ListArg.
NewNotExpr makes a new NotExpr.
NewOffset creates an offset and returns it.
NewOrder makes a new Order.
NewParsedQuery returns a ParsedQuery of the ast.
NewReservedVars allocates a ReservedVar instance that will generate unique variable names starting with the given `prefix` and making sure that they don't conflict with the given set of `known` variables.
NewSelect is used to create a select statement.
NewSetStatement returns a Set struct.
NewSetVariable returns a variable that can be used with SET.
NewStrLiteral builds a new StrVal.
NewSubquery makes a new Subquery.
NewTableName makes a new TableName.
NewTableNameWithQualifier makes a new TableName with a qualifier.
No description provided by the author
NewTimeLiteral builds a new Date.
NewTimestampLiteral builds a new Date.
NewTrackedBuffer creates a new TrackedBuffer.
No description provided by the author
No description provided by the author
NewVariableExpression returns an expression the evaluates to a variable at runtime.
NewWhere creates a WHERE or HAVING clause out of a Expr.
Normalize changes the statement to use bind values, and updates the bind vars to those values.
ParseAndBind is a one step sweep that binds variables to an input query, in order of placeholders.
ParseNext parses a single SQL statement from the tokenizer returning a Statement which is the AST representation of the query.
ParseNextStrictDDL is the same as ParseNext except it errors on partially parsed DDL statements.
PrepareAST will normalize the query.
Preview analyzes the beginning of the query using a simpler and faster textual comparison to identify the statement type.
RemoveKeyspace removes the Qualifier.Qualifier on all ColNames and Qualifier on all TableNames in the AST.
RemoveKeyspaceInCol removes the Qualifier.Qualifier on all ColNames in the AST.
RemoveKeyspaceInTables removes the Qualifier on all TableNames in the AST.
ReplaceExpr finds the from expression from root and replaces it with to.
Rewrite traverses a syntax tree recursively, starting with root, and calling pre and post for each node as described below.
RewriteAST rewrites the whole AST, replacing function calls and adding column aliases to queries.
RewritePredicate walks the input AST and rewrites any boolean logic into a simpler form This simpler form is CNF plus logic for extracting predicates from OR, plus logic for turning ORs into IN.
SafeRewrite does not allow replacing nodes on the down walk of the tree walking Long term this is the only Rewrite functionality we want.
copyied from vitess because...
No description provided by the author
SplitAndExpression breaks up the Expr into AND-separated conditions and appends them to filters.
SplitMarginComments pulls out any leading or trailing comments from a raw sql query.
No description provided by the author
No description provided by the author
String returns a string representation of an SQLNode.
StripLeadingComments trims the SQL string and removes any leading comments.
SystemSchema returns true if the schema passed is system schema.
ToString prints the list of table expressions as a string To be used as an alternate for String for []TableExpr.
No description provided by the author
UnescapedString will return a string where no identifiers have been escaped.
UpdateSetExprsScope updates the scope of the variables in SetExprs.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Walk calls postVisit on every node.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
Constant for Enum Type - PartitionSpecAction.
Constants for Enum Type - DDL.Action.
String constants to be used in ast.
Constants for Enum Type - DDL.Action.
String constants to be used in ast.
No description provided by the author
Constants for Enum Type - DDL.Action.
String constants to be used in ast.
String constants to be used in ast.
Constants for Enum Type - DDL.Action.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Select.Distinct.
String constants to be used in ast.
Constant for Enum Type - VExplainType.
No description provided by the author
Constants for Enum Type - DDL.Action.
String constants to be used in ast.
No description provided by the author
No description provided by the author
Constant for Enum Type - PartitionSpecAction.
String constants to be used in ast.
String constants to be used in ast.
Constant for Enum Type - ExplainType.
No description provided by the author
No description provided by the author
No description provided by the author
Enum Types of linestring property functions.
PolygonPropertyType strings.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constant for Enum Type - OrderDirection.
Order.Direction.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constant for Enum Type - UnaryExprOperator.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
No description provided by the author
No description provided by the author
Enum Types of spatial format functions.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constant for Enum Type - BinaryExprOperator.
BinaryExpr.Operator.
These are the possible Valtype values.
No description provided by the author
Constant for Enum Type - BinaryExprOperator.
String constants to be used in ast.
Constant for Enum Type - BinaryExprOperator.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
Constant for Enum Type - MatchExprOption.
String constants to be used in ast.
No description provided by the author
TrimType strings.
Constants for Enum Type - TrimType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constants for Enum Type - AggregateRule.
No description provided by the author
AlterMigrationType constants.
AlterMigrationType constants.
Constants for Enum Type - AggregateRule.
These map to the SQL-defined reference actions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Enum Types of linestring property functions.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DatabaseOption.Type.
Constant for Enum Type - DatabaseOptionType.
ShowCommandType constants.
No description provided by the author
ShowCommand Types.
No description provided by the author
Constant for Enum Type - PartitionSpecAction.
DropKeyType constants.
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
No description provided by the author
AlterMigrationType constants.
No description provided by the author
No description provided by the author
Constant for Enum Type - PartitionSpecAction.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constant for Enum Type - DatabaseOptionType.
ShowCommandType constants.
No description provided by the author
String constants to be used in ast.
ShowCommandType constants.
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AlterMigrationType constants.
AlterMigrationType constants.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
KillType strings.
Constant for Enum Type - KillType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
No description provided by the author
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
ShowCommandType constants.
String constants to be used in ast.
Constants for Enum Type - DDL.Action.
ShowCommandType constants.
String constants to be used in ast.
ShowCommandType constants.
String constants to be used in ast.
ShowCommandType constants.
String constants to be used in ast.
DDL strings.
ShowCommandType constants.
String constants to be used in ast.
ShowCommandType constants.
String constants to be used in ast.
ShowCommandType constants.
Constants for Enum Type - DDL.Action.
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
ArgumentLessWindowExprType strings.
Constants for Enum Type - ArgumentLessWindowExprType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FramePointType strings.
Constants for Enum Type - FramePointType.
No description provided by the author
No description provided by the author
ShowCommandType constants.
No description provided by the author
No description provided by the author
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
These are the possible Valtype values.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DBVarName is a reserved bind var name for database().
No description provided by the author
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
No description provided by the author
These are the possible Valtype values.
No description provided by the author
DefaultAction indicates no action was explicitly specified.
ColumnFormat constants.
Constant for Enum Type - JtOnResponseType.
DefaultMatch indicates no action was explicitly specified.
ALTER TABLE ALGORITHM string.
LockOptionType constants.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - ArgumentLessWindowExprType.
JSONAttributeType strings.
Constants for Enum Type - JSONAttributeType.
No description provided by the author
Constant for Enum Type - OrderDirection.
No description provided by the author
No description provided by the author
String constants to be used in ast.
Enum Types of spatial property functions.
String constants to be used in ast.
DirectiveAllowHashJoin lets the planner use hash join if possible.
DirectiveAllowScatter lets scatter plans pass through even when they are turned off by `no-scatter`.
DirectiveConsolidator enables the query consolidator.
DirectiveIgnoreMaxMemoryRows skips memory row validation when set.
DirectiveIgnoreMaxPayloadSize skips payload size validation when set.
DirectiveMultiShardAutocommit is the query comment directive to allow single round trip autocommit with a multi-shard statement.
DirectivePriority specifies the priority of a workload.
DirectiveQueryPlanner lets the user specify per query which planner should be used.
DirectiveQueryTimeout sets a query timeout in vtgate.
DirectiveScatterErrorsAsWarnings enables partial success scatter select queries.
DirectiveSkipQueryPlanCache skips query plan cache when set.
DirectiveVExplainRunDMLQueries tells vexplain queries/all that it is okay to also run the query.
DirectiveWorkloadName specifies the name of the client application workload issuing the query.
No description provided by the author
No description provided by the author
No description provided by the author
Constant for Enum Type - PartitionSpecAction.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
No description provided by the author
Constant for Enum Type - BinaryExprOperator.
String constants to be used in ast.
No description provided by the author
No description provided by the author
DoubleAt represents @@.
No description provided by the author
Constant for Enum Type - PartitionSpecAction.
Constants for Enum Type - DDL.Action.
String constants to be used in ast.
Constants for Enum Type - DDL.Action.
String constants to be used in ast.
Constants for Enum Type - DDL.Action.
String constants to be used in ast.
Constants for Enum Type - DDL.Action.
String constants to be used in ast.
String constants to be used in ast.
Constants for Enum Type - DDL.Action.
String constants to be used in ast.
Constants for Enum Type - DDL.Action.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
ColumnFormat constants.
No description provided by the author
No description provided by the author
No description provided by the author
Explain formats.
Constant for Enum Type - ExplainType.
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constant for Enum Type - DatabaseOptionType.
No description provided by the author
Enum Types of linestring property functions.
LinestringPropertyType strings.
No description provided by the author
No description provided by the author
No description provided by the author
ShowCommandType constants.
No description provided by the author
String constants to be used in ast.
No description provided by the author
Enum Types of spatial property functions.
String constants to be used in ast.
Constants for Enum Type - ComparisonExprOperator.
ComparisonExpr.Operator.
No description provided by the author
Constant for Enum Type - JtOnResponseType.
No description provided by the author
No description provided by the author
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
Constant for Enum Type - PartitionSpecAction.
String constants to be used in ast.
No description provided by the author
No description provided by the author
LockOptionType constants.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - FramePointType.
String constants to be used in ast.
Constants for Enum Type - FramePointType.
No description provided by the author
Enum Types of linestring property functions.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FirstOrLastValueExprType strings.
Constants for Enum Type - FirstOrLastValueExprType.
No description provided by the author
ColumnFormat constants.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
These are the possible Valtype values.
No description provided by the author
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AlterMigrationType constants.
AlterMigrationType constants.
Constant for Enum Type - IndexHintType.
String constants to be used in ast.
No description provided by the author
DropKeyType constants.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
PerformanceSchemaType strings.
Constants for Enum Type - PerformanceSchemaType.
String constants to be used in ast.
Constants for Enum Type - PerformanceSchemaType.
Constants for Enum Type - Lock.
Constants for Enum Type - Lock.
Constants for Enum Type - Lock.
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
Constants for Enum Type - Lock.
Constants for Enum Type - Lock.
Constants for Enum Type - Lock.
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
FoundRowsName is a reserved bind var name for found_rows().
String constants to be used in ast.
Constants for Enum Type - FrameUnitType.
FrameUnitType strings.
Constants for Enum Type - FrameUnitType.
No description provided by the author
FromFirstLastType strings.
Constants for Enum Type - FromFirstLastType.
String constants to be used in ast.
Constants for Enum Type - FromFirstLastType.
No description provided by the author
No description provided by the author
No description provided by the author
ShowCommandType constants.
No description provided by the author
No description provided by the author
ShowCommandType constants.
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Enum Types of WKT functions.
String constants to be used in ast.
Enum Types of WKT functions.
String constants to be used in ast.
Enum Types of WKT functions.
GeomeFromWktType strings.
Enum Types of WKT functions.
GeomeFromWktType strings.
Enum Types of geom collection property functions.
String constants to be used in ast.
Enum Types of spatial property functions.
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
No description provided by the author
Constants for Enum Type - LockingFuncType.
LockingFuncType strings.
No description provided by the author
{GLOBAL | @@GLOBAL.} system_var_name.
String constants to be used in ast.
Constants for Enum Type - ComparisonExprOperator.
String constants to be used in ast.
Constants for Enum Type - ComparisonExprOperator.
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constant for Enum Type - IndexHintForType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ShowCommandType constants.
String constants to be used in ast.
GTIDType strings.
Constants for Enum Type - GTIDType.
String constants to be used in ast.
Constants for Enum Type - GTIDType.
No description provided by the author
Constant for Enum Type - PartitionByType.
Partition and subpartition type strings.
No description provided by the author
Constants for Enum Type - WhereType.
String constants to be used in ast.
No description provided by the author
String constants to be used in ast.
No description provided by the author
These are the possible Valtype values.
No description provided by the author
These are the possible Valtype values.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
String constants to be used in ast.
Constants for Enum Type - NullTreatmentType.
Constant for Enum Type - IndexHintType.
IgnoreStr string.
Constant for Enum Type - IndexHintType.
String constants to be used in ast.
No description provided by the author
Constant for Enum Type - PartitionSpecAction.
String constants to be used in ast.
No description provided by the author
No description provided by the author
ShowCommandType constants.
No description provided by the author
No description provided by the author
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constants for Enum Type - ComparisonExprOperator.
No description provided by the author
String constants to be used in ast.
No description provided by the author
No description provided by the author
Constants for Enum Type - Insert.Action.
DDL strings.
No description provided by the author
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
Constant for Enum Type - BinaryExprOperator.
String constants to be used in ast.
No description provided by the author
No description provided by the author
Enum Types of linestring property functions.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
IntervalType constants.
No description provided by the author
No description provided by the author
Constant for Enum Type - SelectIntoType.
String constants to be used in ast.
Constant for Enum Type - SelectIntoType.
Constant for Enum Type - SelectIntoType.
String constants to be used in ast.
INTO OUTFILE.
These are the possible Valtype values.
Constant for Enum Type - PartitionValueRangeType.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constants for Enum Type - AggregateRule.
Enum Types of linestring property functions.
String constants to be used in ast.
Enum Types of spatial property functions.
String constants to be used in ast.
Constant for Enum Type - IsExprOperator.
String constants to be used in ast.
Constants for Enum Type - LockingFuncType.
String constants to be used in ast.
Constant for Enum Type - IsExprOperator.
String constants to be used in ast.
Constant for Enum Type - IsExprOperator.
String constants to be used in ast.
Constant for Enum Type - IsExprOperator.
String constants to be used in ast.
Constant for Enum Type - IsExprOperator.
IsExpr.Operator.
No description provided by the author
Enum Types of spatial property functions.
GeomPropertyType strings.
Constant for Enum Type - IsExprOperator.
String constants to be used in ast.
Constants for Enum Type - LockingFuncType.
String constants to be used in ast.
No description provided by the author
Index hints For types.
Constant for Enum Type - IndexHintForType.
JoinTableExpr.Join.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
JSONValueModifierType strings.
Constants for Enum Type - JSONValueModifierType.
String constants to be used in ast.
Constants for Enum Type - JSONValueModifierType.
Constant for Enum Type - BinaryExprOperator.
String constants to be used in ast.
String constants to be used in ast.
Constants for Enum Type - JSONValueModifierType.
String constants to be used in ast.
Constants for Enum Type - JSONValueMergeType.
String constants to be used in ast.
Constants for Enum Type - JSONValueMergeType.
JSONValueMergeType strings.
Constants for Enum Type - JSONValueMergeType.
String constants to be used in ast.
Constants for Enum Type - JSONValueModifierType.
String constants to be used in ast.
Constants for Enum Type - JSONValueModifierType.
String constants to be used in ast.
Constant for Enum Type - ExplainType.
Constant for Enum Type - BinaryExprOperator.
String constants to be used in ast.
No description provided by the author
No description provided by the author
String constants to be used in ast.
No description provided by the author
ShowCommandType constants.
No description provided by the author
String constants to be used in ast.
Constant for Enum Type - PartitionByType.
String constants to be used in ast.
No description provided by the author
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
FirstOrLastValueExprType strings.
Constants for Enum Type - FirstOrLastValueExprType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LastInsertIDName is a reserved bind var name for last_insert_id().
String constants to be used in ast.
Constants for Enum Type - FirstOrLastValueExprType.
No description provided by the author
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
Enum Types of point property functions.
Enum Types of geom from geohash functions.
GeomFromGeoHash strings.
String constants to be used in ast.
No description provided by the author
AlterMigrationType constants.
AlterMigrationType constants.
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - FirstOrLastValueExprType.
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - TrimType.
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - JoinType.
Enum Types of linestring property functions.
String constants to be used in ast.
Constants for Enum Type - JSONAttributeType.
String constants to be used in ast.
No description provided by the author
Constants for Enum Type - ComparisonExprOperator.
String constants to be used in ast.
Constants for Enum Type - ComparisonExprOperator.
String constants to be used in ast.
Constant for Enum Type - PartitionValueRangeType.
Partition value range type strings.
No description provided by the author
No description provided by the author
No description provided by the author
Constants for Enum Type - ComparisonExprOperator.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Enum Types of WKT functions.
String constants to be used in ast.
Enum Types of WKT functions.
String constants to be used in ast.
No description provided by the author
No description provided by the author
Constant for Enum Type - PartitionByType.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Enum Types of point property functions.
Enum Types of geom from geohash functions.
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
LockType constants.
String constants to be used in ast.
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - TrimFuncType.
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaxPriorityValue specifies the maximum value allowed for the priority query directive.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constant for Enum Type - BinaryExprOperator.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constant for Enum Type - BinaryExprOperator.
String constants to be used in ast.
No description provided by the author
No description provided by the author
Enum Types of WKT functions.
String constants to be used in ast.
Enum Types of WKT functions.
String constants to be used in ast.
No description provided by the author
No description provided by the author
Enum Types of WKT functions.
String constants to be used in ast.
Enum Types of WKT functions.
String constants to be used in ast.
No description provided by the author
Enum Types of WKT functions.
String constants to be used in ast.
Enum Types of WKT functions.
String constants to be used in ast.
Constant for Enum Type - BinaryExprOperator.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - JoinType.
Constant for Enum Type - MatchExprOption.
String constants to be used in ast.
Constant for Enum Type - MatchExprOption.
String constants to be used in ast.
String constants to be used in ast.
Constants for Enum Type - JoinType.
String constants to be used in ast.
Constants for Enum Type - JoinType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This is used for transaction related variables like transaction_isolation, transaction_read_write and set transaction statement.
No description provided by the author
No description provided by the author
These map to the SQL-defined reference actions.
NoAt represents no @.
Constant for Enum Type - IndexHintForType.
Constants for Enum Type - Lock.
Select.Lock.
No description provided by the author
LockOptionType constants.
LockOptionType strings.
Constant for Enum Type - MatchExprOption.
MatchExpr.Option.
Constants for Enum Type - JoinType.
DropKeyType constants.
String constants to be used in ast.
TrimFuncType strings.
Constants for Enum Type - TrimFuncType.
Constants for scope of variables See https://dev.mysql.com/doc/refman/8.0/en/set-variable.html.
No description provided by the author
Constants for Enum Type - ComparisonExprOperator.
String constants to be used in ast.
Constants for Enum Type - ComparisonExprOperator.
String constants to be used in ast.
Constants for Enum Type - ComparisonExprOperator.
String constants to be used in ast.
Constants for Enum Type - ComparisonExprOperator.
String constants to be used in ast.
Constants for Enum Type - TrimType.
No description provided by the author
No description provided by the author
Constant for Enum Type - UnaryExprOperator.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constant for Enum Type - JtOnResponseType.
No description provided by the author
Constants for Enum Type - ComparisonExprOperator.
String constants to be used in ast.
No description provided by the author
No description provided by the author
Enum Types of geom collection property functions.
GeomCollPropType strings.
Enum Types of linestring property functions.
String constants to be used in ast.
Enum Types of linestring property functions.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Online DDL hint.
No description provided by the author
No description provided by the author
ShowCommandType constants.
String constants to be used in ast.
No description provided by the author
Constant for Enum Type - PartitionSpecAction.
No description provided by the author
OptimizerHintSetVar is the optimizer hint used in MySQL to set the value of a specific session variable for a query.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constant for Enum Type - IndexHintForType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - ArgumentLessWindowExprType.
No description provided by the author
No description provided by the author
{PERSIST_ONLY | @@PERSIST_ONLY.} system_var_name.
{PERSIST_ONLY | @@PERSIST_ONLY.} system_var_name.
No description provided by the author
String constants to be used in ast.
Constant for Enum Type - VExplainType.
ShowCommandType constants.
No description provided by the author
String constants to be used in ast.
Constant for Enum Type - BinaryExprOperator.
String constants to be used in ast.
No description provided by the author
Enum Types of geom from geohash functions.
String constants to be used in ast.
Enum Types of WKT functions.
String constants to be used in ast.
Enum Types of WKT functions.
String constants to be used in ast.
Enum Types of linestring property functions.
String constants to be used in ast.
No description provided by the author
Enum Types of WKT functions.
String constants to be used in ast.
Enum Types of WKT functions.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DropKeyType constants.
DropKeyType strings.
ShowCommandType constants.
No description provided by the author
No description provided by the author
String constants to be used in ast.
ShowCommandType constants.
No description provided by the author
ShowCommandType constants.
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - PerformanceSchemaType.
String constants to be used in ast.
Constants for Enum Type - PerformanceSchemaType.
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constant for Enum Type - VExplainType.
No description provided by the author
Constant for Enum Type - MatchExprOption.
String constants to be used in ast.
String constants to be used in ast.
Constant for Enum Type - KillType.
No description provided by the author
No description provided by the author
Constant for Enum Type - PartitionByType.
String constants to be used in ast.
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - ArgumentLessWindowExprType.
No description provided by the author
LockType constants.
No description provided by the author
String constants to be used in ast.
LockType constants.
String constants to be used in ast.
Transaction access mode.
String constants to be used in ast.
Lock Types.
Transaction isolation levels.
Transaction access mode.
String constants to be used in ast.
No description provided by the author
No description provided by the author
Constant for Enum Type - PartitionSpecAction.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constants for Enum Type - ComparisonExprOperator.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constants for Enum Type - LockingFuncType.
String constants to be used in ast.
Constants for Enum Type - LockingFuncType.
String constants to be used in ast.
No description provided by the author
Constant for Enum Type - PartitionSpecAction.
String constants to be used in ast.
No description provided by the author
Constants for Enum Type - DDL.Action.
String constants to be used in ast.
No description provided by the author
Constant for Enum Type - PartitionSpecAction.
Partition strings.
No description provided by the author
Constant for Enum Type - PartitionSpecAction.
String constants to be used in ast.
No description provided by the author
String constants to be used in ast.
No description provided by the author
Constants for Enum Type - Insert.Action.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
NullTreatmentType strings.
Constants for Enum Type - NullTreatmentType.
No description provided by the author
These map to the SQL-defined reference actions.
No description provided by the author
No description provided by the author
No description provided by the author
AlterMigrationType constants.
No description provided by the author
No description provided by the author
No description provided by the author
Constants for Enum Type - DDL.Action.
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - JoinType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RowCountName is a reserved bind var name for row_count().
String constants to be used in ast.
Constants for Enum Type - ArgumentLessWindowExprType.
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - TrimFuncType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
No description provided by the author
[SESSION | @@SESSION.| @@LOCAL.
Set.Scope or Show.Scope.
No description provided by the author
These map to the SQL-defined reference actions.
These map to the SQL-defined reference actions.
No description provided by the author
No description provided by the author
LockOptionType constants.
String constants to be used in ast.
Constants for Enum Type - Lock.
String constants to be used in ast.
No description provided by the author
No description provided by the author
Constant for Enum Type - BinaryExprOperator.
String constants to be used in ast.
Constant for Enum Type - BinaryExprOperator.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SingleAt represents @.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Select.Cache.
String constants to be used in ast.
String constants to be used in ast.
SQLSelectLimitUnset default value for sql_select_limit not set.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Enum Types of linestring property functions.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ShowCommandType constants.
String constants to be used in ast.
ShowCommandType constants.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
These constants are used to identify the SQL statement type.
No description provided by the author
No description provided by the author
ColumnStorage constants.
No description provided by the author
String constants to be used in ast.
String constants to be used in ast.
Constants for Enum Type - JoinType.
No description provided by the author
No description provided by the author
No description provided by the author
These are the possible Valtype values.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
ShowCommandType constants.
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
ShowCommandType constants.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Enum Types of spatial format functions.
GeomFormatExpr strings.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AlterMigrationType constants.
AlterMigrationType constants.
No description provided by the author
Constant for Enum Type - UnaryExprOperator.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
These are the possible Valtype values.
These are the possible Valtype values.
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constant for Enum Type - ExplainType.
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - TrimType.
No description provided by the author
SetExpr.Expr transaction variables.
String constants to be used in ast.
No description provided by the author
String constants to be used in ast.
Constant for Enum Type - ExplainType.
ShowCommandType constants.
No description provided by the author
No description provided by the author
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
Constant for Enum Type - PartitionSpecAction.
Constants for Enum Type - DDL.Action.
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - JSONAttributeType.
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
Constant for Enum Type - UnaryExprOperator.
String constants to be used in ast.
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - FramePointType.
String constants to be used in ast.
Constants for Enum Type - FramePointType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
String constants to be used in ast.
Union.Type.
No description provided by the author
No description provided by the author
ShowCommandType constants.
LockType constants.
No description provided by the author
No description provided by the author
ColumnFormat constants.
No description provided by the author
AlterMigrationType constants.
AlterMigrationType constants.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constant for Enum Type - PartitionSpecAction.
String constants to be used in ast.
Constant for Enum Type - UnaryExprOperator.
UnaryExpr.Operator.
No description provided by the author
Constant for Enum Type - IndexHintType.
No description provided by the author
No description provided by the author
UserDefinedVariableName is what we prepend bind var names for user defined variables.
Index hints.
Constant for Enum Type - IndexHintType.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - JSONAttributeType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ShowCommandType constants.
String constants to be used in ast.
No description provided by the author
@var_name This is used for user defined variables.
ShowCommandType constants.
String constants to be used in ast.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ShowCommandType constants.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
Vindex DDL param to specify the owner of a vindex.
No description provided by the author
ColumnStorage constants.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
@@vitess_metadata.system_var_name.
String constants to be used in ast.
ShowCommandType constants.
String constants to be used in ast.
ShowCommandType constants.
String constants to be used in ast.
ShowCommandType constants.
String constants to be used in ast.
ShowCommandType constants.
String constants to be used in ast.
ShowCommandType constants.
String constants to be used in ast.
ShowCommandType constants.
String constants to be used in ast.
No description provided by the author
ShowCommandType constants.
String constants to be used in ast.
ShowCommandType constants.
String constants to be used in ast.
ShowCommandType constants.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String constants to be used in ast.
Constants for Enum Type - GTIDType.
String constants to be used in ast.
Constants for Enum Type - GTIDType.
ShowCommandType constants.
No description provided by the author
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constants for Enum Type - WhereType.
Where.Type.
No description provided by the author
No description provided by the author
No description provided by the author
Transaction access mode.
Transaction access mode.
No description provided by the author
No description provided by the author
LockType constants.
No description provided by the author
String constants to be used in ast.
Enum Types of point property functions.
PointPropertyType strings.
No description provided by the author
Enum Types of point property functions.
String constants to be used in ast.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
Equals is the default Comparator for AST expressions.
ErrEmpty is a sentinel error returned when parsing empty statements.
No description provided by the author
No description provided by the author
# Structs
Statements.
Statements.
Statements.
No description provided by the author
No description provided by the author
Statements.
Statements.
Statements.
Statements.
Statements.
Statements.
Statements.
Statements.
Statements.
Statements.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
AutoIncSpec defines and autoincrement value for a ADD AUTO_INCREMENT statement.
*********** Expressions.
Statements.
*********** Expressions.
*********** Expressions.
No description provided by the author
BindVarNeeds represents the bind vars that need to be provided as the result of expression rewriting.
*********** Expressions.
*********** Expressions.
*********** Expressions.
Statements.
*********** Expressions.
*********** Expressions.
Statements.
*********** Expressions.
No description provided by the author
*********** Expressions.
*********** Expressions.
ColumnCharset exists because in the type definition it's possible to add the binary marker for a character set, so we need to track when this happens.
ColumnDefinition describes a column in a CREATE TABLE statement.
ColumnType represents a sql type in a CREATE TABLE statement All optional fields are nil if not specified.
ColumnTypeOptions are generic field options for a column type.
CommentDirectives is the parsed representation for execution directives conveyed in query comments.
Statements.
Statements.
Statements.
No description provided by the author
*********** Expressions.
ConstraintDefinition describes a constraint in a CREATE TABLE statement.
*********** Expressions.
ConvertType represents the type in call to CONVERT(expr, type).
*********** Expressions.
No description provided by the author
*********** Expressions.
*********** Expressions.
Statements.
Statements.
Statements.
A Cursor describes a node encountered during Apply.
*********** Expressions.
Statements.
Statements.
*********** Expressions.
Statements.
Statements.
No description provided by the author
Statements.
Statements.
Statements.
Statements.
Statements.
Statements.
*********** Expressions.
Statements.
Statements.
No description provided by the author
*********** Expressions.
*********** Expressions.
*********** Expressions.
Statements.
Statements.
No description provided by the author
Types for window functions.
Types for window functions.
Types for window functions.
*********** Expressions.
No description provided by the author
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
GroupBy represents a GROUP BY clause.
*********** Expressions.
*********** Expressions.
IdentifierCI is a case insensitive SQL identifier.
IdentifierCS is a case sensitive SQL identifier.
IndexColumn describes a column or expression in an index definition with optional length (for column).
IndexDefinition describes an index in a CREATE TABLE statement.
IndexHint represents an index hint.
IndexInfo describes the name and type of an index in a CREATE TABLE statement.
IndexOption is used for trailing options for indexes: COMMENT, KEY_BLOCK_SIZE, USING, WITH PARSER.
Statements.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
JoinCondition represents the join conditions (either a ON or USING clause) of a JoinTableExpr.
No description provided by the author
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
Statements.
Statements.
*********** Expressions.
LengthScaleOption is used for types that have an optional length and scale.
Limit represents a LIMIT clause.
*********** Expressions.
*********** Expressions.
*********** Expressions.
Statements.
*********** Expressions.
*********** Expressions.
Statements.
Statements.
MarginComments holds the leading and trailing comments that surround a query.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
Statements.
*********** Expressions.
*********** Expressions.
*********** Expressions.
Types for window functions.
No description provided by the author
*********** Expressions.
*********** Expressions.
*********** Expressions.
Types for window functions.
*********** Expressions.
*********** Expressions.
No description provided by the author
OptLike works for create table xxx like xxx.
Order represents an ordering expression.
Statements.
*********** Expressions.
Statements.
Types for window functions.
No description provided by the author
No description provided by the author
ParsedQuery represents a parsed query where bind locations are precomputed for fast substitutions.
No description provided by the author
PartitionDefinition describes a very minimal partition definition.
No description provided by the author
No description provided by the author
PartitionOption describes partitioning control (for create table statements).
PartitionSpec describe partition actions (for alter statements).
No description provided by the author
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
PositionedErr holds context related to parser errors.
Statements.
Statements.
No description provided by the author
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
Statements.
Statements.
Statements.
Statements.
Statements.
Statements.
ReservedVars keeps track of the bind variable names that have already been used in a parsed query.
Statements.
RewriteASTResult contains the rewritten ast and meta information about it.
Statements.
RootNode is the root node of the AST when rewriting.
No description provided by the author
Statements.
Statements.
Statements.
Statements.
SetExpr represents a set expression.
Statements.
No description provided by the author
No description provided by the author
ShowFilter is show tables filter.
Statements.
No description provided by the author
ShowTablesOpt is show tables option.
Statements.
Statements.
Statements.
No description provided by the author
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
Statements.
SubPartition describes subpartitions control.
Subpartition Definition Corresponds to the subpartition_definition option of partition_definition.
Different options/attributes that can be provided to a subpartition_definition.
No description provided by the author
*********** Expressions.
*********** Expressions.
Statements.
No description provided by the author
TableOption is used for create table options like AUTO_INCREMENT, INSERT_METHOD, etc.
Statements.
TableSpec describes the structure of a table from a CREATE TABLE statement.
*********** Expressions.
Tokenizer is the struct used to generate SQL tokens for the parser.
TrackedBuffer is used to rebuild a query from the ast.
TrimFuncExpr represents a TRIM function More information available on https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_trim.
Statements.
TupleEqualityList is for generating equality constraints for tables that have composite primary keys.
*********** Expressions.
Statements.
Statements.
Statements.
UpdateExpr represents an update expression.
*********** Expressions.
Statements.
Statements.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
Statements.
VindexParam defines a key/value parameter for a CREATE VINDEX statement.
VindexSpec defines a vindex for a CREATE VINDEX or DROP VINDEX statement.
Statements.
*********** Expressions.
*********** Expressions.
Where represents a WHERE or HAVING clause.
Types for window functions.
Types for window functions.
Statements.
*********** Expressions.
# Interfaces
*********** Expressions.
Statements.
*********** Expressions.
*********** Expressions.
Statements.
No description provided by the author
Statements.
Statements.
*********** Expressions.
Encodable defines the interface for types that can be custom-encoded into SQL.
Statements.
*********** Expressions.
No description provided by the author
InsertRows represents the rows for an INSERT statement.
Statements.
No description provided by the author
No description provided by the author
Statements.
No description provided by the author
No description provided by the author
SQLNode defines the interface for all nodes generated by the parser.
Statements.
Statements.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
Statements.
Statements.
An ApplyFunc is invoked by Rewrite for each node n, even if n is nil, before and/or after the node's children, using a Cursor describing the current node and providing operations on it.
*********** Expressions.
AtCount represents the '@' count in IdentifierCI.
*********** Expressions.
BindVars is a set of reserved bind variables from a SQL statement.
*********** Expressions.
ColumnFormat is an enum that defines the type of storage.
ColumnKeyOption indicates whether or not the given column is defined as an index element and contains the type of the option.
Columns represents an insert column list.
ColumnStorage is an enum that defines the type of storage.
Comments represents a list of comments.
*********** Expressions.
Statements.
Statements.
Statements.
Statements.
Exprs represents a list of value expressions.
*********** Expressions.
Types for window functions.
Types for window functions.
Types for window functions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
Statements.
IndexHintForType is an enum for FOR specified in an IndexHint.
IndexHints represents a list of index hints.
IndexHintType is an enum for IndexHint.Type.
Statements.
Statements.
InsertValues is a custom SQL encoder for the values of an insert statement.
No description provided by the author
*********** Expressions.
*********** Expressions.
No description provided by the author
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
Statements.
*********** Expressions.
*********** Expressions.
*********** Expressions.
Statements.
*********** Expressions.
Statements.
Statements.
MatchAction indicates the type of match for a referential constraint, so a `MATCH FULL`, `MATCH SIMPLE` or `MATCH PARTIAL`.
*********** Expressions.
Types for window functions.
NodeFormatter defines the signature of a custom node formatter function that can be given to TrackedBuffer for code generation.
Types for window functions.
OnDup represents an ON DUPLICATE KEY clause.
OrderBy represents an ORDER By clause.
OrderDirection is an enum for the direction in which to order - asc or desc.
PartitionByType is an enum storing how we are partitioning a table.
Partitions is a type alias for Columns so we can handle printing efficiently.
PartitionSpecAction is an enum for PartitionSpec.Action.
PartitionValueRangeType is an enum for PartitionValueRange.Type.
*********** Expressions.
*********** Expressions.
*********** Expressions.
Precendence is used to know the precedence between operators, so we can introduce parens when needed in the String representation of the AST.
*********** Expressions.
ReferenceAction indicates the action takes by a referential constraint e.g.
*********** Expressions.
SelectExprs represents SELECT expressions.
Statements.
SetExprs represents a list of set expressions.
No description provided by the author
StatementType encodes the type of a SQL statement.
This is a list of SubPartitionDefinition.
Statements.
TableExprs represents a list of table expressions.
TableNames is a list of TableName.
TableOptions specifies a list of table options.
TrimFuncType is an enum to get types of TrimFunc.
TrimType is an enum to get types of Trim.
Statements.
*********** Expressions.
UpdateExprs represents a list of update expressions.
*********** Expressions.
ValType specifies the type for Literal.
Values represents a VALUES clause.
Statements.
Visit defines the signature of a function that can be used to postVisit all nodes of a parse tree.
WhereType is an enum for Where.Type.
Types for window functions.