diff_calc

package
v1.0.36 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2025 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparator

type Comparator struct {
	// contains filtered or unexported fields
}

Comparator - Compares two Schemas and return an instance of SchemaDiff.

func NewComparator

func NewComparator(platform DiffCalcPlatform) *Comparator

NewComparator - The comparator can be only instantiated by a schema manager.

func (*Comparator) CompareSchemas

func (c *Comparator) CompareSchemas(oldSchema, newSchema *assets.Schema) *diff_dtos.SchemaDiff

CompareSchemas - Returns the differences between the schemas.

func (*Comparator) CompareTables

func (c *Comparator) CompareTables(oldTable, newTable *assets.Table) *diff_dtos.TableDiff

CompareTables - Compares the tables and returns the difference between them.

type DiffCalcPlatform

type DiffCalcPlatform interface {
	ColumnsEqual(column1 *assets.Column, column2 *assets.Column) bool
}

Jump to

Keyboard shortcuts

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