Documentation
¶
Index ¶
- type Executor
- func (e *Executor) Close() error
- func (e *Executor) Config() *config.Config
- func (e *Executor) ExecuteAllMigrations() (int, error)
- func (e *Executor) ExecuteMigration(migration migrations.Migration) error
- func (e *Executor) ExecuteNextMigration() (bool, error)
- func (e *Executor) GetPendingMigrations() []migrations.Migration
- func (e *Executor) Status() ([]migrations.Migration, []database.MigrationVersion, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor handles the execution of migrations
func (*Executor) ExecuteAllMigrations ¶
ExecuteAllMigrations executes all pending migrations
func (*Executor) ExecuteMigration ¶
func (e *Executor) ExecuteMigration(migration migrations.Migration) error
ExecuteMigration executes a single migration
func (*Executor) ExecuteNextMigration ¶
ExecuteNextMigration executes the next pending migration
func (*Executor) GetPendingMigrations ¶
func (e *Executor) GetPendingMigrations() []migrations.Migration
GetPendingMigrations returns migrations that have not been applied yet
func (*Executor) Status ¶
func (e *Executor) Status() ([]migrations.Migration, []database.MigrationVersion, error)
Status returns the status of migrations
Click to show internal directories.
Click to hide internal directories.