op

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(op Operator) bool

Types

type Operator

type Operator string
const (
	// =
	Eq Operator = "eq"
	// !=
	Neq Operator = "neq"
	// IN (...)
	In Operator = "in"
	// NOT IN (...)
	Nin Operator = "nin"

	// >
	Gt Operator = "gt"
	// >=
	Gte Operator = "gte"
	// <
	Lt Operator = "lt"
	// <=
	Lte Operator = "lte"

	// LIKE
	Like Operator = "like"
	// NOT LIKE
	NLike Operator = "nlike"
	// left <= v <= right
	Btw Operator = "btw"
	// v < left OR v > right
	Nbtw Operator = "nbtw"
	// left >= now() - INTERVAL right
	Inlast Operator = "inlast"

	// IS NULL
	Null Operator = "null"

	// IS NOT NULL
	Nnull Operator = "nnull"
)

Jump to

Keyboard shortcuts

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