DVExpandContractPlan class final
The safe version of a blocking change: five phases, each its own deploy.
- expand -- expand adds the new column alongside the old one.
- dual-write -- generated model code writes both; reads stay on the old.
- backfill -- existing rows are copied from sourceColumn to targetColumn in chunks.
- verify -- every chunk is compared on both shapes.
- contract -- reads move to the new shape, and contract removes the old one in a later release.
Constructors
-
DVExpandContractPlan({required DVSchemaChange original, required DVAddColumn expand, required String sourceColumn, required String targetColumn, required List<
DVSchemaChange> contract, required DVSchemaChangeClass expandClass, required DVSchemaChangeClass contractClass}) -
const
Properties
-
contract
→ List<
DVSchemaChange> -
final
- contractClass → DVSchemaChangeClass
-
The most expensive of the contract changes on this server.
final
- expand → DVAddColumn
-
final
- expandClass → DVSchemaChangeClass
-
What expand costs on this server. Never blocking: a safe version that
blocks is not offered.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- original → DVSchemaChange
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceColumn → String
-
final
- targetColumn → String
-
final
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