migrations

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrations

func Migrations(dialect string) (fs.FS, error)

Migrations returns a filesystem containing SQL migration files for the specified database dialect. The dialect parameter determines which SQL syntax variant to use (e.g., "sqlite", "postgres", "mysql", "cockroachdb"). This function serves as a public wrapper around the internal migrations package, providing access to versioned database schema migrations that can be applied using migration tools or custom migration runners. Returns an fs.FS containing the migration files, or an error if the dialect is unsupported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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