plover

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(ctx context.Context, filesystem fs.FS, db *sql.DB, dir string) error

Migrate runs the migrations in the directory on the given filesystem against the provided database.

Record of the migrations running will be stored in the `migrations` table which is created if necessary.

Each migration is transactional but running all the migrations is not. If the migrations fail part way through the ones that have already successfully run won't be rolled back. Their record of running will have been stored though so the migration won't be re-run on retry.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL