Versions in this module Expand all Collapse all v0 v0.1.0 Sep 11, 2022 Changes in this version + func TranslateState(state State) []string + type Config struct + AllowOutOfOrder bool + Database database.Database + Path string + type Data struct + AppliedAt uint64 + AppliedBy string + Checksum string + Description string + ExecutionTime uint32 + ScriptName string + Sequence *uint64 + Status State + Version string + type Hooks struct + MigrateErr func(dt Data, err error) + PostMigrate func(dt Data) + PostRollback func(dt Data) + PreMigrate func(dt Data) + PreRollback func(dt Data) + RollbackErr func(dt Data, err error) + type Properties struct + func New(config *Config) (*Properties, error) + func (p *Properties) Create(name string) ([]string, error) + func (p *Properties) Get() ([]*Data, error) + func (p *Properties) Migrate() error + func (p *Properties) Rollback(steps int) error + type State uint16 + const AvailableState + const FailedState + const FutureState + const IgnoredState + const MissingState + const OutdatedState + const PendingState + const SuccessState + const SupersededState + const UndoneState + const UnknownState