Durability enum
How commits reach stable storage.
Why an enum and not a flag: the three levels are distinct guarantees an app chooses on purpose, and each maps to one engine setting.
Values
- full → const Durability
-
Every commit is flushed before it completes (default): a committed transaction survives a power loss.
const Durability('full') - noMetaSync → const Durability
-
Data is flushed on commit but the metadata page is not: a system crash may undo the last transaction, never corrupt the database.
const Durability('no_meta_sync') - noSync → const Durability
-
Flushing is left to the operating system: a system crash may undo the last transactions. An app crash loses nothing.
const Durability('no_sync')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wire → String
-
The
durabilityof the protocol.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
-
values
→ const List<
Durability> - A constant List of the values in this enum, in order of their declaration.