Versions in this module Expand all Collapse all v1 v1.0.7 Oct 23, 2026 v1.0.6 Oct 23, 2026 Changes in this version + func Restore(ctx context.Context, exec Exec, defs []Definition) error + type Definition struct + Comment string + Grants []string + Indexes []string + Owner string + SQL string + func Capture(ctx context.Context, q Querier, views []View) ([]Definition, error) + func (d Definition) CreateStatements() []string + type DropOptions struct + Exec Exec + Logf func(format string, args ...any) + Owned func(View) bool + Query Querier + Tables []Table + type Exec func(ctx context.Context, stmt string) error + type Querier interface + QueryContext func(ctx context.Context, query string, args ...any) (*sql.Rows, error) + type RestoreError struct + Err error + Statements []string + View View + func (e *RestoreError) Error() string + func (e *RestoreError) Unwrap() error + type Table struct + Name string + Schema string + func Tables(schema string, names ...string) []Table + func (t Table) Qualified() string + type View struct + Kind string + Name string + Schema string + func Dependents(ctx context.Context, q Querier, tables []Table) ([]View, error) + func Lookup(ctx context.Context, q Querier, names ...string) ([]View, error) + func Sweep(ctx context.Context, opts DropOptions) ([]View, func(context.Context) error, error) + func (v View) DropStatement() string + func (v View) Materialized() bool + func (v View) Qualified() string