migrations

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Applied

func Applied(ctx context.Context, db *sql.DB) ([]int, error)

Applied returns the sorted list of migration versions recorded as applied.

func Apply

func Apply(ctx context.Context, db *sql.DB) error

Types

type Migration

type Migration struct {
	Version int
	Source  string
	SQL     string
}

func Load

func Load() ([]Migration, error)

Jump to

Keyboard shortcuts

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