Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MigrationsFS embed.FS
Functions ¶
func MigrateSchema ¶
func MigrateSchema( filePath string, migrationsFs embed.FS, migrationTable string, nSteps *int, ) error
MigrateSchema performs migrations on the database
filePath_ is the path to the database file migrationsFs is the filesystem containing the migrations migrationTable is the name of the table to store migration information, by default it is "migrations" nSteps is the number of steps to migrate, if nil, all migrations will be applied
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.