Versions in this module Expand all Collapse all v0 v0.1.0 Jan 25, 2026 Changes in this version + func Plan(current, target *DatabaseSchema) (automated []string, manual []string) + func Sync(ctx context.Context, pool *pgxpool.Pool, target *DatabaseSchema) error + type ColumnSchema struct + Default string + Length int + Name string + Nullable bool + Precision int + Type ColumnType + WithTimezone bool + type ColumnType string + const ColumnTypeBoolean + const ColumnTypeBytes + const ColumnTypeInteger + const ColumnTypeNumeric + const ColumnTypeSerial + const ColumnTypeText + const ColumnTypeTimestamp + const ColumnTypeVarchar + type DatabaseSchema struct + Tables []*TableSchema + func Read(ctx context.Context, pool *pgxpool.Pool) (*DatabaseSchema, error) + type IndexSchema struct + Columns []string + Name string + Unique bool + type TableSchema struct + Columns []*ColumnSchema + Indexes []*IndexSchema + Name string + PrimaryKey []string