Documentation
¶
Index ¶
- type Config
- type Migrator
- func (s *Migrator) DoStep(ctx context.Context, step dbump.Step) error
- func (s *Migrator) Drop(ctx context.Context) error
- func (s *Migrator) Init(ctx context.Context) error
- func (s *Migrator) LockDB(ctx context.Context) error
- func (s *Migrator) UnlockDB(ctx context.Context) error
- func (s *Migrator) Version(ctx context.Context) (version int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Schema for the dbump version table. Default is empty which means "public" schema. Schema string // Table for the dbump version table. Default is empty which means "_dbump_log" table. Table string // contains filtered or unexported fields }
Config for the migrator.
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator to migrate Postgres.
func NewMigrator ¶
NewMigrator instantiates new Migrator.
Click to show internal directories.
Click to hide internal directories.