Documentation ¶
Index ¶
- Constants
- func Create(db *sql.DB, name, migrationType string) error
- func Current(ctx context.Context, db *sql.DB, lggr logger.Logger) (int64, error)
- func Migrate(ctx context.Context, db *sql.DB, lggr logger.Logger) error
- func Rollback(ctx context.Context, db *sql.DB, lggr logger.Logger, version null.Int) error
- func SetMigrationENVVars(generalConfig erinaceus.GeneralConfig) error
- func Status(ctx context.Context, db *sql.DB, lggr logger.Logger) error
Constants ¶
View Source
const MIGRATIONS_DIR string = "migrations"
Variables ¶
This section is empty.
Functions ¶
func SetMigrationENVVars ¶
func SetMigrationENVVars(generalConfig erinaceus.GeneralConfig) error
SetMigrationENVVars is used to inject values from config to goose migrations via env.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.