package
2.1.0-alpha.1+incompatible
Repository: https://github.com/gitql/vitess.git
Documentation: pkg.go.dev
# Functions
AsInterface converts the ValExpr to an interface.
EncodeValue encodes one bind variable value into the query.
FetchBindVar resolves the bind variable by fetching it from bindVariables.
GenerateParsedQuery returns a ParsedQuery of the ast.
GetTableName returns the table name from the SimpleTableExpr only if it's a simple expression.
IsColName returns true if the ValExpr is a *ColName.
IsNull returns true if the ValExpr is SQL NULL.
IsSimpleTuple returns true if the ValExpr is a ValTuple that contains simple values or if it's a list arg.
IsValue returns true if the ValExpr is a string, number or value arg.
NewColIdent makes a new ColIdent.
NewStringTokenizer creates a new Tokenizer for the sql string.
NewTrackedBuffer creates a new TrackedBuffer.
NewWhere creates a WHERE or HAVING clause out of a BoolExpr.
Parse parses the sql and returns a Statement, which is the AST representation of the query.
SplitTrailingComments splits the query trailing comments from the query.
String returns a string representation of an SQLNode.
StringIn is a convenience function that returns true if str matches any of the values.
Walk calls visit on every node.
# Constants
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.
No description provided by the author
RangeCond.Operator.
BinaryExpr.Operator.
BinaryExpr.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
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
Order.Direction.
No description provided by the author
Select.Distinct.
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
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
Where.Type.
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
ComparisonExpr.Operator.
No description provided by the author
No description provided by the author
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
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
BinaryExpr.Operator.
BinaryExpr.Operator.
BinaryExpr.Operator.
No description provided by the author
JoinTableExpr.Join.
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
BinaryExpr.Operator.
No description provided by the author
ComparisonExpr.Operator.
No description provided by the author
DDL strings.
No description provided by the author
JoinTableExpr.Join.
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
No description provided by the author
Select.Distinct.
JoinTableExpr.Join.
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
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
No description provided by the author
No description provided by the author
No description provided by the author
Where.Type.
# Variables
Aggregates is a map of all aggregate functions.
# Structs
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.
ColName represents a column name.
ComparisonExpr represents a two-value comparison expression.
DDL represents a CREATE, ALTER, DROP or RENAME statement.
Delete represents a DELETE statement.
ExistsExpr represents an EXISTS expression.
FuncExpr represents a function call.
IndexHints represents a list of index hints.
Insert represents an INSERT 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.
Nextval defines the NEXT VALUE expression.
NonStarExpr defines a non-'*' select expr.
NotExpr represents a NOT expression.
NullVal represents a NULL value.
Order represents an ordering expression.
OrExpr represents an OR expression.
Other represents a SHOW, DESCRIBE, or EXPLAIN statement.
ParenBoolExpr represents a parenthesized boolean expression.
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.
StarExpr defines a '*' or 'table.*' expression.
Subquery represents a subquery.
TableName represents a table name.
Tokenizer is the struct used to generate SQL tokens for the parser.
TrackedBuffer is used to rebuild a query from the ast.
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.
When represents a WHEN sub-expression.
Where represents a WHERE or HAVING clause.
# Interfaces
BoolExpr represents a boolean expression.
ColTuple represents a list of column values.
Expr represents an expression.
InsertRows represents the rows for an INSERT statement.
RowTuple represents a row of values.
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.
ValExpr represents a value expression.
# Type aliases
BoolVal is true or false.
ColIdent is a case insensitive SQL identifier.
Columns represents an insert column list.
Comments represents a list of comments.
GroupBy represents a GROUP BY clause.
ListArg represents a named list argument.
NumVal represents a number.
OnDup represents an ON DUPLICATE KEY clause.
OrderBy represents an ORDER By clause.
SelectExprs represents SELECT expressions.
StrVal represents a string value.
TableExprs represents a list of table expressions.
TableIdent is a case sensitive SQL identifier.
UpdateExprs represents a list of update expressions.
ValArg represents a named bind var argument.
ValExprs represents a list of value expressions.
ValTuple represents a tuple of actual values.
Values represents a VALUES clause.
Visit defines the signature of a function that can be used to visit all nodes of a parse tree.