Versions in this module Expand all Collapse all v0 v0.10.0 Oct 15, 2026 v0.9.0 Oct 15, 2026 Changes in this version type Options + OnReset func(ctx context.Context, state string) error v0.8.0 Oct 9, 2026 v0.7.0 Sep 30, 2026 Changes in this version + var ErrConflict = errors.New("schema conflict") v0.6.2 Sep 29, 2026 v0.6.1 Sep 24, 2026 v0.6.0 Sep 24, 2026 Changes in this version + var ErrUnknownSet = errors.New("unknown migration set") + type SetStatus struct + Dirty bool + Latest int + Migrations []MigrationInfo + Name string + Pending []int + Table string + Version int type Status + Sets []SetStatus v0.5.0 Sep 7, 2026 Changes in this version + var ErrUnknownState = errors.New("unknown state") type Seeder + States func() []string type Service + func (s *Service) Reset(ctx context.Context, state string) (Transition, error) + func (s *Service) States() []string + type Transition struct + Schema Status + Seeded Seeded + State string v0.4.0 Sep 4, 2026 Changes in this version + const Stage + var ErrSeedDisabled = errors.New("seeding is disabled") + var ErrValidation = errors.New("validation failed") + type Catalog struct + Namespaces []string + Patterns []Pattern + type Diagnostics struct + Dialect string + Namespaces []string + Ping time.Duration + Pool Pool + ServerVersion string + type DomainStatements struct + Name string + Statements []StatementInfo + type Entry struct + Name string + Statements *query.Statements + type Inventory struct + Domains []DomainStatements + type MigrationInfo struct + Applied bool + Name string + Transactional bool + Version int + type Options struct + Logger *slog.Logger + Registry Registry + Seed bool + Seeder Seeder + type Pattern struct + Name string + Namespace string + Native string + Slots []string + Text string + Tier string + type Pool struct + Idle int + InUse int + MaxOpen int + Open int + WaitCount int64 + WaitDuration time.Duration + type Registry interface + Registry func() []Entry + type Seeded map[string]int + type Seeder interface + Seed func(ctx context.Context) (Seeded, error) + Verify func(ctx context.Context) error + type Service struct + func New(pool *database.DB, db *sqlate.DB, m *migrate.Migrator, c *query.Catalog, ...) *Service + func (s *Service) Catalog() Catalog + func (s *Service) Diagnose(ctx context.Context) (Diagnostics, error) + func (s *Service) Down(ctx context.Context, n int) (Status, error) + func (s *Service) Force(ctx context.Context, version int) (Status, error) + func (s *Service) Ready() bool + func (s *Service) Register(lc *lifecycle.Coordinator) + func (s *Service) Seed(ctx context.Context) (Seeded, error) + func (s *Service) Start(ctx context.Context) error + func (s *Service) Statements() Inventory + func (s *Service) Status(ctx context.Context) (Status, error) + func (s *Service) Steps(ctx context.Context, n int) (Status, error) + func (s *Service) Up(ctx context.Context) (Status, error) + func (s *Service) Verify(ctx context.Context) error + type StatementInfo struct + Fields []string + Key string + Name string + Native string + Params []string + Text string + Tier string + TransactionRequired bool + type Status struct + Dirty bool + Migrations []MigrationInfo + Pending []int + Ready bool + Version int + type Versioner interface + ServerVersion func() string