DatabaseTransaction class abstract base

Interface for executing database operations in a transaction.

Inheritance

Constructors

DatabaseTransaction.new()

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

execute(String sql, List<Object?> params) Future<QueryResult>
Execute a single sql query with positional params.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String sql, List<Object?> params) Stream<RowReader>
Execute sql query with positional params.
override
script(String sql) Future<void>
Execute an sql script that may contain multiple statements.
inherited
toString() String
A string representation of this object.
inherited
transact<T>(Future<T> fn(DatabaseTransaction tx)) Future<T>
Begin a transaction / save-point and call fn before committing the transaction.
override

Operators

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