Documentation
¶
Index ¶
Constants ¶
View Source
const (
DbEnvVar = "DATABASE_URL"
)
View Source
const (
FilePrefix = "20060102150405"
)
Variables ¶
View Source
var ( // ErrLocationIsNotDirectory is the error when the location is not a directory. ErrLocationIsNotDirectory = errors.New("location is not a directory") )
View Source
var ( // ErrNoCurrentVersion is the error when there is no current version. ErrNoCurrentVersion = errors.New("no current version") )
Functions ¶
Types ¶
type Versioning ¶
type Versioning interface {
MigrateUp() error
MigrateDown() error
GetStatus() ([]*models.GoschemaMigrationVersion, error)
}
func NewVersioning ¶
func NewVersioning(db *sqlx.DB, migrationLocation string, steps int) Versioning
Click to show internal directories.
Click to hide internal directories.