Versions in this module Expand all Collapse all v1 v1.7.3 Feb 28, 2026 v1.7.2 Feb 20, 2026 v1.7.1 Feb 16, 2026 v1.7.0 Feb 9, 2026 Changes in this version + type Directive struct + Message string + Type DirectiveType + type DirectiveType string + const DirectiveTypeWait + func (dt DirectiveType) String() string + type ExecutionGroup struct + Steps []Step + type Plan struct + CreatedAt time.Time + Groups []ExecutionGroup + PgschemaVersion string + SourceDiffs []diff.Diff + SourceFingerprint *fingerprint.SchemaFingerprint + Version string + func FromJSON(jsonData []byte) (*Plan, error) + func NewPlan(diffs []diff.Diff) *Plan + func NewPlanWithFingerprint(diffs []diff.Diff, sourceFingerprint *fingerprint.SchemaFingerprint) *Plan + func (p *Plan) HasAnyChanges() bool + func (p *Plan) HumanColored(enableColor bool) string + func (p *Plan) ToJSON() (string, error) + func (p *Plan) ToJSONWithDebug(includeSource bool) (string, error) + func (p *Plan) ToSQL(format SQLFormat) string + type PlanSummary struct + Add int + ByType map[string]TypeSummary + Change int + Destroy int + Total int + type RewriteStep struct + CanRunInTransaction bool + Directive *Directive + SQL string + type SQLFormat string + const SQLFormatHuman + const SQLFormatRaw + type Step struct + Directive *Directive + Operation string + Path string + SQL string + Type string + type Type string + const TypeColumn + const TypeColumnPrivilege + const TypeDefaultPrivilege + const TypeFunction + const TypeIndex + const TypeMaterializedView + const TypePolicy + const TypePrivilege + const TypeProcedure + const TypeRLS + const TypeRevokedDefaultPrivilege + const TypeSchema + const TypeSequence + const TypeTable + const TypeTrigger + const TypeType + const TypeView + type TypeSummary struct + Add int + Change int + Destroy int