# Functions
Append appends the SQLNode to the buffer.
Backtick produces a backticked literal given an input string.
BuildParsedQuery builds a ParsedQuery from the input.
GenerateParsedQuery returns a ParsedQuery of the ast.
NewColIdent makes a new ColIdent.
NewFloatVal builds a new FloatVal.
NewHexNum builds a new HexNum.
NewHexVal builds a new HexVal.
NewIntVal builds a new IntVal.
NewStringTokenizer creates a new Tokenizer for the sql string.
NewStrVal builds a new StrVal.
NewTableIdent creates a new TableIdent.
NewTrackedBuffer creates a new TrackedBuffer.
NewValArg builds a new ValArg.
NewWhere creates a WHERE or HAVING clause out of a Expr.
Parse parses the sql and returns a Statement, which is the AST representation of the query.
String returns a string representation of an SQLNode.
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
DDL strings.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Order.Direction.
UnaryExpr.Operator.
No description provided by the author
RangeCond.Operator.
No description provided by the author
UnaryExpr.Operator.
BinaryExpr.Operator.
BinaryExpr.Operator.
BinaryExpr.Operator.
No description provided by the author
MatchExpr.Option.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
this string is "character set" and this comment is required.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
For Timestamp and Datetime only.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DDL strings.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Order.Direction.
No description provided by the author
Select.Distinct.
No description provided by the author
BinaryExpr.Operator.
No description provided by the author
DDL strings.
No description provided by the author
No description provided by the author
No description provided by the author
ComparisonExpr.Operator.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
These are the possible Valtype values.
No description provided by the author
No description provided by the author
Index hints.
Select.Lock.
No description provided by the author
No description provided by the author
ComparisonExpr.Operator.
ComparisonExpr.Operator.
No description provided by the author
No description provided by the author
No description provided by the author
Where.Type.
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
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
DDL strings.
ComparisonExpr.Operator.
BinaryExpr.Operator.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
These are the possible Valtype values.
No description provided by the author
IsExpr.Operator.
IsExpr.Operator.
IsExpr.Operator.
IsExpr.Operator.
IsExpr.Operator.
IsExpr.Operator.
No description provided by the author
JoinTableExpr.Join.
No description provided by the author
No description provided by the author
ComparisonExpr.Operator.
ComparisonExpr.Operator.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
JoinTableExpr.Join.
ComparisonExpr.Operator.
ComparisonExpr.Operator.
No description provided by the author
No description provided by the author
ComparisonExpr.Operator.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BinaryExpr.Operator.
No description provided by the author
No description provided by the author
BinaryExpr.Operator.
BinaryExpr.Operator.
No description provided by the author
JoinTableExpr.Join.
MatchExpr.Option.
MatchExpr.Option.
JoinTableExpr.Join.
JoinTableExpr.Join.
No description provided by the author
No description provided by the author
No description provided by the author
RangeCond.Operator.
ComparisonExpr.Operator.
ComparisonExpr.Operator.
ComparisonExpr.Operator.
ComparisonExpr.Operator.
No description provided by the author
No description provided by the author
ComparisonExpr.Operator.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BinaryExpr.Operator.
No description provided by the author
MatchExpr.Option.
No description provided by the author
ComparisonExpr.Operator.
No description provided by the author
DDL strings.
No description provided by the author
No description provided by the author
DDL strings.
No description provided by the author
JoinTableExpr.Join.
RowFormat types.
RowFormat types.
RowFormat types.
RowFormat types.
RowFormat types.
RowFormat types.
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.Lock.
No description provided by the author
No description provided by the author
BinaryExpr.Operator.
BinaryExpr.Operator.
No description provided by the author
The frollowing constants represent SHOW statements.
The frollowing constants represent SHOW statements.
The frollowing constants represent SHOW statements.
The frollowing constants represent SHOW statements.
The frollowing constants represent SHOW statements.
The frollowing constants represent SHOW statements.
No description provided by the author
No description provided by the author
Select.Cache.
Select.Cache.
No description provided by the author
Select.Distinct.
JoinTableExpr.Join.
No description provided by the author
These are the possible Valtype values.
No description provided by the author
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.
No description provided by the author
No description provided by the author
UnaryExpr.Operator.
No description provided by the author
No description provided by the author
No description provided by the author
UnaryExpr.Operator.
No description provided by the author
No description provided by the author
Union.Type.
Union.Type.
Union.Type.
No description provided by the author
No description provided by the author
No description provided by the author
UnaryExpr.Operator.
No description provided by the author
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
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
No description provided by the author
No description provided by the author
Where.Type.
No description provided by the author
# Variables
Aggregates is a map of all aggregate functions.
# Structs
AliasedExpr defines an aliased SELECT expression.
AliasedTableExpr represents a table expression coupled with an optional alias or index hint.
AndExpr represents an AND expression.
BinaryExpr represents a binary value expression.
CaseExpr represents a CASE expression.
ColIdent is a case insensitive SQL identifier.
CollateExpr represents dynamic collate operator.
ColName represents a column name.
No description provided by the author
ColumnOption is used for parsing column constraint info from SQL.
ComparisonExpr represents a two-value comparison expression.
Constraint is constraint for table definition.
ConvertExpr represents a call to CONVERT(expr, type) or it's equivalent CAST(expr AS type).
ConvertType represents the type in call to CONVERT(expr, type).
ConvertUsingExpr represents a call to CONVERT(expr USING charset).
No description provided by the author
DDL represents a CREATE, ALTER, DROP or RENAME statement.
Default represents a DEFAULT expression.
Delete represents a DELETE statement.
ExistsExpr represents an EXISTS expression.
FuncExpr represents a function call.
GroupConcatExpr represents a call to GROUP_CONCAT.
IndexHints represents a list of index hints.
Insert represents an INSERT or REPLACE statement.
IntervalExpr represents a date-time INTERVAL expression.
IsExpr represents an IS ..
JoinTableExpr represents a TableExpr that's a JOIN operation.
Limit represents a LIMIT clause.
MatchExpr represents a call to the MATCH function.
Nextval defines the NEXT VALUE expression.
NotExpr represents a NOT expression.
NullVal represents a NULL value.
Order represents an ordering expression.
OrExpr represents an OR expression.
OtherAdmin represents a misc statement that relies on ADMIN privileges, such as REPAIR, OPTIMIZE, or TRUNCATE statement.
OtherRead represents a DESCRIBE, or EXPLAIN statement.
ParenExpr represents a parenthesized boolean expression.
ParenSelect is a parenthesized SELECT statement.
ParenTableExpr represents a parenthesized list of TableExpr.
ParsedQuery represents a parsed query where bind locations are precompued for fast substitutions.
RangeCond represents a BETWEEN or a NOT BETWEEN expression.
Select represents a SELECT statement.
Set represents a SET statement.
Show represents a show statement.
SQLVal represents a single value.
StarExpr defines a '*' or 'table.*' expression.
Subquery represents a subquery.
TableIdent is a case sensitive SQL identifier.
TableName represents a table name.
No description provided by the author
Tokenizer is the struct used to generate SQL tokens for the parser.
TrackedBuffer is used to rebuild a query from the ast.
No description provided by the author
TupleEqualityList is for generating equality constraints for tables that have composite primary keys.
UnaryExpr represents a unary value expression.
Union represents a UNION statement.
Update represents an UPDATE statement.
UpdateExpr represents an update expression.
Use represents a use statement.
ValuesFuncExpr represents a function call.
When represents a WHEN sub-expression.
Where represents a WHERE or HAVING clause.
# Interfaces
ColTuple represents a list of column values.
Encodable defines the interface for types that can be custom-encoded into SQL.
Expr represents an expression.
InsertRows represents the rows for an INSERT statement.
SelectExpr represents a SELECT expression.
SelectStatement any SELECT statement.
SimpleTableExpr represents a simple table expression.
SQLNode defines the interface for all nodes generated by the parser.
Statement represents a statement.
TableExpr represents a table expression.
# Type aliases
BoolVal is true or false.
ColumnOptionType is the type for ColumnOption.
Columns represents an insert column list.
Comments represents a list of comments.
No description provided by the author
Exprs represents a list of value expressions.
GroupBy represents a GROUP BY clause.
InsertValues is a custom SQL encoder for the values of an insert statement.
ListArg represents a named list argument.
OnDup represents an ON DUPLICATE KEY clause.
OrderBy represents an ORDER By clause.
RowFormatType is the type for RowFormat.
SelectExprs represents SELECT expressions.
TableExprs represents a list of table expressions.
TableNames is a list of TableName.
No description provided by the author
UpdateExprs represents a list of update expressions.
ValTuple represents a tuple of actual values.
ValType specifies the type for SQLVal.
Values represents a VALUES clause.
Visit defines the signature of a function that can be used to visit all nodes of a parse tree.