Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoIndexAvb = errors.New("no index available to satisfy the WHERE query")
View Source
var ErrNoTable = errors.New("could not identify table in EXPLAIN output")
Functions ¶
func FoldExpression ¶
FoldExpression returns modified query by replacing the occurrences of non-deterministic functions with deterministic values in the query.
func ParseSelect ¶
func ParseSelect(query string) (*ast.SelectStmt, error)
ParseSelect parses the given SQL query as a SELECT statement and returns AST (Abstract syntax tree) node if there is no error.
Types ¶
type FoldableFnX ¶
type FoldableFnX struct {
// contains filtered or unexported fields
}
FoldableFnX extracts foldableFns from AST node of a parsed SQL query.
Click to show internal directories.
Click to hide internal directories.