Documentation
¶
Overview ¶
Package migrators provides migration helpers for sqlflow databases. Each helper returns a sqlflow.Option[Q] that can be passed to any sqlflow constructor (OpenDB, TestDB, or via WithDBFactory for pools).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Goose ¶
Goose returns an Option that runs goose migrations from fsys when the database is opened. The migration runs on the live write connection so it works correctly for both plain and SQLCipher-encrypted databases.
fsys must contain the *.sql migration files at its root (no subdirectory). Use embed.FS with fs.Sub or os.DirFS to obtain a suitable fs.FS.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.