Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadFilter = errors.New("invalid query filter")
ErrBadFilter is returned from Parse when it encounters an invalid filter expression.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
Field is a type for simple expressions that simply access an attribute of the queried object. They're used for GROUP BYs.
func ParseField ¶
ParseField parses a field expression (either an attrExpr or a selectorExpr).
type ForeignKey ¶
ForeignKey describe a foreign key
type Predicate ¶
type Predicate struct { Parameters int // contains filtered or unexported fields }
Predicate represents a parsed filter predicate.
func Parse ¶
Parse parses a predicate and returns an internal representation of the predicate or an error if it fails to parse.
func (Predicate) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface and returns a cleaned, canonical representation of the predicate.
Click to show internal directories.
Click to hide internal directories.