Documentation ¶
Index ¶
- Variables
- func If[T any](condition Condition[T], fn func(t T) func(*sql.Selector)) func(T) func(*sql.Selector)
- func IfBool(field string) func(*bool) func(*sql.Selector)
- func IfIntEQ[T ~int | ~int32](field string) func(T) func(*sql.Selector)
- func IfOrderByDesc(field string) func(*bool) func(*sql.Selector)
- func IfStrEQ(field string) func(string) func(*sql.Selector)
- type Condition
- type Operation
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IfEmail = IfStrEQ("email") IfEnabled = IfBool("enabled") IfOrderByIDDesc = IfOrderByDesc("id") IfNameLike = If(func(s string) bool { return s != "" }, func(t string) func(*sql.Selector) { return sql.FieldContains("name", t) }) )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.