Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SimplifyExpr ¶
func SimplifyStatement ¶
func SimplifyStatement( in sqlparser.SelectStatement, currentDB string, si semantics.SchemaInformation, testF func(sqlparser.SelectStatement) bool, ) sqlparser.SelectStatement
SimplifyStatement simplifies the AST of a query. It basically iteratively prunes leaves of the AST, as long as the pruning continues to return true from the `test` function.
Types ¶
Click to show internal directories.
Click to hide internal directories.