Versions in this module Expand all Collapse all v1 v1.0.5 Apr 30, 2023 Changes in this version + const CurrentPlanVersion + var ErrInvalidPlanVersion = errors.New("invalid plan version") + var ErrParse = fmt.Errorf("no match") + var Regex = regexp.MustCompile(`^([0-9]+)_(.*)\.(` + string(Down) + `|` + string(Up) + `)\.(.*)$`) + type Direction string + const Down + const Up + type Migration struct + Bytes []byte + Direction Direction + Name string + RawName string + Version uint32 + func NewMigration(migrationBytes io.ReadCloser, fileName string) (*Migration, error) + func (m *Migration) Query() string + type Plan struct + Auto bool + Migrations []*Migration + RevertMigrations []*Migration + Version int + func NewPlan(migrations, rollback []*Migration, auto bool) *Plan + func (p *Plan) Validate() error