Returning<R> class final

A prepared mutation whose returned SQL rows decode to R.

Every read method executes the entire mutation again. Selecting only its first result does not limit affected rows. Cardinality and decoding errors can occur after the write; let them escape a transaction callback when that transaction must roll back the changes.

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

first({ExecutionOptions options = const ExecutionOptions()}) Future<R>
Executes the mutation and returns its first row, rejecting an empty result.
firstOrNull({ExecutionOptions options = const ExecutionOptions()}) Future<R?>
Executes the mutation and returns the first returned row, or null if empty.
get({ExecutionOptions options = const ExecutionOptions()}) Future<List<R>>
Executes the mutation and decodes all rows from RETURNING.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
single({ExecutionOptions options = const ExecutionOptions()}) Future<R>
Executes the mutation and requires exactly one returned row.
singleOrNull({ExecutionOptions options = const ExecutionOptions()}) Future<R?>
Executes the mutation and accepts zero or one returned row.
toString() String
A string representation of this object.
inherited

Operators

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