Documentation ¶
Overview ¶
Package migrations stores migrations for databases
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateDatabase ¶
func MigrateDatabase(_ context.Context, driver string, dsn string, handler slog.Handler) (*sql.DB, error)
MigrateDatabase migrates the database of type dbType using the provided db Caller is responsible for closing the db connection after TODO: Don't know how I feel about returning the db here but it works for now
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package sqlite3 contains an implementation of the go-migrate database.Driver interface using a pure go sqlite3 driver this is almost entirely a copy/paste from the upstream sqlite3 driver swapping underlying drivers
|
Package sqlite3 contains an implementation of the go-migrate database.Driver interface using a pure go sqlite3 driver this is almost entirely a copy/paste from the upstream sqlite3 driver swapping underlying drivers |
Click to show internal directories.
Click to hide internal directories.