Documentation ¶
Index ¶
- type Migration
- type Migrator
- func (m *Migrator) Add(migration Migration)
- func (m Migrator) ExecuteCommands(commands []string) (outputs []string, err error)
- func (m *Migrator) GetValidMigrations(currentVersion string) (migrations []Migration)
- func (m Migrator) IsValid(migrationVersion, currentVersion string) (bool, error)
- func (m *Migrator) Run(currentVersion string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migrator ¶
type Migrator struct { Migrations []Migration Log *zap.SugaredLogger }
func NewMigrator ¶
func NewMigrator() *Migrator
func (Migrator) ExecuteCommands ¶
func (*Migrator) GetValidMigrations ¶
Click to show internal directories.
Click to hide internal directories.