Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArrayExpression ¶
type ArrayExpression interface { Expression IsEmpty() bool }
func Array ¶
func Array(values interface{}) ArrayExpression
type Expression ¶
type Expression interface { // TODO: not responsiblity here SQL(context *ExpressionContext) (string, []interface{}) }
func And ¶
func And(expressions ...Expression) Expression
func Field ¶
func Field(name string, matcher FieldMatcher) Expression
type ExpressionContext ¶
type ExpressionContext struct {
CurrentReference string
}
type FieldMatcher ¶
type FieldMatcher interface { IsCompound() bool IsContradiction() bool SQL(context *SubContext) (string, []interface{}) }
func Equals ¶
func Equals(value interface{}) FieldMatcher
func HasAnyMatching ¶
func HasAnyMatching(matcher Expression) FieldMatcher
func IsIn ¶
func IsIn(valuesSource ArrayExpression) FieldMatcher
func IsLessThan ¶
func IsLessThan(value interface{}) FieldMatcher
func IsNull ¶
func IsNull() FieldMatcher
type OrderClause ¶
type OrderClause string
func (OrderClause) IsValid ¶
func (c OrderClause) IsValid() bool
func (OrderClause) SafeSQL ¶
func (c OrderClause) SafeSQL() string
type SubContext ¶
type SubContext struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.