# Packages
No description provided by the author
# Functions
NewDiff creates a new Diff.
NewFormatter creates a new value of a specific formatter based on the given difftype.
ComputeMigrationsDiff calculates a MigrationsDiff Object, which represents the differences between two tables containing the versions of the migrations that were run in two servers.
ParseDSN parses a DSN string into an object capable of returning information about its parts.
StringSetDiff returns the difference between two sets of strings.
# Constants
A integer denoting our custom diff type for schema migrations We add 10^6 to iota, to avoid collisions with tengo diff types.
Version is the semantic version of mydiff.
# Variables
AvailableFormatters is a map with the available formatters indexed by their name.
# Structs
CompactFormatter formats a diff in a compact human-readable way.
Diff encapsulates the data necessary to compute a diff between two schemas in servers denoted by DSN1, and DSN2.
MigrationDiff is an implementation of a tengo.ObjectDiff aimed at representing the difference in the migrations recorded in both schemas.
No description provided by the author
SQLFormatter formats a Diff in SQL format (ALTER, CREATE and DROP statements).
TableDiff is an adapter of the tengo.TableDiff that exposes the alterClauses field, in order to be visitable by any formatter object.
# Interfaces
Formatter is the interface implemented by different values that know how To format a diff.