Versions in this module Expand all Collapse all v0 v0.3.0 Sep 28, 2026 v0.2.0 Sep 23, 2026 v0.1.0 Sep 17, 2026 Changes in this version + const MaxQFields + const OpAll + const OpContains + const OpEquals + const OpExists + const OpGreaterThan + const OpGreaterThanEqual + const OpIn + const OpIntersects + const OpLessThan + const OpLessThanEqual + const OpLike + const OpNear + const OpNotEquals + const OpNotIn + const OpNotLike + const OpWithin + const SinceForms + var Operators = []string + func BoolPtr(b bool) *bool + func Canonical(alias string) (string, bool) + func CheckOperator(op, dbAdapter, adapterSource string) error + func CheckPathSyntax(path string) error + func EncodePairs(pairs []Pair) string + func EscapeLike(s string) string + func ExtractOperators(w Where) []string + func ExtractPaths(w Where) []string + func IntPtr(n int) *int + func IsOperator(s string) bool + func KnownAliases() []string + func ParseSince(expr string, now time.Time) (time.Time, error) + func SplitList(s string) []string + func TypeValue(raw string) (any, error) + func TypedID(id, idType string) (any, error) + func ValidateDateField(field string, s Schema) error + func ValidateLimit(limit *int) error + func ValidateSelect(fields []string, s Schema) error + func ValidateSort(fields []string, s Schema) error + func ValidateWhere(w Where, s Schema) error + func WrapLike(s string) string + type Input struct + DraftOnly bool + Extra []Where + IDType string + IDs []string + Options ParseOptions + Or []string + PublishedOnly bool + Q string + QFields []string + Where []string + WhereJSON string + type Pair struct + Key string + Value string + func Brackets(prefix string, v any) ([]Pair, error) + func WhereBrackets(w Where) ([]Pair, error) + func (p Pair) String() string + type Params struct + Data any + Depth *int + Draft *bool + Extra url.Values + FallbackLocale string + Joins map[string]map[string]string + Limit *int + Locale string + Page int + Populate map[string][]string + Select []string + SelectExclude []string + Sort []string + Trash *bool + Where Where + WhereRaw string + WhereStyle WhereStyle + func (p Params) Clone() Params + func (p Params) Encode() (string, error) + type ParseOptions struct + NoEscapeContains bool + NoWrapNotLike bool + ReadFile func(path string) ([]byte, error) + type Schema struct + Collection string + DBAdapter string + DBAdapterSource string + DateFields []string + Queryable []string + Selectable []string + Sortable []string + type Where map[string]any + func And(terms ...Where) Where + func Build(in Input) (Where, error) + func BuildTerm(path, alias, raw string, opts ParseOptions) (Where, error) + func Combine(and []Where, or []Where) Where + func DateTerm(field string, since, until *time.Time) Where + func IDTerm(ids []string, idType string) (Where, error) + func Or(terms ...Where) Where + func ParseTerm(term string, opts ParseOptions) (Where, error) + func ParseWhereJSON(s string) (Where, error) + func QTerm(text string, fields []string) (Where, error) + func Term(path, op string, value any) Where + func (w Where) Encode() (string, error) + func (w Where) IsEmpty() bool + func (w Where) JSON() (string, error) + type WhereStyle string + const StyleJSON + const StyleQS + func ParseWhereStyle(s string) (WhereStyle, error)