package
Version:
v1.0.6
Opens a new window with list of versions in this module.
Published: Oct 23, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package review plans and applies hash-bound, transactional schema migrations.
Validate checks the reviewed hash, scope, acknowledgements and execution options without opening a database.
type Artifact struct {
Version int `json:"version"`
Baseline Snapshot `json:"baseline"`
Desired Snapshot `json:"desired"`
Steps []Step `json:"steps"`
Advisory []string `json:"advisory,omitempty"`
Hash string `json:"hash"`
}
const (
Applied Outcome = "applied"
AlreadyApplied Outcome = "already-applied"
Failed Outcome = "failed"
CommitUnknown Outcome = "commit-unknown"
)
type Result struct {
Hash string `json:"hash"`
Outcome Outcome `json:"outcome"`
Steps int `json:"steps"`
}
type Snapshot struct {
Dialect string `json:"dialect"`
Schema string `json:"schema"`
HCL string `json:"hcl"`
}
type Step struct {
ID string `json:"id"`
SQL string `json:"sql"`
Destructive bool `json:"destructive,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.