Versions in this module Expand all Collapse all v0 v0.1.1 Mar 16, 2026 v0.1.0 Feb 27, 2026 Changes in this version + func NormalizeColumnType(t string, aliases map[string]string) string + func NormalizeDefaultExpression(expr string) string + func NormalizeEngine(engine string) string + type Column struct + Comment string + CompressionCodec string + DefaultExpression string + Name string + Type string + type ColumnProperties struct + Comment string + CompressionCodec string + DefaultExpression string + DefaultKind string + Position uint64 + Type string + type CombinedColumn struct + Name string + Presence Presence + Source *ColumnProperties + Target *ColumnProperties + type CombinedDatabase struct + Name string + Presence Presence + Tables []CombinedTable + type CombinedFunction struct + Name string + Presence Presence + Source *FunctionProperties + Target *FunctionProperties + type CombinedSchema struct + Databases []CombinedDatabase + Functions []CombinedFunction + func NewCombinedSchema(from, to Schema) *CombinedSchema + type CombinedTable struct + Columns []CombinedColumn + Name string + Presence Presence + Source *TableProperties + Target *TableProperties + type Database struct + Name string + Tables []Table + type Function struct + CreateQuery string + Name string + type FunctionProperties struct + CreateQuery string + type GeneratorConfig struct + ColumnRenameSimilarityThreshold float64 + TableRenameSimilarityThreshold float64 + TypeAliases map[string]string + type Operation struct + Action OperationAction + CanLoseData bool + Explanation string + Level OperationLevel + Statements []string + type OperationAction string + const ActionAlter + const ActionCreate + const ActionDrop + const ActionRename + type OperationLevel string + const LevelColumn + const LevelDatabase + const LevelFunction + const LevelIndex + const LevelTable + type Presence string + const Both + const Source + const Target + type SQLStatements struct + StatementsCleaned []string + Version string + func ParseFile(content string) (*SQLStatements, error) + func (stmts *SQLStatements) Add(s string) + func (stmts *SQLStatements) ToStatements() string + type Schema struct + Databases []Database + Functions []Function + type Strategy struct + Description string + Name string + Operations []Operation + type SyncPlan struct + Strategies []Strategy + type SyncPlanGenerator struct + func NewSyncPlanGenerator(config GeneratorConfig) *SyncPlanGenerator + func (g *SyncPlanGenerator) Generate(combined *CombinedSchema) *SyncPlan + type Table struct + Columns []Column + Engine string + Name string + OrderBy []string + PartitionBy string + PrimaryKey []string + Settings map[string]string + type TableProperties struct + Engine string + OrderBy []string + PartitionBy string + PrimaryKey []string + Settings map[string]string