Versions in this module Expand all Collapse all v1 v1.0.0 Aug 17, 2019 Changes in this version + const DiffTypeMigrations + const Version + var AvailableFormatters map[string]Formatter = map[string]Formatter + func StringSetDiff(a []string, b []string) (diff []string) + type CompactFormatter struct + func (f *CompactFormatter) Format(diff *Diff) interface{} + type Diff struct + DSN1 *ParsedDSN + DSN2 *ParsedDSN + From *tengo.Schema + IncludeMigrations bool + MigrationsCol string + To *tengo.Schema + func NewDiff(DSN1, DSN2 string, from, to *tengo.Schema, includeMigrations bool, ...) *Diff + func (d *Diff) Compute() []tengo.ObjectDiff + func (d *Diff) Raw() *tengo.SchemaDiff + type Formatter interface + Format func(diff *Diff) interface{} + func NewFormatter(diffType string) (Formatter, error) + type MigrationsDiff struct + Column string + Context *Diff + Missing1 []string + Missing2 []string + Table string + func NewMigrationsDiff(d *Diff) (m *MigrationsDiff, err error) + func (m *MigrationsDiff) DiffType() tengo.DiffType + func (m *MigrationsDiff) IsEmpty() bool + func (m *MigrationsDiff) ObjectKey() tengo.ObjectKey + func (m *MigrationsDiff) Statement(tengo.StatementModifiers) (string, error) + type ParsedDSN struct + func ParseDSN(DSN string) *ParsedDSN + type SQLFormatter struct + func (f *SQLFormatter) Format(diff *Diff) interface{} + type TableDiff struct + func (d *TableDiff) AlterClauses() []tengo.TableAlterClause