simplifier

package
v0.19.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SimplifyExpr

func SimplifyExpr(in sqlparser.Expr, test CheckF) sqlparser.Expr

func SimplifyStatement

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

type CheckF

type CheckF = func(sqlparser.Expr) bool

CheckF is used to see if the given expression exhibits the sought after issue

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL