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