Documentation ¶
Index ¶
Constants ¶
const UP = "UP"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cassandra ¶
type Cassandra struct {
// contains filtered or unexported fields
}
func NewCassandra ¶
NewCassandra returns a new Cassandra instance
func (*Cassandra) FinishMigration ¶
FinishMigration completes the migration
func (*Cassandra) GetAllMigrations ¶
GetAllMigrations retrieves migration versions
func (*Cassandra) LastRunVersion ¶
LastRunVersion retrieves the last run migration version
type DBDriver ¶
type DBDriver interface { /* Run creates the migration tracker table checks if dirty migrations exists for an `app` then executes either Up or Down migration based on the method parameter */ Run(mig Migrator, app, name, method string, logger log.Logger) error /* LastRunVersion fetches the last max version run */ LastRunVersion(app, method string) int /* GetAllMigrations fetches all the migrations run for an `app` separates out UP and DOWN migrations */ GetAllMigrations(app string) (upMigration []int, downMigration []int) /* FinishMigration stores all the migrations run into the database if, there is no error in any of the migrations error in one migration leads to not storing any of the migrations in the database */ FinishMigration() error }
type GORM ¶
type GORM struct {
// contains filtered or unexported fields
}
func (*GORM) FinishMigration ¶
FinishMigration completes the migration
func (*GORM) GetAllMigrations ¶
GetAllMigrations retrieves all migrations
func (*GORM) LastRunVersion ¶
LastRunVersion retrieves the last run migration version
type Mongo ¶
func (*Mongo) FinishMigration ¶
FinishMigration completes the migration
func (*Mongo) GetAllMigrations ¶
GetAllMigrations retrieves all migrations
func (*Mongo) LastRunVersion ¶
LastRunVersion retrieves the last run migration version
type Redis ¶
func (*Redis) FinishMigration ¶
FinishMigration completes the migration
func (*Redis) GetAllMigrations ¶
GetAllMigrations retrieves all migrations
func (*Redis) LastRunVersion ¶
LastRunVersion retrieves the last run migration version
type YCQL ¶
type YCQL struct {
// contains filtered or unexported fields
}
func (*YCQL) FinishMigration ¶
FinishMigration completes the migration
func (*YCQL) GetAllMigrations ¶
GetAllMigrations retrieves all migrations
func (*YCQL) LastRunVersion ¶
LastRunVersion retrieves the last run migration version