Versions in this module Expand all Collapse all v1 v1.1.0 Jan 28, 2026 Changes in this version + type Driver interface + Close func() error + Diff func(ctx context.Context) (string, error) + type PostgresColumn struct + Default sql.NullString + Name string + NotNull bool + Type string + func (c *PostgresColumn) Copy() *PostgresColumn + func (c *PostgresColumn) HasEqualAttributes(other *PostgresColumn) bool + func (c *PostgresColumn) String() string + type PostgresConstraint struct + Def string + Name string + Type string + func (c *PostgresConstraint) String() string + type PostgresDriver struct + SourceDatabaseConnection *sql.DB + TargetDatabaseConnection *sql.DB + func NewPostgresDriver(config *PostgresDriverConfig) (*PostgresDriver, error) + func (d *PostgresDriver) Close() error + func (d *PostgresDriver) Diff(ctx context.Context) (string, error) + func (d *PostgresDriver) DiffTables(ctx context.Context) (string, error) + func (d *PostgresDriver) DiffViews(ctx context.Context) (string, error) + func (d *PostgresDriver) GetTable(ctx context.Context, db *sql.DB, tableName string) (*PostgresTable, error) + func (d *PostgresDriver) GetTables(ctx context.Context, db *sql.DB) ([]*PostgresTable, error) + func (d *PostgresDriver) GetViews(ctx context.Context, db *sql.DB) ([]*PostgresView, error) + type PostgresDriverConfig struct + SourceConnectionString string + TargetConnectionString string + type PostgresIndex struct + Def string + Name string + func (i *PostgresIndex) String() string + type PostgresTable struct + Columns []*PostgresColumn + Constraints []*PostgresConstraint + Indexes []*PostgresIndex + Name string + Triggers []*PostgresTrigger + func (t *PostgresTable) ColumnByName(name string) (*PostgresColumn, bool) + func (t *PostgresTable) ConstraintByName(name string) (*PostgresConstraint, bool) + func (t *PostgresTable) DiffTable(other *PostgresTable) (string, error) + func (t *PostgresTable) IndexByName(name string) (*PostgresIndex, bool) + func (t *PostgresTable) String() string + func (t *PostgresTable) StringCreateTable() string + func (t *PostgresTable) TriggerByName(name string) (*PostgresTrigger, bool) + type PostgresTrigger struct + Def string + Name string + func (t *PostgresTrigger) String() string + type PostgresView struct + Def string + Name string + func (v *PostgresView) String() string + type SQLLiteDriverConfig struct + SourceDatabasePath string + TargetDatabasePath string + type SQLiteColumn struct + Default sql.NullString + Name string + NotNull bool + PrimaryKey bool + Type string + func (c *SQLiteColumn) Copy() *SQLiteColumn + func (c *SQLiteColumn) HasEqualAttributes(other *SQLiteColumn) bool + func (c *SQLiteColumn) IsTypeChangeCompatible(other *SQLiteColumn) bool + func (c *SQLiteColumn) String() string + type SQLiteDriver struct + SourceDatabaseConnection *sql.DB + TargetDatabaseConnection *sql.DB + func NewSQLiteDriver(config *SQLLiteDriverConfig) (*SQLiteDriver, error) + func (d *SQLiteDriver) Close() error + func (d *SQLiteDriver) Diff(ctx context.Context) (string, error) + func (d *SQLiteDriver) DiffTables(ctx context.Context) (string, error) + func (d *SQLiteDriver) DiffViews(ctx context.Context) (string, error) + func (d *SQLiteDriver) GetIndexColumns(ctx context.Context, db *sql.DB, indexName string) ([]string, error) + func (d *SQLiteDriver) GetTable(ctx context.Context, db *sql.DB, tableName string) (*SQLiteTable, error) + func (d *SQLiteDriver) GetTableColumns(ctx context.Context, db *sql.DB, tableName string) ([]*SQLiteColumn, error) + func (d *SQLiteDriver) GetTableForeignKeys(ctx context.Context, db *sql.DB, tableName string) ([]*SQLiteForeignKey, error) + func (d *SQLiteDriver) GetTableIndexes(ctx context.Context, db *sql.DB, tableName string) ([]*SQLiteIndex, error) + func (d *SQLiteDriver) GetTableTriggers(ctx context.Context, db *sql.DB, tableName string) ([]*SQLiteTrigger, error) + func (d *SQLiteDriver) GetTables(ctx context.Context, db *sql.DB) ([]*SQLiteTable, error) + func (d *SQLiteDriver) GetViews(ctx context.Context, db *sql.DB) ([]*SQLiteView, error) + type SQLiteForeignKey struct + From []string + OnDelete string + OnUpdate string + Table string + To []string + func (fk *SQLiteForeignKey) Equal(other *SQLiteForeignKey) bool + func (fk *SQLiteForeignKey) String() string + type SQLiteIndex struct + Columns []string + Name string + Table string + Unique bool + func (i *SQLiteIndex) Equal(other *SQLiteIndex) bool + func (i *SQLiteIndex) String() string + type SQLiteTable struct + Columns []*SQLiteColumn + ForeignKeys []*SQLiteForeignKey + Indexes []*SQLiteIndex + Name string + Triggers []*SQLiteTrigger + func (t *SQLiteTable) ColumnByName(name string) (*SQLiteColumn, bool) + func (t *SQLiteTable) Copy() *SQLiteTable + func (t *SQLiteTable) DiffColumns(other *SQLiteTable) *SQLiteTableColumnsDiff + func (t *SQLiteTable) DiffIndexes(other *SQLiteTable) (string, error) + func (t *SQLiteTable) DiffTable(other *SQLiteTable) (string, error) + func (t *SQLiteTable) DiffTriggers(other *SQLiteTable) (string, error) + func (t *SQLiteTable) IndexByName(name string) (*SQLiteIndex, bool) + func (t *SQLiteTable) String() string + func (t *SQLiteTable) StringCreateIndexes() string + func (t *SQLiteTable) StringCreateTable() string + func (t *SQLiteTable) StringCreateTriggers() string + func (t *SQLiteTable) TriggerByName(name string) (*SQLiteTrigger, bool) + type SQLiteTableColumnsDiff struct + Added []string + ForeignKeysChanged bool + Modified []string + Removed []string + Renamed map[string]string + type SQLiteTrigger struct + Name string + SQL string + type SQLiteView struct + Name string + SQL string + func (v *SQLiteView) Diff(other *SQLiteView) (string, error)