dbdiff

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VerboseContextKey   = contextKey("verbose")
	VVerboseContextKey  = contextKey("vverbose")
	VVVerboseContextKey = contextKey("vvverbose")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparer

type Comparer interface {
	Compare(ctx context.Context, entity1 string, entity2 string)
	// contains filtered or unexported methods
}

Comparer is a type capable of comparing two entities.

func NewDatabaseComparer

func NewDatabaseComparer() Comparer

NewDatabaseComparer returns a new databaseComparer object.

func NewFileComparer

func NewFileComparer() Comparer

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL