Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AndCondition ¶
type AndCondition struct {
Or []Condition `@@ ( "OR" @@ )*`
}
type Condition ¶
type Condition struct { Not *Condition `"NOT" @@` Operand *ConditionOperand `| @@` }
type ConditionOperand ¶
type DefaultLimit ¶ added in v0.0.2
type DefaultLimit int
type DefaultOrder ¶ added in v0.0.2
type DefaultOrder []OrderBy
type Expression ¶
type Expression struct {
And []AndCondition `@@ ( "AND" @@ )*`
}
type Query ¶
type Query struct { Expression *Expression `@@` // And []*AndCondition `@@ ( "AND" @@ )*` OrderBy []OrderBy `("ORDER" "BY" @@ (Comma @@)*)?` Limit int `("LIMIT" @Int)?` }
Click to show internal directories.
Click to hide internal directories.