DVRetention class final

How long a model's rows are kept before a sweep removes them.

Constructors

DVRetention.days(int days, {String? from, DVRetentionAction then = DVRetentionAction.delete})
Kept days after the timestamp in column from, then then.
const

Properties

days → int?
final
duration → Duration?
no setter
from → String?
final
hashCode → int
The hash code for this object.
no setterinherited
isIndefinite → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
then → DVRetentionAction
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

Constants

anonymize → const DVRetentionAction
then: DVRetention.anonymize: an expired row stays and its personal fields are replaced.
delete → const DVRetentionAction
then: DVRetention.delete: an expired row is deleted.
indefinite → const DVRetention
Kept for ever — deliberately, and declared so.