TransformFieldOperation class final
Transforms values in existing records using a portable expression.
filter is evaluated before the transformation. Adapters that support paging use batchSize as their page limit; set-based SQL adapters may execute the same operation as one statement. With onlyMissing, existing non-null target values are preserved so retries remain safe.
- Inheritance
-
- Object
- MigrationOperation
- TransformFieldOperation
- Available extensions
Constructors
- TransformFieldOperation({required String entityName, required String field, required MigrationValueTransform transform, FilterExpression filter = const EmptyFilterExpression(), int batchSize = 100, bool onlyMissing = true})
-
const
Properties
- batchSize → int
-
final
- entityName → String
-
finalinherited
- field → String
-
final
- filter → FilterExpression
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDestructive → bool
-
Available on MigrationOperation, provided by the MigrationOperationClassification extension
no setter - onlyMissing → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safety → MigrationOperationSafety
-
Available on MigrationOperation, provided by the MigrationOperationClassification extension
no setter - transform → MigrationValueTransform
-
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