migrate

package
v0.0.0-...-e7fdee8 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 10 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