Versions in this module Expand all Collapse all v0 v0.26.1 Oct 25, 2026 Changes in this version + var ErrUnsupported = errors.New("schema feature unsupported") + func SplitSQL(script string, dialect string) ([]string, error) + type ApplyOptions struct + AllowPartial bool + Atomic bool + Dialect *info.Dialect + Tx *sql.Tx + type ApplyResult struct + Atomic bool + CallerTransaction bool + Executed int + RolledBack bool + func Apply(ctx context.Context, db *sql.DB, artifact *Artifact, opts ApplyOptions) (*ApplyResult, error) + func ApplySQL(ctx context.Context, db *sql.DB, script string, opts ApplyOptions) (*ApplyResult, error) + type Artifact struct + Checksum string + Complete bool + Dialect string + Driver string + Objects []Object + Omissions []Omission + Schema string + Statements []string + Tables []string + func Extract(ctx context.Context, db *sql.DB, opts ExtractOptions) (*Artifact, error) + func (a *Artifact) SQL() string + type ExtractOptions struct + AllowPartial bool + Dialect *info.Dialect + IncludeDependencies bool + IncludeSequenceState bool + IncludeTriggers bool + IncludeViews bool + Schema string + Tables []string + type Field struct + Fields []Field + Mode string + Name string + Type string + type Object struct + Fields []Field + Kind string + Name string + Table string + type Omission struct + Feature string + Object string + Reason string v0.26.0 Sep 14, 2026 Changes in this version + type Service struct + DB *sql.DB + Dialect *info.Dialect + func (s *Service) EnsureTable(ctx context.Context, table Table) error + type Table struct + Columns []io.Column + Dataset string + Name string + func (t Table) CreateSQL(dialect *info.Dialect) (string, error)