migratex

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GormModel

type GormModel interface {
	TableName() string
}

type Migrator

type Migrator struct {
	// contains filtered or unexported fields
}

func NewAllMigrator

func NewAllMigrator(pg *gorm.DB, allModels []any) *Migrator

func (*Migrator) ListTables

func (m *Migrator) ListTables() (tbs []string)

func (*Migrator) MigrateAll

func (m *Migrator) MigrateAll(ctx context.Context) error

func (*Migrator) MigrateOne

func (m *Migrator) MigrateOne(ctx context.Context, tbName string) error

Jump to

Keyboard shortcuts

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