Backfill class final

A reviewed, bounded update using this migration's historical table definition. Expressions and completion SQL are trusted migration code. Primary keys must remain immutable, including in application writes and triggers.

Inheritance

Constructors

Backfill(TableSchema table, {required Map<String, String> set, String where = 'TRUE', required String doneWhen, int batchSize = 1000})
Prepares bounded updates over an immutable, non-null historical primary key.

Properties

batchSize int
Maximum rows updated in each committed batch.
final
doneWhen String
SELECT returning one boolean to verify completion after scanning.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
set Map<String, String>
Non-key target columns mapped to trusted SQL expressions.
final
table TableSchema
Frozen physical table definition from this migration.
final
where String
Trusted SQL predicate selecting rows that still need an update.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Stable operation data used in migration checksums and reports.
override
toString() String
A string representation of this object.
inherited

Operators

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