IsolationLevel enum

Isolation levels for transactions.

Inheritance
Available extensions

Values

readUncommitted → const IsolationLevel

Allow transaction to see uncommitted changes made by other transactions. Though in PostgreSQL, this behaves like read committed.

readCommitted → const IsolationLevel

Each statement in the transaction sees a snapshot of the database as of the beginning of the statement. This means each statement might observe a different version of the database.

repeatableRead → const IsolationLevel

The transaction transaction can only see rows committed before the first statement was executed giving a consistent view of the database.

If conflicting writes among concurrent transactions occur, an exception is thrown and the transaction is rolled back.

It is good to be prepared to retry transactions when using this isolation level.

serializable → const IsolationLevel

The transaction can only see rows committed before the first statement was executed giving a consistent view of the database.

If a read row is updated by another transaction, an exception is thrown and the transaction is rolled back.

If conflicting writes among concurrent transactions occur, an exception is thrown and the transaction is rolled back.

It is good to be prepared to retry transactions when using this isolation level.

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

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