Versions in this module Expand all Collapse all v0 v0.0.3 Mar 7, 2022 v0.0.2 Feb 14, 2022 Changes in this version + const DirAscending + const DirDescending + const DirNone + const OpEqual + const OpGreaterThan + const OpGreaterThanOrEqual + const OpIn + const OpLessThan + const OpLessThanOrEqual + const OpNone + const OpNotEqual + type Direction string + type Filter struct + FieldName string + Operand interface{} + Operator Operator + func NewFilter(fieldName string, op Operator, operand interface{}) *Filter + type Operator string + type Option func(q *Query) + func WithFilter(filter *Filter) Option + func WithFilterArgs(fieldName string, op Operator, operand interface{}) Option + func WithFilters(filters ...*Filter) Option + func WithOrder(order *Order) Option + func WithOrderArgs(fieldName string, dir Direction) Option + func WithOrders(orders ...*Order) Option + func WithPage(page *Page) Option + func WithPageArgs(startIndex, capacity int) Option + type Order struct + Direction Direction + FieldName string + func NewOrder(fieldName string, dir Direction) *Order + type Page struct + Capacity int + StartIndex int + func NewPage(startIndex, capacity int) *Page + type Query struct + Filters []*Filter + Orders []*Order + Page *Page + func NewQuery(options ...Option) *Query + func (q *Query) AddFilters(filters ...*Filter) *Query + func (q *Query) AddOrders(orders ...*Order) *Query + func (q *Query) SetPage(page *Page) *Query