Documentation ¶ Index ¶ type GormModel type Migrator func NewAllMigrator(pg *gorm.DB, allModels []any) *Migrator func (m *Migrator) ListTables() (tbs []string) func (m *Migrator) MigrateAll(ctx context.Context) error func (m *Migrator) MigrateOne(ctx context.Context, tbName string) error 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 Source Files ¶ View all Source files migrator.go Click to show internal directories. Click to hide internal directories.