Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MigrationSteps []MigrationStep = []MigrationStep{{ // contains filtered or unexported fields }, { // contains filtered or unexported fields }, }
Functions ¶
func MakeSqliteDummyDB ¶
MakeSqliteDummyDB creates a Sqlite in-memory DB and migrates it to the current schema. It is to be used for testing purposes only.
Types ¶
type MigrationStep ¶
type MigrationStep struct {
// contains filtered or unexported fields
}
MigrationStep represents a single migration step for host DB
type Migrator ¶
type Migrator struct { Steps []MigrationStep `checkinject:"required"` Config *domain.RuntimeConfig `checkinject:"required"` DBManager interface { GetHandle() *domain.DB GetSchema() string SetSchema(string) error } `checkinject:"required"` }
Migrator manages the migration process
func (*Migrator) LastStepName ¶
LastStepName returns the last (current) schema name
Click to show internal directories.
Click to hide internal directories.