migrations

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SchemaMigrations embed.FS

Functions

func GetMigrationFiles added in v0.1.0

func GetMigrationFiles(dbType DatabaseType) ([]string, error)

GetMigrationFiles returns the appropriate migration files for the given database type

func ReadMigration added in v0.1.0

func ReadMigration(fileName string) ([]byte, error)

Types

type DatabaseType added in v0.1.0

type DatabaseType string
const (
	SQLite   DatabaseType = "sqlite"
	Postgres DatabaseType = "postgres"
)

Jump to

Keyboard shortcuts

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