condition

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type And

type And []Condition

func (And) Build

func (ac And) Build() (sql string, args []interface{})

type BeginWith

type BeginWith struct {
	Field string `json:"field"`
	Words string `json:"words"`
}

func (BeginWith) Build

func (b BeginWith) Build() (sql string, args []interface{})

type Between

type Between struct {
	Field string      `json:"field"`
	Start interface{} `json:"start"`
	End   interface{} `json:"end"`
}

func (Between) Build

func (b Between) Build() (sql string, args []interface{})

type Condition

type Condition interface {
	Build() (sql string, args []interface{})
}

type Contains

type Contains struct {
	Field string `json:"field"`
	Words string `json:"words"`
}

func (Contains) Build

func (c Contains) Build() (sql string, args []interface{})

type Empty

type Empty struct {
	Field string `json:"field"`
}

func (Empty) Build

func (e Empty) Build() (sql string, args []interface{})

type Equal

type Equal struct {
	Field string
	Value interface{}
}

func (Equal) Build

func (e Equal) Build() (sql string, args []interface{})

type Gt

type Gt struct {
	Field string      `json:"field"`
	Value interface{} `json:"value"`
}

func (Gt) Build

func (g Gt) Build() (sql string, args []interface{})

type Gte

type Gte struct {
	Field string      `json:"field"`
	Value interface{} `json:"value"`
}

func (Gte) Build

func (g Gte) Build() (sql string, args []interface{})

type In

type In struct {
	Field string `json:"field"`
	Value Values `json:"value"`
}

func (In) Build

func (i In) Build() (sql string, args []interface{})

type Int16In added in v1.2.27

type Int16In struct {
	Field string  `json:"field"`
	Value []int16 `json:"value"`
}

func (Int16In) Build added in v1.2.27

func (i16i Int16In) Build() (sql string, args []interface{})

type Int32In added in v1.2.27

type Int32In struct {
	Field string  `json:"field"`
	Value []int32 `json:"value"`
}

func (Int32In) Build added in v1.2.27

func (i32i Int32In) Build() (sql string, args []interface{})

type Int64In added in v1.2.27

type Int64In struct {
	Field string  `json:"field"`
	Value []int64 `json:"value"`
}

func (Int64In) Build added in v1.2.27

func (ii Int64In) Build() (sql string, args []interface{})

type Int8In added in v1.2.27

type Int8In struct {
	Field string `json:"field"`
	Value []int8 `json:"value"`
}

func (Int8In) Build added in v1.2.27

func (i8i Int8In) Build() (sql string, args []interface{})

type IntIn added in v1.2.27

type IntIn struct {
	Field string `json:"field"`
	Value []int  `json:"value"`
}

func (IntIn) Build added in v1.2.27

func (ii IntIn) Build() (sql string, args []interface{})

type Lt

type Lt struct {
	Field string      `json:"field"`
	Value interface{} `json:"value"`
}

func (Lt) Build

func (l Lt) Build() (sql string, args []interface{})

type Lte

type Lte struct {
	Field string      `json:"field"`
	Value interface{} `json:"value"`
}

func (Lte) Build

func (l Lte) Build() (sql string, args []interface{})

type Not

type Not struct {
	Condition Condition
}

func (Not) Build

func (n Not) Build() (sql string, args []interface{})

type NotEmpty

type NotEmpty struct {
	Field string `json:"field"`
}

func (NotEmpty) Build

func (ne NotEmpty) Build() (sql string, args []interface{})

type NotEqual

type NotEqual struct {
	Field string
	Value interface{}
}

func (NotEqual) Build

func (ne NotEqual) Build() (sql string, args []interface{})

type NotIn

type NotIn struct {
	Field string `json:"field"`
	Value Values `json:"value"`
}

func (NotIn) Build

func (ni NotIn) Build() (sql string, args []interface{})

type NotInt16In added in v1.2.27

type NotInt16In struct {
	Field string  `json:"field"`
	Value []int16 `json:"value"`
}

func (NotInt16In) Build added in v1.2.27

func (ni16i NotInt16In) Build() (sql string, args []interface{})

type NotInt32In added in v1.2.27

type NotInt32In struct {
	Field string  `json:"field"`
	Value []int32 `json:"value"`
}

func (NotInt32In) Build added in v1.2.27

func (ni32i NotInt32In) Build() (sql string, args []interface{})

