Help us shape the future of Go! Take the 2026 Go Developer Survey

migrations

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package migrations embeds and applies storage schema migrations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Up

func Up(ctx context.Context, db *sql.DB, selected ...Dialect) error

Up applies all pending migrations for dialect. Omitting dialect preserves the original SQLite-only API.

Types

type Dialect

type Dialect string

Dialect identifies one embedded migration set.

const (
	SQLite   Dialect = "sqlite"
	Postgres Dialect = "postgres"
	MySQL    Dialect = "mysql"
)

Jump to

Keyboard shortcuts

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