Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comparer ¶
Comparer is a type capable of comparing two entities.
func NewDatabaseComparer ¶
NewDatabaseComparer returns a new database comparer given two resources as connection strings or data file paths.
func NewFileComparer ¶
NewFileComparer creates a new fileComparer.
type Difference ¶
type Difference struct {
Name, Value1, Value2 string
}
Difference is a type capable of holding an identified by name entity values in compared entities. For example, a name of a table field with values in database1 and database2.
func NewFieldsDifference ¶
func NewFieldsDifference(f1, f2 *field.Field, mixedDBTypes bool) *Difference
NewFieldsDifference returns two field.Field objects schemas Difference.
type Differences ¶
type Differences []*Difference
func NewDataRowDifferences ¶
func (Differences) Format ¶
func (d Differences) Format(verbose bool) string
Format returns differences formatted depending on the verbosity level.
Click to show internal directories.
Click to hide internal directories.