Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExecuteResult ¶
type ExecuteResult struct {
Completed int
Total int
Error error // nil if all steps succeeded
FailStep int // which step failed (0 if none)
}
ExecuteResult holds the results of executing a plan.
type Plan ¶
type Plan struct {
Name string // filename without directory
FromHash string
ToHash string
CreatedAt time.Time
Steps []*Step
}
Plan represents a migration plan file with per-step entries.
func FromDiffPlan ¶
FromDiffPlan converts a diff.Plan into a plan.Plan.
func (*Plan) HasDestructive ¶
HasDestructive checks if any step SQL contains destructive operations.
Click to show internal directories.
Click to hide internal directories.