Categorygithub.com/xqbumu/sqlparser
modulepackage
0.0.0-20220722015555-795b9e847a8e
Repository: https://github.com/xqbumu/sqlparser.git
Documentation: pkg.go.dev

# README

sqlparser Build Status Coverage Report card GoDoc

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/xqbumu/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

./scirpts/tools.sh fetch

Fresh install

TODO: Change these instructions to use git to copy the files, that'll make later patching easier.

./scirpts/tools.sh install

Testing

./scirpts/tools.sh testing

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# 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.
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.
CloneCharacteristic 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.
CloneColumnType 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.
CloneGroupBy 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.
CloneJSONObjectParam 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.
CloneRefOfAndExpr creates a deep clone of the input.
CloneRefOfArgumentLessWindowExpr 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.
CloneRefOfExtractedSubquery 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.
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.
CloneRefOfIntervalExpr 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.
CloneRefOfLagLeadExpr creates a deep clone of the input.
CloneRefOfLimit 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.
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.
CloneRefOfOtherRead 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.
CloneRefOfPrepareStmt 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.
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.
CloneRefOfSetTransaction 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.
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.
CloneRefOfTimestampFuncExpr 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.
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.
CloneSliceOfCharacteristic 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.
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
ContainsAggregation returns true if the expression contains aggregation.
EncodeValue encodes one bind variable value into the query.
EqualsAggrFunc does deep equals between the two objects.
EqualsAlterOption does deep equals between the two objects.
EqualsCallable does deep equals between the two objects.
EqualsCharacteristic does deep equals between the two objects.
EqualsColTuple does deep equals between the two objects.
EqualsColumnCharset does deep equals between the two objects.
EqualsColumns does deep equals between the two objects.
EqualsColumnType does deep equals between the two objects.
EqualsComments does deep equals between the two objects.
EqualsConstraintInfo does deep equals between the two objects.
EqualsDatabaseOption does deep equals between the two objects.
EqualsDBDDLStatement does deep equals between the two objects.
EqualsDDLStatement does deep equals between the two objects.
EqualsExplain does deep equals between the two objects.
EqualsExpr does deep equals between the two objects.
EqualsExprs does deep equals between the two objects.
EqualsGroupBy does deep equals between the two objects.
EqualsIdentifierCI does deep equals between the two objects.
EqualsIdentifierCS does deep equals between the two objects.
EqualsIndexHints does deep equals between the two objects.
EqualsInsertRows does deep equals between the two objects.
EqualsJSONObjectParam does deep equals between the two objects.
EqualsNamedWindows does deep equals between the two objects.
EqualsOnDup does deep equals between the two objects.
EqualsOrderBy does deep equals between the two objects.
EqualsPartitions does deep equals between the two objects.
EqualsRefOfAddColumns does deep equals between the two objects.
EqualsRefOfAddConstraintDefinition does deep equals between the two objects.
EqualsRefOfAddIndexDefinition does deep equals between the two objects.
EqualsRefOfAliasedExpr does deep equals between the two objects.
EqualsRefOfAliasedTableExpr does deep equals between the two objects.
EqualsRefOfAlterCharset does deep equals between the two objects.
EqualsRefOfAlterCheck does deep equals between the two objects.
EqualsRefOfAlterColumn does deep equals between the two objects.
EqualsRefOfAlterDatabase does deep equals between the two objects.
EqualsRefOfAlterIndex does deep equals between the two objects.
EqualsRefOfAlterMigration does deep equals between the two objects.
EqualsRefOfAlterTable does deep equals between the two objects.
EqualsRefOfAlterView does deep equals between the two objects.
EqualsRefOfAlterVschema does deep equals between the two objects.
EqualsRefOfAndExpr does deep equals between the two objects.
EqualsRefOfArgumentLessWindowExpr does deep equals between the two objects.
EqualsRefOfAutoIncSpec does deep equals between the two objects.
EqualsRefOfAvg does deep equals between the two objects.
EqualsRefOfBegin does deep equals between the two objects.
EqualsRefOfBetweenExpr does deep equals between the two objects.
EqualsRefOfBinaryExpr does deep equals between the two objects.
EqualsRefOfBitAnd does deep equals between the two objects.
EqualsRefOfBitOr does deep equals between the two objects.
EqualsRefOfBitXor does deep equals between the two objects.
EqualsRefOfBool does deep equals between the two objects.
EqualsRefOfCallProc does deep equals between the two objects.
EqualsRefOfCaseExpr does deep equals between the two objects.
EqualsRefOfCastExpr does deep equals between the two objects.
EqualsRefOfChangeColumn does deep equals between the two objects.
EqualsRefOfCharExpr does deep equals between the two objects.
EqualsRefOfCheckConstraintDefinition does deep equals between the two objects.
EqualsRefOfCollateExpr does deep equals between the two objects.
EqualsRefOfColName does deep equals between the two objects.
EqualsRefOfColumnCharset does deep equals between the two objects.
EqualsRefOfColumnDefinition does deep equals between the two objects.
EqualsRefOfColumnType does deep equals between the two objects.
EqualsRefOfColumnTypeOptions does deep equals between the two objects.
EqualsRefOfCommentOnly does deep equals between the two objects.
EqualsRefOfCommit does deep equals between the two objects.
EqualsRefOfCommonTableExpr does deep equals between the two objects.
EqualsRefOfComparisonExpr does deep equals between the two objects.
EqualsRefOfConstraintDefinition does deep equals between the two objects.
EqualsRefOfConvertExpr does deep equals between the two objects.
EqualsRefOfConvertType does deep equals between the two objects.
EqualsRefOfConvertUsingExpr does deep equals between the two objects.
EqualsRefOfCount does deep equals between the two objects.
EqualsRefOfCountStar does deep equals between the two objects.
EqualsRefOfCreateDatabase does deep equals between the two objects.
EqualsRefOfCreateTable does deep equals between the two objects.
EqualsRefOfCreateView does deep equals between the two objects.
EqualsRefOfCurTimeFuncExpr does deep equals between the two objects.
EqualsRefOfDatabaseOption does deep equals between the two objects.
EqualsRefOfDeallocateStmt does deep equals between the two objects.
EqualsRefOfDefault does deep equals between the two objects.
EqualsRefOfDefiner does deep equals between the two objects.
EqualsRefOfDelete does deep equals between the two objects.
EqualsRefOfDerivedTable does deep equals between the two objects.
EqualsRefOfDropColumn does deep equals between the two objects.
EqualsRefOfDropDatabase does deep equals between the two objects.
EqualsRefOfDropKey does deep equals between the two objects.
EqualsRefOfDropTable does deep equals between the two objects.
EqualsRefOfDropView does deep equals between the two objects.
EqualsRefOfExecuteStmt does deep equals between the two objects.
EqualsRefOfExistsExpr does deep equals between the two objects.
EqualsRefOfExplainStmt does deep equals between the two objects.
EqualsRefOfExplainTab does deep equals between the two objects.
EqualsRefOfExtractedSubquery does deep equals between the two objects.
EqualsRefOfExtractFuncExpr does deep equals between the two objects.
EqualsRefOfExtractValueExpr does deep equals between the two objects.
EqualsRefOfFirstOrLastValueExpr does deep equals between the two objects.
EqualsRefOfFlush does deep equals between the two objects.
EqualsRefOfForce does deep equals between the two objects.
EqualsRefOfForeignKeyDefinition does deep equals between the two objects.
EqualsRefOfFrameClause does deep equals between the two objects.
EqualsRefOfFramePoint does deep equals between the two objects.
EqualsRefOfFromFirstLastClause does deep equals between the two objects.
EqualsRefOfFuncExpr does deep equals between the two objects.
EqualsRefOfGroupConcatExpr does deep equals between the two objects.
EqualsRefOfGTIDFuncExpr does deep equals between the two objects.
EqualsRefOfIdentifierCI does deep equals between the two objects.
EqualsRefOfIdentifierCS does deep equals between the two objects.
EqualsRefOfIndexColumn does deep equals between the two objects.
EqualsRefOfIndexDefinition does deep equals between the two objects.
EqualsRefOfIndexHint does deep equals between the two objects.
EqualsRefOfIndexInfo does deep equals between the two objects.
EqualsRefOfIndexOption does deep equals between the two objects.
EqualsRefOfInsert does deep equals between the two objects.
EqualsRefOfInsertExpr does deep equals between the two objects.
EqualsRefOfInt does deep equals between the two objects.
EqualsRefOfIntervalExpr does deep equals between the two objects.
EqualsRefOfIntervalFuncExpr does deep equals between the two objects.
EqualsRefOfIntroducerExpr does deep equals between the two objects.
EqualsRefOfIsExpr does deep equals between the two objects.
EqualsRefOfJoinCondition does deep equals between the two objects.
EqualsRefOfJoinTableExpr does deep equals between the two objects.
EqualsRefOfJSONArrayExpr does deep equals between the two objects.
EqualsRefOfJSONAttributesExpr does deep equals between the two objects.
EqualsRefOfJSONContainsExpr does deep equals between the two objects.
EqualsRefOfJSONContainsPathExpr does deep equals between the two objects.
EqualsRefOfJSONExtractExpr does deep equals between the two objects.
EqualsRefOfJSONKeysExpr does deep equals between the two objects.
EqualsRefOfJSONObjectExpr does deep equals between the two objects.
EqualsRefOfJSONObjectParam does deep equals between the two objects.
EqualsRefOfJSONOverlapsExpr does deep equals between the two objects.
EqualsRefOfJSONPrettyExpr does deep equals between the two objects.
EqualsRefOfJSONQuoteExpr does deep equals between the two objects.
EqualsRefOfJSONRemoveExpr does deep equals between the two objects.
EqualsRefOfJSONSchemaValidationReportFuncExpr does deep equals between the two objects.
EqualsRefOfJSONSchemaValidFuncExpr does deep equals between the two objects.
EqualsRefOfJSONSearchExpr does deep equals between the two objects.
EqualsRefOfJSONStorageFreeExpr does deep equals between the two objects.
EqualsRefOfJSONStorageSizeExpr does deep equals between the two objects.
EqualsRefOfJSONTableExpr does deep equals between the two objects.
EqualsRefOfJSONUnquoteExpr does deep equals between the two objects.
EqualsRefOfJSONValueExpr does deep equals between the two objects.
EqualsRefOfJSONValueMergeExpr does deep equals between the two objects.
EqualsRefOfJSONValueModifierExpr does deep equals between the two objects.
EqualsRefOfJtColumnDefinition does deep equals between the two objects.
EqualsRefOfJtNestedPathColDef does deep equals between the two objects.
EqualsRefOfJtOnResponse does deep equals between the two objects.
EqualsRefOfJtOrdinalColDef does deep equals between the two objects.
EqualsRefOfJtPathColDef does deep equals between the two objects.
EqualsRefOfKeyState does deep equals between the two objects.
EqualsRefOfLagLeadExpr does deep equals between the two objects.
EqualsRefOfLimit does deep equals between the two objects.
EqualsRefOfLiteral does deep equals between the two objects.
EqualsRefOfLoad does deep equals between the two objects.
EqualsRefOfLocateExpr does deep equals between the two objects.
EqualsRefOfLockingFunc does deep equals between the two objects.
EqualsRefOfLockOption does deep equals between the two objects.
EqualsRefOfLockTables does deep equals between the two objects.
EqualsRefOfMatchExpr does deep equals between the two objects.
EqualsRefOfMax does deep equals between the two objects.
EqualsRefOfMemberOfExpr does deep equals between the two objects.
EqualsRefOfMin does deep equals between the two objects.
EqualsRefOfModifyColumn does deep equals between the two objects.
EqualsRefOfNamedWindow does deep equals between the two objects.
EqualsRefOfNextval does deep equals between the two objects.
EqualsRefOfNotExpr does deep equals between the two objects.
EqualsRefOfNTHValueExpr does deep equals between the two objects.
EqualsRefOfNtileExpr does deep equals between the two objects.
EqualsRefOfNullTreatmentClause does deep equals between the two objects.
EqualsRefOfNullVal does deep equals between the two objects.
EqualsRefOfOffset does deep equals between the two objects.
EqualsRefOfOptLike does deep equals between the two objects.
EqualsRefOfOrder does deep equals between the two objects.
EqualsRefOfOrderByOption does deep equals between the two objects.
EqualsRefOfOrExpr does deep equals between the two objects.
EqualsRefOfOtherAdmin does deep equals between the two objects.
EqualsRefOfOtherRead does deep equals between the two objects.
EqualsRefOfOverClause does deep equals between the two objects.
EqualsRefOfParenTableExpr does deep equals between the two objects.
EqualsRefOfParsedComments does deep equals between the two objects.
EqualsRefOfPartitionDefinition does deep equals between the two objects.
EqualsRefOfPartitionDefinitionOptions does deep equals between the two objects.
EqualsRefOfPartitionEngine does deep equals between the two objects.
EqualsRefOfPartitionOption does deep equals between the two objects.
EqualsRefOfPartitionSpec does deep equals between the two objects.
EqualsRefOfPartitionValueRange does deep equals between the two objects.
EqualsRefOfPerformanceSchemaFuncExpr does deep equals between the two objects.
EqualsRefOfPrepareStmt does deep equals between the two objects.
EqualsRefOfReferenceDefinition does deep equals between the two objects.
EqualsRefOfRegexpInstrExpr does deep equals between the two objects.
EqualsRefOfRegexpLikeExpr does deep equals between the two objects.
EqualsRefOfRegexpReplaceExpr does deep equals between the two objects.
EqualsRefOfRegexpSubstrExpr does deep equals between the two objects.
EqualsRefOfRelease does deep equals between the two objects.
EqualsRefOfRenameColumn does deep equals between the two objects.
EqualsRefOfRenameIndex does deep equals between the two objects.
EqualsRefOfRenameTable does deep equals between the two objects.
EqualsRefOfRenameTableName does deep equals between the two objects.
EqualsRefOfRenameTablePair does deep equals between the two objects.
EqualsRefOfRevertMigration does deep equals between the two objects.
EqualsRefOfRollback does deep equals between the two objects.
EqualsRefOfRootNode does deep equals between the two objects.
EqualsRefOfSavepoint does deep equals between the two objects.
EqualsRefOfSelect does deep equals between the two objects.
EqualsRefOfSelectInto does deep equals between the two objects.
EqualsRefOfSet does deep equals between the two objects.
EqualsRefOfSetExpr does deep equals between the two objects.
EqualsRefOfSetTransaction does deep equals between the two objects.
EqualsRefOfShow does deep equals between the two objects.
EqualsRefOfShowBasic does deep equals between the two objects.
EqualsRefOfShowCreate does deep equals between the two objects.
EqualsRefOfShowFilter does deep equals between the two objects.
EqualsRefOfShowMigrationLogs does deep equals between the two objects.
EqualsRefOfShowOther does deep equals between the two objects.
EqualsRefOfShowThrottledApps does deep equals between the two objects.
EqualsRefOfSRollback does deep equals between the two objects.
EqualsRefOfStarExpr does deep equals between the two objects.
EqualsRefOfStd does deep equals between the two objects.
EqualsRefOfStdDev does deep equals between the two objects.
EqualsRefOfStdPop does deep equals between the two objects.
EqualsRefOfStdSamp does deep equals between the two objects.
EqualsRefOfStream does deep equals between the two objects.
EqualsRefOfSubPartition does deep equals between the two objects.
EqualsRefOfSubPartitionDefinition does deep equals between the two objects.
EqualsRefOfSubPartitionDefinitionOptions does deep equals between the two objects.
EqualsRefOfSubquery does deep equals between the two objects.
EqualsRefOfSubstrExpr does deep equals between the two objects.
EqualsRefOfSum does deep equals between the two objects.
EqualsRefOfTableAndLockType does deep equals between the two objects.
EqualsRefOfTableName does deep equals between the two objects.
EqualsRefOfTableOption does deep equals between the two objects.
EqualsRefOfTablespaceOperation does deep equals between the two objects.
EqualsRefOfTableSpec does deep equals between the two objects.
EqualsRefOfTimestampFuncExpr does deep equals between the two objects.
EqualsRefOfTrimFuncExpr does deep equals between the two objects.
EqualsRefOfTruncateTable does deep equals between the two objects.
EqualsRefOfUnaryExpr does deep equals between the two objects.
EqualsRefOfUnion does deep equals between the two objects.
EqualsRefOfUnlockTables does deep equals between the two objects.
EqualsRefOfUpdate does deep equals between the two objects.
EqualsRefOfUpdateExpr does deep equals between the two objects.
EqualsRefOfUpdateXMLExpr does deep equals between the two objects.
EqualsRefOfUse does deep equals between the two objects.
EqualsRefOfValidation does deep equals between the two objects.
EqualsRefOfValuesFuncExpr does deep equals between the two objects.
EqualsRefOfVariable does deep equals between the two objects.
EqualsRefOfVariance does deep equals between the two objects.
EqualsRefOfVarPop does deep equals between the two objects.
EqualsRefOfVarSamp does deep equals between the two objects.
EqualsRefOfVindexParam does deep equals between the two objects.
EqualsRefOfVindexSpec does deep equals between the two objects.
EqualsRefOfVStream does deep equals between the two objects.
EqualsRefOfWeightStringFuncExpr does deep equals between the two objects.
EqualsRefOfWhen does deep equals between the two objects.
EqualsRefOfWhere does deep equals between the two objects.
EqualsRefOfWindowDefinition does deep equals between the two objects.
EqualsRefOfWindowSpecification does deep equals between the two objects.
EqualsRefOfWith does deep equals between the two objects.
EqualsRefOfXorExpr does deep equals between the two objects.
EqualsRootNode does deep equals between the two objects.
EqualsSelectExpr does deep equals between the two objects.
EqualsSelectExprs does deep equals between the two objects.
EqualsSelectStatement does deep equals between the two objects.
EqualsSetExprs does deep equals between the two objects.
EqualsShowInternal does deep equals between the two objects.
EqualsSimpleTableExpr does deep equals between the two objects.
EqualsSliceOfAlterOption does deep equals between the two objects.
EqualsSliceOfCharacteristic does deep equals between the two objects.
EqualsSliceOfDatabaseOption does deep equals between the two objects.
EqualsSliceOfExpr does deep equals between the two objects.
EqualsSliceOfIdentifierCI does deep equals between the two objects.
EqualsSliceOfRefOfColName does deep equals between the two objects.
EqualsSliceOfRefOfColumnDefinition does deep equals between the two objects.
EqualsSliceOfRefOfCommonTableExpr does deep equals between the two objects.
EqualsSliceOfRefOfConstraintDefinition does deep equals between the two objects.
EqualsSliceOfRefOfIndexColumn does deep equals between the two objects.
EqualsSliceOfRefOfIndexDefinition does deep equals between the two objects.
EqualsSliceOfRefOfIndexOption does deep equals between the two objects.
EqualsSliceOfRefOfJSONObjectParam does deep equals between the two objects.
EqualsSliceOfRefOfJtColumnDefinition does deep equals between the two objects.
EqualsSliceOfRefOfPartitionDefinition does deep equals between the two objects.
EqualsSliceOfRefOfRenameTablePair does deep equals between the two objects.
EqualsSliceOfRefOfVariable does deep equals between the two objects.
EqualsSliceOfRefOfWhen does deep equals between the two objects.
EqualsSliceOfString does deep equals between the two objects.
EqualsSliceOfTableExpr does deep equals between the two objects.
EqualsSliceOfVindexParam does deep equals between the two objects.
EqualsSQLNode does deep equals between the two objects.
EqualsStatement does deep equals between the two objects.
EqualsSubPartitionDefinitions does deep equals between the two objects.
EqualsTableAndLockTypes does deep equals between the two objects.
EqualsTableExpr does deep equals between the two objects.
EqualsTableExprs does deep equals between the two objects.
EqualsTableName does deep equals between the two objects.
EqualsTableNames does deep equals between the two objects.
EqualsTableOptions does deep equals between the two objects.
EqualsUpdateExprs does deep equals between the two objects.
EqualsValTuple does deep equals between the two objects.
EqualsValues does deep equals between the two objects.
EqualsVindexParam does deep equals between the two objects.
EqualsWindowDefinitions does deep equals between the two objects.
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.
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.
GetTableName returns the table name from the SimpleTableExpr only if it's a simple expression.
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.
IsColName returns true if the Expr is a *ColName.
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.
IsLockingFunc returns true for all functions that are used to work with mysql advisory locks.
No description provided by the author
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.
MultiShardAutocommitDirective returns true if multishard autocommit directive is set to true in query.
MustRewriteAST takes Statement and returns true if RewriteAST must run on it for correct execution irrespective of user flags.
NewArgument builds a new ValArg.
NewBitLiteral builds a new BitVal containing a bit literal.
NewColName makes a new ColName.
NewColNameWithQualifier makes a new ColName pointing to a specific table.
No description provided by the author
NewFloatLiteral builds a new FloatVal.
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.
NewListArg builds a new ListArg.
NewOffset creates an offset and returns it.
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.
NewStringTokenizer creates a new Tokenizer for the sql string.
NewStrLiteral builds a new StrVal.
NewTrackedBuffer creates a new TrackedBuffer.
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.
NormalizeAlphabetically rewrites given query such that: - WHERE 'AND' expressions are reordered alphabetically.
Parse behaves like Parse2 but does not return a set of bind variables.
Parse2 parses the SQL in full and returns a Statement, which is the AST representation of the query, and a set of BindVars, which are all the bind variables that were found in the original SQL query.
ParseAndBind is a one step sweep that binds variables to an input query, in order of placeholders.
ParseExpr parses an expression and transforms it to an AST.
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.
ParseStrictDDL is the same as Parse except it errors on partially parsed DDL statements.
ParseTable parses the input as a qualified table name.
ParseTokenizer is a raw interface to parse from the given tokenizer.
PrepareAST will normalize the query.
Preview analyzes the beginning of the query using a simpler and faster textual comparison to identify the statement type.
QueryMatchesTemplates sees if the given query has the same fingerprint as one of the given templates (one is enough).
RedactSQLQuery returns a sql string with the params stripped out for display.
RemoveKeyspace removes the Qualifier.Qualifier on all ColNames in the AST.
RemoveKeyspaceFromColName removes the Qualifier.Qualifier on all ColNames in the expression tree.
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.
RewriteToCNF walks the input AST and rewrites any boolean logic into CNF Note: In order to re-plan, we need to empty the accumulated metadata in the AST, so ColName.Metadata will be nil:ed out as part of this rewrite.
SkipQueryPlanCacheDirective returns true if skip query plan cache directive is set to true in query.
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.
SplitStatement returns the first sql statement up to either a ; or EOF and the remainder from the given buffer.
SplitStatementToPieces split raw sql statement that may have multi sql pieces to sql pieces returns the sql pieces blob contains; or error if sql cannot be parsed.
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.
TableFromStatement returns the qualified table name for the query.
ToString prints the list of table expressions as a string To be used as an alternate for String for []TableExpr.
TruncateForLog is used when displaying queries as part of error logs to avoid overwhelming logging systems with potentially long queries and bind value data.
TruncateForUI is used when displaying queries on various Vitess status pages to keep the pages small enough to load and render properly.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
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 visit 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.
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.
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
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
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.
No description provided by the author
No description provided by the author
No description provided by the author
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.
No description provided by the author
Constant for Enum Type - BinaryExprOperator.
String constants to be used in ast.
These are the possible Valtype values.
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
No description provided by the author
AlterMigrationType constants.
AlterMigrationType constants.
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
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
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
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.
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
FramePointType strings.
Constants for Enum Type - FramePointType.
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
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.
IntervalTypes strings.
DBVarName is a reserved bind var name for database().
No description provided by the author
String constants to be used in ast.
Constant for Enum Type - DeallocateStmtType.
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.
DefaultAction indicates no action was explicitly specified.
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.
DirectiveAllowHashJoin lets the planner use hash join if possible.
DirectiveAllowScatter lets scatter plans pass through even when they are turned off by `no-scatter`.
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.
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.
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.
String constants to be used in ast.
Constant for Enum Type - DeallocateStmtType.
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
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
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
No description provided by the author
No description provided by the author
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
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
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.
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
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.
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
String constants to be used in ast.
Constants for Enum Type - NullTreatmentType.
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
Constants for Enum Type - ComparisonExprOperator.
No description provided by the author
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.
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
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes constants.
IntervalTypes 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
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
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.
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.
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.
String constants to be used in ast.
Constants for Enum Type - JSONAttributeType.
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
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
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
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
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.
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 - BinaryExprOperator.
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
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
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
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.
This is only used for SET ISOLATION LEVEL.
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
No description provided by the author
No description provided by the author
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
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.
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
No description provided by the author
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
String constants to be used in ast.
No description provided by the author
Constant for Enum Type - MatchExprOption.
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
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
Constants for Enum type - IsolationLevel.
String constants to be used in ast.
LockType constants.
String constants to be used in ast.
Constants for Enum type - AccessMode.
Lock Types.
Constants for Enum type - IsolationLevel.
Transaction isolation levels.
Constants for Enum type - AccessMode.
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
Constants for Enum type - IsolationLevel.
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
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
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
Constants for Enum type - IsolationLevel.
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
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
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.
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
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
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
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
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
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, for SET TRANSACTION ..
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.
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 - 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
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.
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
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
@@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.
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.
Constant for Enum Type - ExplainType.
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.
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
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
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
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.
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.
No description provided by the author

