operator

package
v0.0.0-...-fad53ba Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operator

type Operator string

An Operator inside an SQL WHERE clause

const (
	Equals         Operator = "="
	NotEquals      Operator = "!="
	Greater        Operator = ">"
	GreaterOrEqual Operator = ">="
	Lower          Operator = "<"
	LowerOrEqual   Operator = "<="
	Like           Operator = "=like"
	Contains       Operator = "like"
	NotContains    Operator = "not like"
	IContains      Operator = "ilike"
	NotIContains   Operator = "not ilike"
	ILike          Operator = "=ilike"
	In             Operator = "in"
	NotIn          Operator = "not in"
	ChildOf        Operator = "child_of"
)

Operators

func (Operator) IsMulti

func (o Operator) IsMulti() bool

IsMulti returns true if the operator expects a array as arguments

func (Operator) IsNegative

func (o Operator) IsNegative() bool

IsNegative returns true if this is a negative operator

func (Operator) IsPositive

func (o Operator) IsPositive() bool

IsPositive returns true if this is a positive operator

func (Operator) IsValid

func (o Operator) IsValid() bool

IsValid returns true if o is a known operator.

Jump to

Keyboard shortcuts

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