Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MigrationManager ¶
type MigrationManager struct {
// contains filtered or unexported fields
}
MigrationManager manages the lifecycle of a migration
func New ¶
func New(migration migrations.IMigration) (*MigrationManager, error)
New returns a MigrationManager without server connectivity for filesystem-only side effects
func NewWithServer ¶ added in v0.9.9
func NewWithServer(migration migrations.IMigration, server servers.IServer) *MigrationManager
NewWithServer returns a MigrationManager using a provided Server
func (*MigrationManager) ApplyToSchema ¶
func (m *MigrationManager) ApplyToSchema(migrationRepo migrations.Repository, idempotently bool) error
ApplyToSchema validates and applies a migration to the in-memory schema representation
func (*MigrationManager) CreateMigration ¶ added in v0.9.9
func (m *MigrationManager) CreateMigration() error
CreateMigration does the whole operation of validating and persisting a migration to disk, and updating the schema
func (*MigrationManager) Migrate ¶ added in v0.9.9
func (m *MigrationManager) Migrate() error
Migrate syncs a migration and its version to the TestTrack server
func (*MigrationManager) Sync ¶ added in v0.9.9
func (m *MigrationManager) Sync() error
Sync applies the contents of a migration to the TestTrack server
func (*MigrationManager) SyncVersion ¶
func (m *MigrationManager) SyncVersion() error
SyncVersion marks schema versions as applied on TestTrack server
Click to show internal directories.
Click to hide internal directories.