Versions in this module Expand all Collapse all v0 v0.3.0 Aug 28, 2026 Changes in this version + func Columns(prefix string, names []string, extra ...ast.Column) []ast.Column + type Directives struct + Filters []Filter + Page Page + Sort []Sort + Where ast.Predicate + type Field struct + Expr ast.Expression + Name string + func Fields(names []string) []Field + type FieldUse string + const FieldUseFilter + const FieldUseSort + type Filter struct + Field string + Op Op + Value any + type Guard struct + Column string + Version int64 + type Guarded struct + Check ast.SQL + Command ast.SQL + type GuardedDelete struct + Guard Guard + ID any + Key Field + Table string + func (del GuardedDelete) SQL(d database.Dialect) (Guarded, error) + type GuardedUpdate struct + Guard Guard + ID any + Key Field + Set []ast.Assignment + Table string + func (u GuardedUpdate) SQL(d database.Dialect) (Guarded, error) + type Insertion struct + Identity Field + Into string + Values []ast.Assignment + Version Field + func (i Insertion) SQL(d database.Dialect) (ast.SQL, error) + type List struct + Count ast.SQL + Page ast.SQL + type Op string + const OpEq + const OpGe + const OpGt + const OpIn + const OpIsNotNull + const OpIsNull + const OpLe + const OpLike + const OpLt + const OpNe + type Page struct + Number int + Size int + type Projection struct + Fields []Field + From ast.TableRef + Key Field + With []ast.CTE + func (p Projection) List(d database.Dialect, dir Directives) (List, error) + func (p Projection) One(d database.Dialect, field string, value any) (ast.SQL, error) + type RecursivePath struct + Columns []string + Field string + Key string + Parent string + Rooted bool + Segment string + Separator string + Table string + func (r RecursivePath) Projection() Projection + type Sort struct + Descending bool + Field string + type UnknownFieldError struct + Field string + Use FieldUse + func (e *UnknownFieldError) Error() string + type UnknownOperatorError struct + Op Op + func (e *UnknownOperatorError) Error() string