Red ā Dirtable
MetamodelX::Red::Dirtable
method set-dirty
method set-dirty(
\obj,
Set(Any) $attr
) returns MuAccepts a Set of attributes of model and enables dirtiness flag for them, which means that the values were changed and need a database sync.
method is-dirty
method is-dirty(
Any:D \obj
) returns BoolReturns True if any of the object attributes were changed from original database record values.
method dirty-columns
method dirty-columns(
Any:D \obj
) returns MuReturns dirty columns of the object.
method clean-up
method clean-up(
Any:D \obj
) returns MuErases dirty status from all model's attributes, but does not (!) revert their values to original ones.