SqlRead<R> class final

A compiled row-returning operation.

For a mutation with RETURNING, the database applies the write before projection decoding and cardinality checks. Use TransactionalSqlDatabase.transaction where supported when either failure must roll back the side effects. Otherwise, constrain the mutation so its returned row count is already guaranteed.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statement → BoundSql
Bound statement available as an explicit low-level escape hatch.
final

Methods

all(SqlExecutor executor) → Future<List<R>>
Executes this operation through SqlExecutor.query.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
one(SqlExecutor executor) → Future<R>
Returns the only row produced by this operation.
oneOrNull(SqlExecutor executor) → Future<R?>
Returns the only row produced by this operation, or null for no rows.
toString() → String
A string representation of this object.
inherited

Operators

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