package
0.0.0-20231024203815-ed4090f26a95
Repository: https://github.com/andrewlouisx/pgproxy.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
AsInterface converts the ValExpr to an interface.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetColName returns the column name, only if it's a simple expression.
Get ColumnDefinition by name, sqlNode must be a CreateTable struct.
Get the primary key ColumnDefinition of the table, sqlNode must be a CreateTable struct.
GetQueryModificada calllback.
GetTableName returns the table name from the SimpleTableExpr only if it's a simple expression.
HasINCaluse returns true if any of the conditions has an IN clause.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsColName returns true if the ValExpr is a *ColName.
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.
NewStringTokenizer creates a new Tokenizer for the sql string.
No description provided by the author
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.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
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 returns a string representation of an SQLNode.
StringIn is a convenience function that returns true if str matches any of the values.
# 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
Order.Direction.
No description provided by the author
RangeCond.Operator.
No description provided by the author
datatypes.
BinaryExpr.Operator.
BinaryExpr.Operator.
BinaryExpr.Operator.
No description provided by the author
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
Order.Direction.
Select.Distinct.
BinaryExpr.Operator.
No description provided by the author
No description provided by the author
ComparisonExpr.Operator.
Union.Type.
No description provided by the author
Select.Lock.
No description provided by the author
ComparisonExpr.Operator.
ComparisonExpr.Operator.
Where.Type.
No description provided by the author
ComparisonExpr.Operator.
No description provided by the author
No description provided by the author
Union.Type.
NullCheck.Operator.
NullCheck.Operator.
JoinTableExpr.Join.
No description provided by the author
ComparisonExpr.Operator.
JoinTableExpr.Join.
ComparisonExpr.Operator.
ComparisonExpr.Operator.
No description provided by the author
BinaryExpr.Operator.
BinaryExpr.Operator.
BinaryExpr.Operator.
JoinTableExpr.Join.
ComparisonExpr.Operator.
RangeCond.Operator.
ComparisonExpr.Operator.
ComparisonExpr.Operator.
No description provided by the author
ComparisonExpr.Operator.
No description provided by the author
BinaryExpr.Operator.
No description provided by the author
No description provided by the author
No description provided by the author
JoinTableExpr.Join.
Union.Type.
Select.Lock.
No description provided by the author
JoinTableExpr.Join.
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.
Union.Type.
Union.Type.
No description provided by the author
other keywords.
UnaryExpr.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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
Aggregates is a map of all aggregate functions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# 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.
No description provided by the author
ComparisonExpr represents a two-value comparison expression.
No description provided by the author
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.
JoinTableExpr represents a TableExpr that's a JOIN operation.
Limit represents a LIMIT clause.
NonStarExpr defines a non-'*' select expr.
NotExpr represents a NOT expression.
NullCheck represents an IS NULL or an IS NOT NULL 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 TableExpr.
No description provided by the author
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.
No description provided by the author
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
No description provided by the author
No description provided by the author
Columns represents an insert column list.
Comments represents a list of comments.
No description provided by the author
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.
No description provided by the author
SelectExprs represents SELECT expressions.
StrVal represents a string value.
TableExprs represents a list of table expressions.
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.