Versions in this module Expand all Collapse all v0 v0.6.0 Oct 14, 2026 v0.5.0 Oct 12, 2026 Changes in this version + type Arg struct + Name string + Value any + type ArgPlanner interface + PlanArgs func(ctx context.Context, statement string, args []Arg) (Plan, error) + type Binder interface + Placeholder func(position int, name string) string + type Date struct + Day int + Month time.Month + Year int + func (d Date) String() string + func (d Date) Value() (driver.Value, error) type Request + Args []Arg v0.4.0 Oct 10, 2026 Changes in this version + type Plan struct + Bytes int64 + Kind string + Reads bool + type Planner interface + Plan func(ctx context.Context, statement string) (Plan, error) + type ReadOnlyGuard interface + ReadOnly func(ctx context.Context, fn func(context.Context) error) error type Result + Changed int64 + Counted bool + type Writer interface + Write func(ctx context.Context, statement string) (Result, error) v0.3.0 Oct 10, 2026 Changes in this version + type Column struct + Name string + Type string + type Describer interface + Columns func(ctx context.Context, r Relation) ([]Column, error) + type Estimator interface + Estimate func(ctx context.Context, query string) (int64, error) + type Lister interface + Relations func(ctx context.Context) ([]Relation, error) + type Reader interface + Read func(ctx context.Context, req Request) (Result, error) + type Relation struct + Name string + Schema string + type Request struct + Limit int + MaxBytes int64 + Query string + type Result struct + Columns []string + Rows [][]any + Scanned int64 + Truncated bool + type WriteProbe interface + CanWrite func(ctx context.Context, schema string) (bool, error) v0.2.0 Oct 9, 2026 Changes in this version + func NewRows(m model.Model, body string) string type Dialect + ColumnsOf func(ref string) string + type Disposable interface + ExpireSchema func(schema string) string + type Merge struct + Columns string + On string + Set string + Values string + func MergeOf(m model.Model, columns []string) Merge + type State struct + Columns []string + Current Kind + FullRefresh bool + func StateOf(ctx context.Context, d Dialect, conn Conn, ref string, ...) (State, error) + func (s State) Rebuild() bool v0.1.0 Oct 8, 2026 Changes in this version + type Conn interface + Close func(ctx context.Context) error + Exec func(ctx context.Context, statement string) error + Scalar func(ctx context.Context, query string) (any, error) + Target func(ref string) string + type Dialect interface + Build func(m model.Model, current Kind) ([]string, error) + EnsureSchema func(schema string) []string + KindOf func(ref string) string + Literal func(s string) string + Name func() string + Open func(ctx context.Context, dsn string) (Conn, error) + type Kind string + const Absent + const Table + const View + func KindFrom(v any) Kind