Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMigrationNonUniqueName = fmt.Errorf("please provide unique migration name") ErrMigrationCommitNotCalled = fmt.Errorf("migration before-commit function was not called") ErrMigrationETLFilesDeleted = fmt.Errorf("db migration progress was interrupted after extraction step and ETL files was deleted, please contact development team for help or re-sync from scratch") )
View Source
var ErrTxsBeginEndNoMigration = fmt.Errorf("in this Erigon version DB format was changed: added additional first/last system-txs to blocks. There is no DB migration for this change. Please re-sync or switch to earlier version")
Functions ¶
func AppliedMigrations ¶
Types ¶
type Migrator ¶
type Migrator struct {
Migrations []Migration
}
func NewMigrator ¶
func (*Migrator) HasPendingMigrations ¶
func (*Migrator) PendingMigrations ¶
Click to show internal directories.
Click to hide internal directories.