migration

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"vef:storage:migration",

	fx.Invoke(autoMigrate),
)

Module provides automatic database migration for the storage module.

Functions

func GetMigrationSQL

func GetMigrationSQL(kind config.DBKind) (string, error)

GetMigrationSQL returns the storage DDL script for the given dialect. Retained for tests and tooling that needs the raw SQL.

func Migrate

func Migrate(ctx context.Context, db orm.DB, kind config.DBKind) error

Migrate runs the storage module's DDL migration for the given database kind. Idempotent: no-op when every expected table is already present.

Types

This section is empty.

Jump to

Keyboard shortcuts

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