Documentation
¶
Index ¶
Constants ¶
View Source
const ( AndWithSpace = " AND " OrWithSpace = " OR " )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AndExpr ¶
type AndExpr struct {
Exprs []Expression
}
type Builder ¶
type Builder interface {
Writer
WriteQuoted(field interface{})
AddVar(Writer, ...interface{})
AddError(error) error
}
Builder builder interface
type Eq ¶
type Eq struct {
Column string
Value interface{}
}
Eq equal to for where
func (Eq) NegationBuild ¶
type Expression ¶
type Expression interface {
Build(builder Builder)
}
Expression expression interface
func And ¶
func And(exprs ...Expression) Expression
func Not ¶
func Not(exprs ...Expression) Expression
func Or ¶
func Or(exprs ...Expression) Expression
type IN ¶
type IN struct {
Column string
Values []interface{}
}
IN Whether a value is within a set of values
func (IN) NegationBuild ¶
type NegationExpressionBuilder ¶
type NegationExpressionBuilder interface {
NegationBuild(builder Builder)
}
NegationExpressionBuilder negation expression builder
type NotExpr ¶
type NotExpr struct {
Exprs []Expression
}
type OrExpr ¶
type OrExpr struct {
Exprs []Expression
}
type Pagination ¶
func (Pagination) Build ¶
func (p Pagination) Build(builder Builder)
Click to show internal directories.
Click to hide internal directories.