Versions in this module Expand all Collapse all v1 v1.0.0 May 31, 2026 Changes in this version + type AddColumn struct + Column *irv1.Column + Table *irv1.Table + func (c *AddColumn) DownSQL() string + func (c *AddColumn) UpSQL() string + type AddConstraint struct + Constraint *irv1.Constraint + Table *irv1.Table + func (c *AddConstraint) DownSQL() string + func (c *AddConstraint) UpSQL() string + type AddEnumValue struct + After string + Enum *irv1.EnumType + Value string + func (c *AddEnumValue) DownSQL() string + func (c *AddEnumValue) UpSQL() string + type AlterColumnType struct + Column string + From *irv1.TypeRef + Table *irv1.Table + To *irv1.TypeRef + func (c *AlterColumnType) DownSQL() string + func (c *AlterColumnType) UpSQL() string + type Change interface + DownSQL func() string + UpSQL func() string + type CreateComposite struct + Composite *irv1.CompositeType + func (c *CreateComposite) DownSQL() string + func (c *CreateComposite) UpSQL() string + type CreateDomain struct + Domain *irv1.DomainType + func (c *CreateDomain) DownSQL() string + func (c *CreateDomain) UpSQL() string + type CreateEnum struct + Enum *irv1.EnumType + func (c *CreateEnum) DownSQL() string + func (c *CreateEnum) UpSQL() string + type CreateFunction struct + Function *irv1.Function + func (c *CreateFunction) DownSQL() string + func (c *CreateFunction) UpSQL() string + type CreateIndex struct + Index *irv1.Index + Schema string + Table *irv1.Table + func (c *CreateIndex) DownSQL() string + func (c *CreateIndex) UpSQL() string + type CreateMatView struct + View *irv1.MaterializedView + func (c *CreateMatView) DownSQL() string + func (c *CreateMatView) UpSQL() string + type CreateProcedure struct + Procedure *irv1.Procedure + func (c *CreateProcedure) DownSQL() string + func (c *CreateProcedure) UpSQL() string + type CreateRange struct + Range *irv1.RangeType + func (c *CreateRange) DownSQL() string + func (c *CreateRange) UpSQL() string + type CreateSchema struct + Schema *irv1.Schema + func (c *CreateSchema) DownSQL() string + func (c *CreateSchema) UpSQL() string + type CreateSequence struct + Sequence *irv1.Sequence + func (c *CreateSequence) DownSQL() string + func (c *CreateSequence) UpSQL() string + type CreateTable struct + Table *irv1.Table + func (c *CreateTable) DownSQL() string + func (c *CreateTable) UpSQL() string + type CreateTrigger struct + Trigger *irv1.Trigger + func (c *CreateTrigger) DownSQL() string + func (c *CreateTrigger) UpSQL() string + type CreateView struct + View *irv1.View + func (c *CreateView) DownSQL() string + func (c *CreateView) UpSQL() string + type DropColumn struct + Column *irv1.Column + Table *irv1.Table + func (c *DropColumn) DownSQL() string + func (c *DropColumn) UpSQL() string + type DropComposite struct + Composite *irv1.CompositeType + func (c *DropComposite) DownSQL() string + func (c *DropComposite) UpSQL() string + type DropConstraint struct + Constraint *irv1.Constraint + Table *irv1.Table + func (c *DropConstraint) DownSQL() string + func (c *DropConstraint) UpSQL() string + type DropDefault struct + Column string + Old *irv1.Expr + Table *irv1.Table + func (c *DropDefault) DownSQL() string + func (c *DropDefault) UpSQL() string + type DropDomain struct + Domain *irv1.DomainType + func (c *DropDomain) DownSQL() string + func (c *DropDomain) UpSQL() string + type DropEnum struct + Enum *irv1.EnumType + func (c *DropEnum) DownSQL() string + func (c *DropEnum) UpSQL() string + type DropFunction struct + Function *irv1.Function + func (c *DropFunction) DownSQL() string + func (c *DropFunction) UpSQL() string + type DropIndex struct + Index *irv1.Index + Schema string + Table *irv1.Table + func (c *DropIndex) DownSQL() string + func (c *DropIndex) UpSQL() string + type DropMatView struct + View *irv1.MaterializedView + func (c *DropMatView) DownSQL() string + func (c *DropMatView) UpSQL() string + type DropNotNull struct + Column string + Table *irv1.Table + func (c *DropNotNull) DownSQL() string + func (c *DropNotNull) UpSQL() string + type DropProcedure struct + Procedure *irv1.Procedure + func (c *DropProcedure) DownSQL() string + func (c *DropProcedure) UpSQL() string + type DropRange struct + Range *irv1.RangeType + func (c *DropRange) DownSQL() string + func (c *DropRange) UpSQL() string + type DropSchema struct + Schema *irv1.Schema + func (c *DropSchema) DownSQL() string + func (c *DropSchema) UpSQL() string + type DropSequence struct + Sequence *irv1.Sequence + func (c *DropSequence) DownSQL() string + func (c *DropSequence) UpSQL() string + type DropTable struct + Table *irv1.Table + func (c *DropTable) DownSQL() string + func (c *DropTable) UpSQL() string + type DropTrigger struct + Trigger *irv1.Trigger + func (c *DropTrigger) DownSQL() string + func (c *DropTrigger) UpSQL() string + type DropView struct + View *irv1.View + func (c *DropView) DownSQL() string + func (c *DropView) UpSQL() string + type Plan struct + Changes []Change + func Diff(from, to *irv1.Catalog) (*Plan, error) + func (p *Plan) DownSQL() string + func (p *Plan) Empty() bool + func (p *Plan) UpSQL() string + type ReplaceFunction struct + From *irv1.Function + To *irv1.Function + func (c *ReplaceFunction) DownSQL() string + func (c *ReplaceFunction) UpSQL() string + type ReplaceProcedure struct + From *irv1.Procedure + To *irv1.Procedure + func (c *ReplaceProcedure) DownSQL() string + func (c *ReplaceProcedure) UpSQL() string + type ReplaceView struct + From *irv1.View + To *irv1.View + func (c *ReplaceView) DownSQL() string + func (c *ReplaceView) UpSQL() string + type SetDefault struct + Column string + Default *irv1.Expr + Old *irv1.Expr + Table *irv1.Table + func (c *SetDefault) DownSQL() string + func (c *SetDefault) UpSQL() string + type SetNotNull struct + Column string + Table *irv1.Table + func (c *SetNotNull) DownSQL() string + func (c *SetNotNull) UpSQL() string