package
0.0.0-20241212002435-a4aaf8ca5232
Repository: https://github.com/chrislusf/gleam.git
Documentation: pkg.go.dev
# Functions
HasAggFlag checks if the expr contains FlagHasAggregateFunc.
NewValueExpr creates a ValueExpr with value, and sets default field type.
SetFlag sets flag for expression.
# Constants
math functions.
List scalar function names.
Admin statement types.
Admin statement types.
AggFuncAvg is the name of Avg 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.
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.
List scalar function names.
List scalar function names.
string functions.
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.
common functions.
ColumnOption types.
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.
ColumnOption types.
ColumnPosition Types.
ColumnPosition Types.
ColumnPosition Types.
List scalar function names.
List scalar function names.
information functions.
ConstraintTypes.
ConstraintTypes.
ConstraintTypes.
ConstraintTypes.
ConstraintTypes.
ConstraintTypes.
ConstraintTypes.
ConstraintTypes.
ConstraintTypes.
List scalar function names.
List scalar function names.
List scalar function names.
CrossJoin is cross join type.
time 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.
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.
Priority const values.
List scalar function names.
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.
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.
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.
Priority const values.
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.
Avoid name conflict with IsFalse in github/pingcap/check.
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.
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.
List scalar function names.
List scalar function names.
Priority const values.
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.
Priority const values.
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.
List scalar function names.
List scalar function names.
List scalar function names.
List scalar function names.
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.
List scalar function names.
RightJoin is right Join type.
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.
Select lock types.
Select lock types.
Select lock types.
SetNames is the const for set names/charset stmt.
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.
Show statement types.
List scalar function names.
miscellaneous 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.
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.
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.
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.
# 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.
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.
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.
FlushTableStmt is the statement to flush table.
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.
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.
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.
OnCondition represetns JOIN on condition.
OnDeleteOpt is used for optional on delete clause.
OnUpdateOpt is used for optional on update clause.
OrderByClause represents order by clause.
ParamMarkerExpr expression holds a place for another expression.
ParenthesesExpr is the parentheses expression.
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.
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.
RollbackStmt is a statement to roll back the current transaction.
Row represents a single row from Recordset.
RowExpr is the expression for row constructor.
SelectField represents fields in select statement.
SelectStmt represents the select query node.
SetPwdStmt is a statement to assign a password to user account.
SetStmt is the statement to set variables.
ShowStmt is a statement to provide information about databases, tables, columns and so on.
SubqueryExpr represents a subquery.
TableName represents a table name.
TableOption is used for parsing table option from SQL.
TableRefsClause represents table references clause in dml statement.
TableSource represents table source with a name.
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.
ValueExpr is the simple value expression.
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.
RecordSet is an abstract result set interface to help get data from Plan.
The ResultSetNode interface has a ResultFields property, represents a Node that returns result set.
Statement is an interface for SQL execution.
StmtNode represents statement node.
SubqueryExec represents a subquery executor interface.
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.
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.
ObjectTypeType is the type for object type.
ReferOptionType is the type for refer options.
SelectLockType is the lock type for SelectStmt.
ShowStmtType is the type for SHOW statement.
TableOptionType is the type for TableOption.
TrimDirectionType is the type for trim direction.