Versions in this module Expand all Collapse all v0 v0.0.2 Nov 21, 2024 v0.0.1 Nov 21, 2024 Changes in this version type OrderBy + Direction Direction v0.0.0 Oct 13, 2024 Changes in this version + type Direction string + const Ascending + const Descending + type GroupBy struct + Column string + Table string + func NewGroupBy(column string) *GroupBy + func NewGroupWithTable(table, column string) *GroupBy + func (g *GroupBy) GroupBy() string + func (g *GroupBy) QueryMod() []qm.QueryMod + func (g *GroupBy) ToString() string + type Limit struct + func NewLimit(value int) *Limit + func NewLimitFrom(expr string) ([]*Limit, error) + func (l *Limit) Limit() int + func (l *Limit) QueryMod() []qm.QueryMod + func (l *Limit) ToString() string + type Offset struct + func NewOffset(value int) *Offset + func NewOffsetFrom(expr string) ([]*Offset, error) + func (o *Offset) Offset() int + func (o *Offset) QueryMod() []qm.QueryMod + func (o *Offset) ToString() string + type Operator string + const Contains + const EndsWith + const Equal + const GreaterThan + const GreaterThanOrEqual + const In + const IsNotNull + const IsNull + const LessThan + const LessThanOrEqual + const NotEqual + const NotIn + const StartsWith + type Or struct + func NewCombinerOR(l *Where, r *Where, e ...*Where) *Or + func (o *Or) Or() []*Where + func (o *Or) QueryMod() []qm.QueryMod + func (o *Or) ToString() string + type OrderBy struct + Column string + Table string + func NewOrderBy(column string, direction Direction) *OrderBy + func NewOrderByFrom(expr string) ([]*OrderBy, error) + func NewOrderByWithTable(table, column string, direction Direction) *OrderBy + func (o *OrderBy) OrderBy() string + func (o *OrderBy) QueryMod() []qm.QueryMod + func (o *OrderBy) ToString() string + type Relation struct + func NewRelation(table string, tables ...string) *Relation + func (r *Relation) QueryMod() []qm.QueryMod + func (r *Relation) Relation() []string + func (r *Relation) ToString() string + type Select struct + func NewSelect(column string, columns ...string) *Select + func (s *Select) QueryMod() []qm.QueryMod + func (s *Select) Select() []string + func (s *Select) ToString() string + type Where struct + Column string + Operator Operator + Table string + Value interface{} + func NewWhere(column string, operator Operator, values ...interface{}) *Where + func NewWhereFrom(filter string) ([]*Where, error) + func NewWhereWithTable(table string, column string, operator Operator, values ...interface{}) *Where + func (w *Where) QueryMod() []qm.QueryMod + func (w *Where) ToString() string + func (w *Where) Where() string