Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_UP_DELIMITER = "-- up" DEFAULT_DOWN_DELIMITER = "-- down" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Db is the database connection used for migrations
Db *sql.DB
// Fs is the filesystem where the migrations are stored
Fs fs.FS
OverrideDirName string
// If Fs is nil, then this slice of migrations will be used
Migrations []Migration
// Delimiters for splitting up and down migrations in a single file
UpDelimiter string
DownDelimiter string
}
Config is the configuration for Mig
Click to show internal directories.
Click to hide internal directories.