ddldiff

package
v0.0.0-...-1c2aa41 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(preObjs []Diffable, postObjs []Diffable, context Context) []action.Action

Diff two arrays of Diffables

Types

type Context

type Context struct {
	Schema string
}

Define diff context

type Diffable

type Diffable interface {
	// Diff with other Diffable
	Diff(other Diffable, context Context) []action.Action
	// Get other diffables inside the current one
	Children() []Diffable
	// Return actions to drop the current diffable
	Drop(context Context) []action.Action
	// Compare current Diffable with other
	IsEqual(other Diffable) bool
}

Jump to

Keyboard shortcuts

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