# Variables

Aggregates is a map of all aggregate functions.
ErrEmpty is a sentinel error returned when parsing empty statements.
HasValueSubQueryBaseName is the prefix of each parameter representing an EXISTS subquery.
default version if nothing else is stated.
TruncateErrLen truncate queries in error logs to the given length.
TruncateUILen truncate queries in debug UIs to the given length.

# 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.
*********** Expressions.
*********** Expressions.
AutoIncSpec defines and autoincrement value for a ADD AUTO_INCREMENT statement.
*********** Expressions.
Statements.
*********** Expressions.
*********** Expressions.
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.
Statements.
Statements.
Statements.
*********** Expressions.
ConstraintDefinition describes a constraint in a CREATE TABLE statement.
*********** Expressions.
ConvertType represents the type in call to CONVERT(expr, type).
*********** Expressions.
*********** 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.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
Statements.
Statements.
No description provided by the author
Types for window functions.
Types for window functions.
Types for window functions.
*********** Expressions.
*********** 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.
*********** Expressions.
LengthScaleOption is used for types that have an optional length and scale.
Limit represents a LIMIT clause.
*********** Expressions.
Statements.
*********** Expressions.
*********** Expressions.
Statements.
Statements.
MarginComments holds the leading and trailing comments that surround a query.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
Statements.
Types for window functions.
No description provided by the author
*********** Expressions.
*********** Expressions.
*********** Expressions.
Types for window functions.
*********** Expressions.
*********** Expressions.
OptLike works for create table xxx like xxx.
Order represents an ordering expression.
Statements.
*********** Expressions.
Statements.
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.
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.
PositionedErr holds context related to parser errors.
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.
Statements.
Statements.
Statements.
Statements.
SetExpr represents a set expression.
Statements.
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.
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.
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.
Statements.
*********** Expressions.
Statements.
No description provided by the author
Statements.
Statements.
Encodable defines the interface for types that can be custom-encoded into SQL.
Statements.
*********** Expressions.
InsertRows represents the rows for an INSERT statement.
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

# Type aliases

Statements.
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.
*********** 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.
CommentDirectives is the parsed representation for execution directives conveyed in query comments.
Comments represents a list of comments.
*********** Expressions.
Statements.
Statements.
Statements.
Statements.
Statements.
Exprs represents a list of value expressions.
*********** Expressions.
Types for window functions.
Types for window functions.
Types for window functions.
GroupBy represents a GROUP BY clause.
*********** 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.
InsertValues is a custom SQL encoder for the values of an insert statement.
Statements.
*********** Expressions.
Statements.
No description provided by the author
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** Expressions.
*********** 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.
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.
Statements.
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.
*********** Expressions.
UpdateExprs represents a list of update expressions.
*********** Expressions.
ValType specifies the type for Literal.
Values represents a VALUES clause.
Visit defines the signature of a function that can be used to visit all nodes of a parse tree.
WhereType is an enum for Where.Type.
Types for window functions.