TableDiff class

The mechanical decomposition of an AlterTable into its constituent changes.

Constructors

TableDiff.of(AlterTable operation)
Computes the diff carried by operation.
factory

Properties

addedChecks Map<String, String>
CHECK constraints present only in the new table, by name.
final
addedColumns List<ColumnInfo>
Columns present only in the new table (renames excluded).
final
addedIndexes List<IndexInfo>
Indexes to create (new, or the create half of a changed index).
final
alteredColumns List<(ColumnInfo, ColumnInfo)>
Columns present in both whose definition changed, as (old, new).
final
changedChecks Map<String, (String, String)>
CHECK constraints whose expression changed, name to (old, new).
final
changesDefinitions bool
Whether the change touches column definitions or checks, the changes a dialect without a general ALTER COLUMN must rebuild for.
no setter
droppedChecks Map<String, String>
CHECK constraints present only in the old table, by name.
final
droppedColumns List<ColumnInfo>
Columns present only in the old table (renames excluded).
final
droppedIndexes List<IndexInfo>
Indexes to drop (gone, or the drop half of a changed index).
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited