where

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IN        = "IN"
	NotIN     = "NOT IN"
	BETWEEN   = "BETWEEN"
	LIKE      = "LIKE"
	IsNULL    = "IS NULL"
	IsNotNULL = "IS NOT NULL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Where

type Where struct {
	Column    string
	Condition string
	V1        interface{}
	V2        interface{}
	Or        bool
}

func (*Where) Build

func (w *Where) Build() (string, []interface{})

type Wheres

type Wheres struct {
	Wheres []*Where
	// contains filtered or unexported fields
}

func And added in v0.3.0

func And() *Wheres

func Or added in v0.3.0

func Or() *Wheres

func (*Wheres) Between added in v0.3.0

func (w *Wheres) Between(column string, v1, v2 interface{}) *Wheres

func (*Wheres) Eq added in v0.3.0

func (w *Wheres) Eq(column string, value interface{}) *Wheres

func (*Wheres) Gt added in v0.3.0

func (w *Wheres) Gt(column string, value interface{}) *Wheres

func (*Wheres) Gte added in v0.3.0

func (w *Wheres) Gte(column string, value interface{}) *Wheres

func (*Wheres) In added in v0.3.0

func (w *Wheres) In(column string, value interface{}) *Wheres

func (*Wheres) IsNotNull added in v0.3.0

func (w *Wheres) IsNotNull(column string) *Wheres

func (*Wheres) IsNull added in v0.3.0

func (w *Wheres) IsNull(column string) *Wheres

func (*Wheres) Like added in v0.3.0

func (w *Wheres) Like(column string, value interface{}) *Wheres

func (*Wheres) Lt added in v0.3.0

func (w *Wheres) Lt(column string, value interface{}) *Wheres

func (*Wheres) Lte added in v0.3.0

func (w *Wheres) Lte(column string, value interface{}) *Wheres

func (*Wheres) Neq added in v0.3.0

func (w *Wheres) Neq(column string, value interface{}) *Wheres

func (*Wheres) NotIn added in v0.3.0

func (w *Wheres) NotIn(column string, value interface{}) *Wheres

Jump to

Keyboard shortcuts

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