package
0.0.0-20181110075450-de9982eab158
Repository: https://github.com/kafka1991/parser.git
Documentation: pkg.go.dev
# Functions
HasAggFlag checks if the expr contains FlagHasAggregateFunc.
IsReadOnly checks whether the input ast is readOnly.
SetFlag sets flag for expression.
# Constants
math functions.
List scalar function names.
time functions.
List scalar function names.
Admin statement types.
Admin statement types.
Admin statement types.
Admin statement types.
Admin statement types.
Admin statement types.
Admin statement types.
Admin statement types.
Admin statement types.
Admin statement types.
Admin statement types.
Admin statement types.
encryption and compression functions.
List scalar function names.
AggFuncAvg is the name of Avg function.
AggFuncBitAnd is the name of bit_and function.
AggFuncBitOr is the name of bit_or function.
AggFuncBitXor is the name of bit_xor function.
AggFuncCount is the name of Count function.
AggFuncFirstRow is the name of FirstRowColumn function.
AggFuncGroupConcat is the name of group_concat function.
AggFuncMax is the name of max function.
AggFuncMin is the name of min function.
AggFuncStddevPop is the name of stddev_pop function.
AggFuncStddevSamp is the name of stddev_samp function.
AggFuncSum is the name of Sum function.
AlterTable types.
AlterTable types.
AlterTable types.
AlterTable types.
AlterTable types.
AlterTable types.
AlterTable types.
AlterTable types.
AlterTable types.
AlterTable types.
AlterTable types.
AlterTable types.
AlterTable types.
AlterTable types.
AlterTable types.
AlterTable types.
AlterTable types.
List scalar function names.
miscellaneous functions.
string functions.
List scalar function names.
List scalar function names.
List scalar function names.
information functions.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
CastFunction types.
CastFunction types.
CastFunction types.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
common functions.
List scalar function names.
List scalar function names.
ColumnOption types.
ColumnOption types.
ColumnOption types.
ColumnOption types.
ColumnOption types.
ColumnOption types.
ColumnOption types.
ColumnOption types.
For Timestamp and Datetime only.
ColumnOption types.
ColumnOption types.
ColumnOption types.
ColumnPosition Types.
ColumnPosition Types.
ColumnPosition Types.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
ConstraintTypes.
ConstraintTypes.
ConstraintTypes.
ConstraintTypes.
ConstraintTypes.
ConstraintTypes.
ConstraintTypes.
ConstraintTypes.
ConstraintTypes.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
CrossJoin is cross join type.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
Database option types.
Database option types.
Database option types.
List scalar function names.
List scalar function names.
DateArithAdd is to run adddate or date_add function option.
DateArithSub is to run subdate or date_sub function option.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
Isolation level constants.
Valid formats for explain statement.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
Flags indicates whether an expression contains certain types of expression.
Flags indicates whether an expression contains certain types of expression.
Flags indicates whether an expression contains certain types of expression.
Flags indicates whether an expression contains certain types of expression.
Flags indicates whether an expression contains certain types of expression.
Flags indicates whether an expression contains certain types of expression.
Flags indicates whether an expression contains certain types of expression.
Flags indicates whether an expression contains certain types of expression.
Flags indicates whether an expression contains certain types of expression.
List scalar function names.
Flush statement types.
Flush statement types.
Flush statement types.
Flush statement types.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
get_lock() and release_lock() is parsed but do nothing.
List scalar function names.
List scalar function names.
GrantLevelDB means the privileges apply to all objects in a given database.
GrantLevelGlobal means the privileges are administrative or apply to all databases on a given server.
GrantLevelNone is the dummy const for default value.
GrantLevelTable means the privileges apply to all columns in a given table.
List scalar function names.
List scalar function names.
List scalar function names.
IndexHintUseType values.
Index hint scopes.
Index hint scopes.
Index hint scopes.
Index hint scopes.
IndexHintUseType values.
IndexHintUseType values.
List scalar function names.
control functions.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
Avoid name conflict with IsFalse in github/pingcap/check.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
Avoid name conflict with IsTrue in github/pingcap/check.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
json functions.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
LeftJoin is left Join type.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
Lock Types.
Lock Types.
Lock Types.
Lock Types.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
ObjectTypeNone is for empty object type.
ObjectTypeTable means the following object is a table.
List scalar function names.
List scalar function names.
OnDuplicateCreateTableSelect types.
OnDuplicateCreateTableSelect types.
OnDuplicateCreateTableSelect types.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
Isolation level constants.
Isolation level constants.
Refer option types.
Refer option types.
Refer option types.
Refer option types.
Refer option types.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
Isolation level constants.
List scalar function names.
List scalar function names.
List scalar function names.
RightJoin is right Join type.
List scalar function names.
List scalar function names.
List scalar function names.
RowFormat types.
RowFormat types.
RowFormat types.
RowFormat types.
RowFormat types.
RowFormat types.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
Select lock types.
Select lock types.
Select lock types.
Isolation level constants.
List scalar function names.
SetNames is the const for set names/charset stmt.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
ShowSlowKindAll is a ShowSlowKind constant.
ShowSlowKindDefault is a ShowSlowKind constant.
ShowSlowKindInternal is a ShowSlowKind constant.
ShowSlowRecent is a ShowSlowType constant.
ShowSlowTop is a ShowSlowType constant.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
Show statement types.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
TableOption types.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
TrimBoth trims from both direction with explicit notation.
TrimBothDefault trims from both direction by default.
TrimLeading trims from left.
TrimTrailing trims from right.
List scalar function names.
List scalar function names.
List scalar function names.
Avoid name conflict with Not in github/pingcap/check.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
# Variables
ExplainFormats stores the valid formats for explain statement, used by validator.
NewBitLiteral creates a types.BitLiteral value, it's provided by parser driver.
NewDecimal creates a types.Decimal value, it's provided by parser driver.
NewHexLiteral creates a types.HexLiteral value, it's provided by parser driver.
NewParamMarkerExpr creates a ParamMarkerExpr.
NewValueExpr creates a ValueExpr with value, and sets default field type.
# Structs
AdminStmt is the struct for Admin statement.
AggregateFuncExpr represents aggregate function expression.
AlterTableSpec represents alter table specification.
AlterTableStmt is a statement to change the structure of a table.
AlterUserStmt modifies user account.
AnalyzeTableStmt is used to create table statistics.
Assignment is the expression for assignment, like a = 1.
AuthOption is used for parsing create use statement.
BeginStmt is a statement to start a new transaction.
BetweenExpr is for "between and" or "not between and" expression.
BinaryOperationExpr is for binary operation like `1 + 1`, `1 - 1`, etc.
BinlogStmt is an internal-use statement.
ByItem represents an item in order by or group by.
CaseExpr is the case expression.
CharsetOpt is used for parsing charset option from SQL.
ColumnDef is used for parsing column definition from SQL.
ColumnName represents column name.
ColumnNameExpr represents a column name expression.
ColumnOption is used for parsing column constraint info from SQL.
ColumnPosition represent the position of the newly added column.
CommitStmt is a statement to commit the current transaction.
CompareSubqueryExpr is the expression for "expr cmp (select ...)".
Constraint is constraint for table definition.
CreateDatabaseStmt is a statement to create a database.
CreateIndexStmt is a statement to create an index.
CreateTableStmt is a statement to create a table.
CreateUserStmt creates user account.
CreateViewStmt is a statement to create a View.
DatabaseOption represents database option.
DeallocateStmt is a statement to release PreparedStmt.
DefaultExpr is the default expression using default value for a column.
DeleteStmt is a statement to delete rows from table.
DeleteTableList is the tablelist used in delete statement multi-table mode.
DoStmt is the struct for DO statement.
DropDatabaseStmt is a statement to drop a database and all tables in the database.
DropIndexStmt is a statement to drop the index.
DropStatsStmt is used to drop table statistics.
DropTableStmt is a statement to drop one or more tables.
DropUserStmt creates user account.
ExecuteStmt is a statement to execute PreparedStmt.
ExistsSubqueryExpr is the expression for "exists (select ...)".
ExplainStmt is a statement to provide information about how is SQL statement executed or get columns information in a table.
FieldList represents field list in select statement.
FieldsClause represents fields references clause in load data statement.
FloatOpt is used for parsing floating-point type option from SQL.
FlushStmt is a statement to flush tables/privileges/optimizer costs and so on.
FuncCallExpr is for function expression.
FuncCastExpr is the cast function converting value to another type, e.g, cast(expr AS signed).
GrantLevel is used for store the privilege scope.
GrantStmt is the struct for GRANT statement.
GroupByClause represents group by clause.
HandleRange represents a range where handle value >= Begin and < End.
HavingClause represents having clause.
Ident is the table identifier composed of schema name and table name.
IndexColName is used for parsing index column name from SQL.
IndexHint represents a hint for optimizer to use/ignore/force for join/order by/group by.
IndexOption is the index options.
InsertStmt is a statement to insert new rows into an existing table.
IsNullExpr is the expression for null check.
IsTruthExpr is the expression for true/false check.
Join represents table join.
KillStmt is a statement to kill a query or connection.
Limit is the limit clause.
LinesClause represents lines references clause in load data statement.
LoadDataStmt is a statement to load data from a specified file, then insert this rows into an existing table.
LoadStatsStmt is the statement node for loading statistic.
MaxValueExpr is the expression for "maxvalue" used in partition.
OnCondition represents JOIN on condition.
OnDeleteOpt is used for optional on delete clause.
OnUpdateOpt is used for optional on update clause.
OptBinary is used for parser.
OrderByClause represents order by clause.
ParenthesesExpr is the parentheses expression.
PartitionDefinition defines a single partition.
PartitionOptions specifies the partition options.
PatternInExpr is the expression for in operator, like "expr in (1, 2, 3)" or "expr in (select c from t)".
PatternLikeExpr is the expression for like operator, e.g, expr like "%123%".
PatternRegexpExpr is the pattern expression for pattern match.
PositionExpr is the expression for order by and group by position.
Prepared represents a prepared statement.
PrepareStmt is a statement to prepares a SQL statement which contains placeholders, and it is executed with ExecuteStmt and released with DeallocateStmt.
PrivElem is the privilege type and optional column list.
ReferenceDef is used for parsing foreign key reference option from SQL.
RenameTableStmt is a statement to rename a table.
ResultField represents a result field which can be a column from a table, or an expression in select field.
RevokeStmt is the struct for REVOKE statement.
RollbackStmt is a statement to roll back the current transaction.
RowExpr is the expression for row constructor.
SelectField represents fields in select statement.
SelectStmt represents the select query node.
SelectStmtOpts wrap around select hints and switches.
SetPwdStmt is a statement to assign a password to user account.
SetStmt is the statement to set variables.
ShowSlow is used for the following command: admin show slow top [ internal | all] N admin show slow recent N.
ShowStmt is a statement to provide information about databases, tables, columns and so on.
SubqueryExpr represents a subquery.
TableName represents a table name.
TableOptimizerHint is Table level optimizer hint.
TableOption is used for parsing table option from SQL.
TableRefsClause represents table references clause in dml statement.
TableSource represents table source with a name.
TableToTable represents renaming old table to new table used in RenameTableStmt.
TraceStmt is a statement to trace what sql actually does at background.
TruncateTableStmt is a statement to empty a table completely.
TypeOpt is used for parsing data type option from SQL.
UnaryOperationExpr is the expression for unary operator.
UnionSelectList represents the select list in a union statement.
UnionStmt represents "union statement" See https://dev.mysql.com/doc/refman/5.7/en/union.html.
UpdateStmt is a statement to update columns of existing rows in tables with new values.
UserSpec is used for parsing create user statement.
UseStmt is a statement to use the DBName database as the current database.
ValuesExpr is the expression used in INSERT VALUES.
VariableAssignment is a variable assignment struct.
VariableExpr is the expression for variable.
WhenClause is the when clause in Case expression for "when condition then result".
WildCardField is a special type of select field content.
# Interfaces
DDLNode represents DDL statement node.
DMLNode represents DML statement node.
ExprNode is a node that can be evaluated.
FuncNode represents function call expression node.
Node is the basic element of the AST.
ParamMarkerExpr expression holds a place for another expression.
ResultSetNode interface has a ResultFields property, represents a Node that returns result set.
SensitiveStmtNode overloads StmtNode and provides a SecureText method.
StmtNode represents statement node.
ValueExpr define a interface for ValueExpr.
Visitor visits a Node.
# Type aliases
AdminStmtType is the type for admin statement.
AlterTableType is the type for AlterTableSpec.
CastFunctionType is the type for cast function.
ColumnOptionType is the type for ColumnOption.
ColumnPositionType is the type for ColumnPosition.
ConstraintType is the type for Constraint.
DatabaseOptionType is the type for database options.
DateArithType is type for DateArith type.
FlushStmtType is the type for FLUSH statement.
GrantLevelType is the type for grant level.
IndexHintScope is the type for index hint for join, order by or group by.
IndexHintType is the type for index hint use, ignore or force.
JoinType is join type, including cross/left/right/full.
LockType is the type for AlterTableSpec.
ObjectTypeType is the type for object type.
OnDuplicateCreateTableSelectType is the option that handle unique key values in 'CREATE TABLE ..
ReferOptionType is the type for refer options.
SelectLockType is the lock type for SelectStmt.
ShowSlowKind defines the kind for SlowSlow statement when the type is ShowSlowTop.
ShowSlowType defines the type for SlowSlow statement.
ShowStmtType is the type for SHOW statement.
TableOptionType is the type for TableOption.
TexprNode is exported for parser driver.
TrimDirectionType is the type for trim direction.