NoTransactionDelegate class final

A TransactionDelegate for database APIs which don't already support creating transactions. Drift will send a BEGIN TRANSACTION statement at the beginning, then block the database, and finally send a COMMIT statement at the end.

Inheritance

Constructors

NoTransactionDelegate({String start = 'BEGIN TRANSACTION', String commit = 'COMMIT TRANSACTION', String rollback = 'ROLLBACK TRANSACTION', String savepoint(int depth) = _defaultSavepoint, String release(int depth) = _defaultRelease, String rollbackToSavepoint(int depth) = _defaultRollbackToSavepoint})
Construct a transaction delegate indicating that native transactions aren't supported and need to be emulated by issuing statements and locking the database.
const

Properties

commit String
The statement that commits a transaction on this database engine.
final
hashCode int
The hash code for this object.
no setterinherited
release String Function(int depth)
The statement that will release a savepoint for a given depth of a transaction on this database engine.
final
rollback String
The statement that will perform a rollback of a transaction on this database engine.
final
rollbackToSavepoint String Function(int depth)
The statement that will perform a rollback to a savepoint for a given depth of a transaction on this database engine.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
savepoint String Function(int depth)
The statement that will create a savepoint for a given depth of a transaction on this database engine.
final
start String
The statement that starts a transaction on this database engine.
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