type NotInt64In added in v1.2.27

type NotInt64In struct {
	Field string  `json:"field"`
	Value []int64 `json:"value"`
}

func (NotInt64In) Build added in v1.2.27

func (ni64i NotInt64In) Build() (sql string, args []interface{})

type NotInt8In added in v1.2.27

type NotInt8In struct {
	Field string `json:"field"`
	Value []int8 `json:"value"`
}

func (NotInt8In) Build added in v1.2.27

func (ni8i NotInt8In) Build() (sql string, args []interface{})

type NotIntIn added in v1.2.27

type NotIntIn struct {
	Field string `json:"field"`
	Value []int  `json:"value"`
}

func (NotIntIn) Build added in v1.2.27

func (nii NotIntIn) Build() (sql string, args []interface{})

type NotNull

type NotNull struct {
	Field string `json:"field"`
}

func (NotNull) Build

func (nn NotNull) Build() (sql string, args []interface{})

type NotStringIn added in v1.2.27

type NotStringIn struct {
	Field string   `json:"field"`
	Value []string `json:"value"`
}

func (NotStringIn) Build added in v1.2.27

func (nsi NotStringIn) Build() (sql string, args []interface{})

type NotUint16In added in v1.2.27

type NotUint16In struct {
	Field string   `json:"field"`
	Value []uint16 `json:"value"`
}

func (NotUint16In) Build added in v1.2.27

func (nu16i NotUint16In) Build() (sql string, args []interface{})

type NotUint32In added in v1.2.27

type NotUint32In struct {
	Field string   `json:"field"`
	Value []uint32 `json:"value"`
}

func (NotUint32In) Build added in v1.2.27

func (nu32i NotUint32In) Build() (sql string, args []interface{})

type NotUint64In added in v1.2.27

type NotUint64In struct {
	Field string   `json:"field"`
	Value []uint64 `json:"value"`
}

func (NotUint64In) Build added in v1.2.27

func (nu64i NotUint64In) Build() (sql string, args []interface{})

type NotUint8In added in v1.2.27

type NotUint8In struct {
	Field string  `json:"field"`
	Value []uint8 `json:"value"`
}

func (NotUint8In) Build added in v1.2.27

func (nu8i NotUint8In) Build() (sql string, args []interface{})

type NotUintIn added in v1.2.27

type NotUintIn struct {
	Field string `json:"field"`
	Value []uint `json:"value"`
}

func (NotUintIn) Build added in v1.2.27

func (nui NotUintIn) Build() (sql string, args []interface{})

type Null

type Null struct {
	Field string `json:"field"`
}

func (Null) Build

func (n Null) Build() (sql string, args []interface{})

type Or

type Or []Condition

func (Or) Build

func (oc Or) Build() (sql string, args []interface{})

type StringIn added in v1.2.27

type StringIn struct {
	Field string   `json:"field"`
	Value []string `json:"value"`
}

func (StringIn) Build added in v1.2.27

func (si StringIn) Build() (sql string, args []interface{})

type Uint16In added in v1.2.27

type Uint16In struct {
	Field string   `json:"field"`
	Value []uint16 `json:"value"`
}

func (Uint16In) Build added in v1.2.27

func (u16i Uint16In) Build() (sql string, args []interface{})

type Uint32In added in v1.2.27

type Uint32In struct {
	Field string   `json:"field"`
	Value []uint32 `json:"value"`
}

func (Uint32In) Build added in v1.2.27

func (u32i Uint32In) Build() (sql string, args []interface{})

type Uint64In added in v1.2.27

type Uint64In struct {
	Field string   `json:"field"`
	Value []uint64 `json:"value"`
}

func (Uint64In) Build added in v1.2.27

func (ui Uint64In) Build() (sql string, args []interface{})

type Uint8In added in v1.2.27

type Uint8In struct {
	Field string  `json:"field"`
	Value []uint8 `json:"value"`
}

func (Uint8In) Build added in v1.2.27

func (u8i Uint8In) Build() (sql string, args []interface{})

type UintIn added in v1.2.27

type UintIn struct {
	Field string `json:"field"`
	Value []uint `json:"value"`
}

func (UintIn) Build added in v1.2.27

func (ui UintIn) Build() (sql string, args []interface{})

type Values

type Values []interface{}

Jump to

Keyboard shortcuts

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