migrator

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBMigration

type DBMigration interface {
	MigrateSchemaUp(schema string) error
	MigrateSchemaDown(schema string) error
	MigrateUp() error
	MigrateDown() error
}

type DBMigrationImplementation

type DBMigrationImplementation struct {
	Src source.MigrationSource
	Tgt target.Database
}

DBMigrationImplementation the main service to execute the migration

func (*DBMigrationImplementation) MigrateDown

func (dbm *DBMigrationImplementation) MigrateDown() error

MigrateDown Migrates all the schemas Down

func (*DBMigrationImplementation) MigrateSchemaDown

func (dbm *DBMigrationImplementation) MigrateSchemaDown(schema string) error

func (*DBMigrationImplementation) MigrateSchemaUp

func (dbm *DBMigrationImplementation) MigrateSchemaUp(schema string) error

func (*DBMigrationImplementation) MigrateUp

func (dbm *DBMigrationImplementation) MigrateUp() error

MigrateUp Migrates all the schemas Up

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL