TxMode enum

Configure transaction mode. Used with Store.runInTransaction().

Inheritance
Available extensions

Values

read → const TxMode

Read only transaction - trying to execute a write operation results in an error. This is useful if you want to group many reads inside a single transaction, e.g. to improve performance or to get a consistent view of the data across multiple operations.

write → const TxMode

Read/Write transaction. There can be only a single write transaction at any time - it holds a lock on the database. Compared to read transaction, read/write transactions have much higher "cost", because they need to write data to the disk at the end.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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<TxMode>
A constant List of the values in this enum, in order of their declaration.