migrations

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMigrations

func RunMigrations(db *sql.DB, dbType string) error

Types

type Migration

type Migration struct {
	TableName   string
	Description string
	SQL         map[string]string // Key is database type ("postgres", "mysql")
}

Migration represents a database migration

func GetMigrations

func GetMigrations() []Migration

GetMigrations returns all migrations

Jump to

Keyboard shortcuts

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