Documentation
¶
Overview ¶
Package review plans and applies hash-bound, transactional schema migrations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Artifact ¶
type Artifact struct {
Version int `json:"version"`
Baseline Snapshot `json:"baseline"`
Desired Snapshot `json:"desired"`
// Changes lists every change between baseline and desired, selected or not.
Changes []migrate.Change `json:"changes,omitempty"`
// Selection limits Steps to these change IDs; empty means every change.
Selection []string `json:"selection,omitempty"`
Steps []Step `json:"steps"`
Advisory []string `json:"advisory,omitempty"`
Hash string `json:"hash"`
}
func (Artifact) Acknowledgements ¶
type Options ¶
type Options struct {
Dialect string
Schema string
DesiredHCL string
Advisory []string
PreserveOmitted bool
// Selection limits the plan to these change IDs; empty plans every change.
Selection []string
// Baseline plans from this reviewed snapshot instead of inspecting the database.
Baseline *Snapshot
}
type Result ¶
Click to show internal directories.
Click to hide internal directories.