condition

package
v1.2.21 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 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 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 NotNull

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

func (NotNull) Build

func (nn NotNull) 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 Values

type Values []interface{}

Jump to

Keyboard shortcuts

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