Documentation ¶
Index ¶
- func All(subquery string) string
- func Any(subquery string) string
- func AppendJsonArrayContains(conds []string, field string, value string) []string
- func AppendLikes(conds []string, field string, values []string) []string
- func Between(conds []string, field, minValue, maxValue string) []string
- func Equal(conds []string, field string, value any) []string
- func Exists(conds []string, subquery string) []string
- func GreaterThan(conds []string, field string, value any) []string
- func GreaterThanEqual(conds []string, field string, value any) []string
- func Having(conds []string, op Combiner) string
- func In(conds []string, field string, values []string) []string
- func IsNotNull(conds []string, field string) []string
- func IsNull(conds []string, field string) []string
- func LessThan(conds []string, field string, value any) []string
- func LessThanEqual(conds []string, field string, value any) []string
- func Like(conds []string, field string, value string) []string
- func NotBetween(conds []string, field, minValue, maxValue string) []string
- func NotEqual(conds []string, field string, value any) []string
- func NotExists(conds []string, subquery string) []string
- func NotIn(conds []string, field string, values []string) []string
- func NotLike(conds []string, field string, value string) []string
- func On(conds []string) string
- func Where(conds []string, op Combiner) string
- type BoolStringfy
- type Combiner
- type Comparator
- type DecodeHookFuncKind
- type DecodeHookFuncType
- type DecodeHookFuncValue
- type Stringfy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendJsonArrayContains ¶
func Equal ¶
Equal generates an 'expression1 = expression2' condition and appends it to an existing list of conditions.
func GreaterThan ¶
GreaterThan generates an 'expression1 > expression2' condition and appends it to an existing list of conditions.
func GreaterThanEqual ¶
GreaterThanEqual generates an 'expression1 >= expression2' condition and appends it to an existing list of conditions.
func LessThan ¶
LessThan generates an 'expression1 < expression2' condition and appends it to an existing list of conditions.
func LessThanEqual ¶
LessThanEqual generates an 'expression1 <= expression2' condition and appends it to an existing list of conditions.
func NotBetween ¶
func NotEqual ¶
NotEqual generates an 'expression1 <> expression2' condition and appends it to an existing list of conditions.
Types ¶
type BoolStringfy ¶
type BoolStringfy struct{}
func (BoolStringfy) ToString ¶
func (s BoolStringfy) ToString(value any) string