Documentation
¶
Index ¶
- Constants
- func CollapseField(in interface{}, out interface{})
- func DeepAssign(d RawExpr, value interface{}, keys ...string)
- func Variablize(fields ...string) string
- type Arel
- func (this *Arel) Average(target string) *Arel
- func (this *Arel) Collect(target string) *Arel
- func (this *Arel) Count() *Arel
- func (this *Arel) CountUnique(target string) *Arel
- func (this *Arel) GroupBy(groups ...string) *Arel
- func (this *Arel) GroupByGiven() bool
- func (this *Arel) Limit(n int) *Arel
- func (this *Arel) Max(target string) *Arel
- func (this *Arel) Min(target string) *Arel
- func (this *Arel) OrderBy(orders ...*Order) *Arel
- func (this *Arel) Pipeline() *Pipeline
- func (this *Arel) Select(fields ...string) *Arel
- func (this *Arel) SelectUnique(target string) *Arel
- func (this *Arel) Sum(target string) *Arel
- func (this *Arel) Where(conds ...*Condition) *Arel
- type ArelNodes
- type Average
- type Collect
- type Condition
- type Count
- type CountUnique
- type Group
- type GroupBy
- type Limit
- type Max
- type Min
- type NoOp
- type Operator
- type Order
- type OrderBy
- type Pipeline
- type Query
- type RawExpr
- type Select
- type SelectUnique
- type Stage
- type Sum
- type Visitor
- type Where
Constants ¶
View Source
const ( ASC = 1 DESC = -1 )
Variables ¶
This section is empty.
Functions ¶
func CollapseField ¶
func CollapseField(in interface{}, out interface{})
func DeepAssign ¶
func Variablize ¶
Types ¶
type Arel ¶
type Arel struct {
*ArelNodes
}
func (*Arel) CountUnique ¶
func (*Arel) GroupByGiven ¶
func (*Arel) SelectUnique ¶
type Condition ¶
func NewCondition ¶
type CountUnique ¶
type CountUnique struct {
// contains filtered or unexported fields
}
func (*CountUnique) Visit ¶
func (this *CountUnique) Visit(v *Visitor, g *GroupBy)
type GroupBy ¶
func NewGroupBy ¶
func NewGroupBy() *GroupBy
type OrderBy ¶
type OrderBy struct {
// contains filtered or unexported fields
}
func NewOrderBy ¶
func NewOrderBy() *OrderBy
type SelectUnique ¶
type SelectUnique struct {
// contains filtered or unexported fields
}
func (*SelectUnique) Visit ¶
func (this *SelectUnique) Visit(v *Visitor, g *GroupBy)
type Visitor ¶
func NewVisitor ¶
Click to show internal directories.
Click to hide internal directories.