migrator¶
import "github.com/go-rel/rel/migrator"
Overview¶
type Migrator¶
type Migrator struct {
// contains filtered or unexported fields
}
func New¶
func New(repo rel.Repository) Migrator
func (*Migrator) Instrumentation¶
func (m *Migrator) Instrumentation(instrumenter rel.Instrumenter)
func (*Migrator) Migrate¶
func (m *Migrator) Migrate(ctx context.Context)
func (*Migrator) Register¶
func (m *Migrator) Register(v int, up func(schema *rel.Schema), down func(schema *rel.Schema))
func (*Migrator) Rollback¶
func (m *Migrator) Rollback(ctx context.Context)
Last update: 2022-02-20