Versions in this module Expand all Collapse all v0 v0.1.0 May 4, 2025 Changes in this version + type BaseMigrator struct + DB DbPlugin + Migrations []Migration + func (b *BaseMigrator) Down(ctx context.Context, atVersion string) error + func (b *BaseMigrator) Up(ctx context.Context, toVersion string) error + type DbPlugin interface + ApplyMigration func(ctx context.Context, mi Migration) error + Connect func(ctx context.Context) error + GetSchema func(ctx context.Context, version string) (Schema, error) + RevertMigration func(ctx context.Context, mi Migration) error + type Gomiger interface + Connect func(ctx context.Context) error + Down func(ctx context.Context, atVersion string) error + Up func(ctx context.Context, toVersion string) error + type GomigerConfig struct + Path string + PkgName string + SchemaStore string + URI string + func GetGomigerRC(rcPath string) (*GomigerConfig, error) + func (rc *GomigerConfig) ParseYAML(path string) error + func (rc *GomigerConfig) PopulateAndValidate() error + type Migration struct + Down MutationFunc + Up MutationFunc + Version string + type MutationFunc = func(context context.Context) error + type Schema struct + Status SchemaStatus + Timestamp time.Time + Version string + type SchemaStatus string + var Applied SchemaStatus = "applied" + var Dirty SchemaStatus = "dirty" + var InProgress SchemaStatus = "in_progress"