Documentation ¶
Index ¶
- Constants
- type Condition
- type Literal
- func Bool(b bool) Literal
- func Date(t times.Date) Literal
- func Datetime(t time.Time) Literal
- func Float(f float32) Literal
- func Float64(f float64) Literal
- func Int(n int) Literal
- func Int64(n int64) Literal
- func Lit(v string) Literal
- func Null() Literal
- func String(s string) Literal
- func Time(t times.Time) Literal
- type Node
- type Operation
- type Operator
- type Predicate
- func Between(field string, left any, right any) Predicate
- func Eq(field string, expression any) Predicate
- func Gt(field string, expression any) Predicate
- func Gte(field string, expression any) Predicate
- func In(field string, expression ...any) Predicate
- func Like(field string, expression string) Predicate
- func LikeContains(field string, expression string) Predicate
- func LikeLast(field string, expression string) Predicate
- func Lt(field string, expression any) Predicate
- func Lte(field string, expression any) Predicate
- func NotEq(field string, expression any) Predicate
- func NotIn(field string, expression ...any) Predicate
- type QueryExpr
Constants ¶
View Source
const ( AND = Operation("AND") OR = Operation("OR") )
View Source
const ( Equal = Operator("=") NotEqual = Operator("<>") GreatThan = Operator(">") GreatThanOrEqual = Operator(">=") LessThan = Operator("<") LessThanOrEqual = Operator("<=") BETWEEN = Operator("BETWEEN") IN = Operator("IN") NOTIN = Operator("NOT IN") LIKE = Operator("LIKE") )
View Source
const ( AVG = "AVG" SUM = "SUM" COUNT = "COUNT" MAX = "MAX" MIN = "MIN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Predicate ¶
func LikeContains ¶
type QueryExpr ¶
func AggregateQuery ¶
Click to show internal directories.
Click to hide internal directories.