SchemaColumnDifference class

The difference between two compared SchemaColumns.

This class is used for comparing database columns for validation and migration.

Constructors

SchemaColumnDifference(SchemaColumn expectedColumn, SchemaColumn actualColumn)
Creates a new instance that represents the difference between expectedColumn and actualColumn.

Properties

actualColumn SchemaColumn
The actual column. [...]
final
errorMessages → List<String>
Human-readable list of differences between expectedColumn and actualColumn. [...]
read-only
expectedColumn SchemaColumn
The expected column. [...]
final
hasDifferences → bool
Whether or not expectedColumn and actualColumn are different.
read-only
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

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Constants

symbols → const List<Symbol>
List of comparable properties of a SchemaColumn.
const [#name, #isIndexed, #type, #isNullable, #autoincrement, #isUnique, #defaultValue, #isPrimaryKey, #relatedTableName, #relatedColumnName, #deleteRule]