TransactionalSqlDatabase class abstract interface

Optional capability for databases with interactive transactions.

Check this capability with database is TransactionalSqlDatabase. Atomic write batches remain available through SqlDatabase.atomicWrite even when this interface is not implemented.

Implemented types
Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

atomicWrite(List<BoundSql> statements) → Future<List<SqlWriteResult>>
Executes transaction-safe DML statements as one atomic write batch.
inherited
close() → Future<void>
Releases resources owned by this database.
inherited
execute(BoundSql statement) → Future<SqlWriteResult>
Executes one write statement.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query<T>(BoundSql statement, T decode(SqlRow row)) → Future<List<T>>
Executes a row-returning statement and decodes every row in order.
inherited
toString() → String
A string representation of this object.
inherited
transaction<T>(Future<T> action(SqlExecutor transaction)) → Future<T>
Runs action inside one database transaction.

Operators

operator ==(Object other) → bool
The equality operator.
inherited