The difference between two SchemaTables.

This class is used for comparing schemas for validation and migration.

Static Methods

createColumnSource(SchemaColumn column) → String

deleteColumnSource(SchemaColumn column) → String

Constructors

SchemaTableDifference(SchemaTable expectedTable, SchemaTable actualTable)

Creates a new instance that represents the difference between expectedTable and actualTable.

Properties

actualTable SchemaTable

The actual table.

final
errorMessages → List<String>

Human-readable list of differences between expectedTable and actualTable.

read-only
expectedTable SchemaTable

The expected table.

final
hasDifferences → bool

Whether or not expectedTable and actualTable are the same.

read-only
uniqueSetDifference SchemaTableUniqueSetDifference

The difference between SchemaTable.uniqueColumnSets.

read / write
hashCode → int

The hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

generateUpgradeSource({List<String> changeList }) → String

Returns Dart code to upgrade expectedTable to actualTable.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited