Documentation
¶
Index ¶
- func Args(sql, prefix string) string
- func Clause(op LogicalOperator, mods ...string) string
- func Column(c ...string) string
- func Expr(s string) string
- func Group(s ...string) string
- func Query(c ...string) string
- func Where(s string, op Operator, v ...string) string
- func WhereComposite[T any](op Operator, cols []T, f func(c T) string) string
- func WhereEndsWith(s string, v any) (string, any)
- func WhereIn(s string, v any) (string, any)
- func WhereLike(s string, v any) (string, any)
- func WhereNotIn(s string, v any) (string, any)
- func WhereNotLike(s string, v any) (string, any)
- func WhereStartsWith(s string, v any) (string, any)
- type LogicalOperator
- type Operator
- type Order
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clause ¶
func Clause(op LogicalOperator, mods ...string) string
Types ¶
type LogicalOperator ¶
type LogicalOperator string
const ( AND LogicalOperator = "AND" OR LogicalOperator = "OR" ORDER_BY LogicalOperator = "ORDER BY" )
func (LogicalOperator) String ¶
func (lo LogicalOperator) String(space bool) string
type Operator ¶
type Operator string
const ( Equal Operator = "=" NotEqual Operator = "!=" GreaterThan Operator = ">" GreaterThanOrEqual Operator = ">=" LessThan Operator = "<" LessThanOrEqual Operator = "<=" In Operator = "IN" NotIn Operator = "NOT IN" Like Operator = "LIKE" ILIkE Operator = "ILIKE" NotLike Operator = "NOT LIKE" IsNull Operator = "IS NULL" IsNotNull Operator = "IS NOT NULL" )
Click to show internal directories.
Click to hide internal directories.