sql2es

package
v0.5.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeletedFilter = sqlparser.ComparisonExpr{
	Operator: sqlparser.EqualStr,
	Left:     &sqlparser.ColName{Name: sqlparser.NewColIdent("deleted")},
	Right:    sqlparser.NewStrVal([]byte("false")),
}

Functions

func Convert

func Convert(sql string) (dsl, table string, err error)

func ConvertWithDefaultFilter added in v0.5.5

func ConvertWithDefaultFilter(sql string, filter sqlparser.Expr) (dsl, table string, err error)

ConvertWithDefaultFilter appends the filter to sql where clause if the filter column names have no intersection with where clause.

Types

This section is empty.

Jump to

Keyboard shortcuts

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