Documentation ¶
Overview ¶
Package migration define steps that manage the schema migration using sql-migrate engine
Index ¶
- func Load(ctx context.Context, log *logrus.Entry, recipePath string, name string, ...) (priority uint, steps []common.Steper, err error)
- type Step
- func (st *Step) Cancel(log *logrus.Entry)
- func (st *Step) Do(ctx context.Context, log *logrus.Entry) error
- func (st *Step) Finish(log *logrus.Entry)
- func (st *Step) Init(ctx context.Context, log *logrus.Entry) error
- func (st *Step) PostLoad(log *logrus.Entry, superseed map[string]string) error
- func (st *Step) ToSkip(ctx context.Context, log *logrus.Entry) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(ctx context.Context, log *logrus.Entry, recipePath string, name string, nameIndex int, v *viper.Viper, dss datasource.Datasourcers, force bool, dryRun bool, limitedTags []string) (priority uint, steps []common.Steper, err error)
Load data from step file using its viper representation a return priority and list of steps.
Types ¶
type Step ¶
type Step struct { Name string // contains filtered or unexported fields }
Step informations.
func (*Step) Finish ¶
Finish manage the finish of the step (called after all other step of the same priority has ended their Do).
Click to show internal directories.
Click to hide internal directories.