conds

package
v0.0.0-...-da1d25d Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition func(row backend.Row) bool

func And

func And(left Condition, right Condition) Condition

func Eq

func Eq(columnName string, value types.TypedValue) Condition

func Gt

func Gt(columnName string, value types.TypedValue) Condition

func Gte

func Gte(columnName string, value types.TypedValue) Condition

func In

func In(columnName string, inValues ...types.TypedValue) Condition

func Lt

func Lt(columnName string, value types.TypedValue) Condition

func Lte

func Lte(columnName string, value types.TypedValue) Condition

func Not

func Not(val Condition) Condition

func NotEq

func NotEq(columnName string, value types.TypedValue) Condition

func Or

func Or(left Condition, right Condition) Condition

type JoinCondition

type JoinCondition interface {
	Match(left backend.Row, right backend.Row) bool
	ColumnsHint(row backend.Row) string
}

func On

func On(column string, moreColumns ...string) JoinCondition

Jump to

Keyboard shortcuts

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