migrate

package
v0.0.0-...-a63676f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migration

func Migration(ctx context.Context, store db.DB, fsys fs.FS, tableName string) error

Migration applies migrations from the given filesystem to the database. The filesystem should contain a "migrations" directory with migration files.

Types

type MigrationError

type MigrationError struct {
	Err         error
	Description string
}

func (*MigrationError) Error

func (e *MigrationError) Error() string

func (*MigrationError) Unwrap

func (e *MigrationError) Unwrap() error

Jump to

Keyboard shortcuts

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