writeReturningOnly method
Future<List<DriftRow> >
writeReturningOnly(
- Insertable<
Row> entity, - List<
Expression< expressionsObject> >
Applies the updates from entity to all rows matching the applied where
clause and returns expressions of the affected rows after the update.
For more details on writing entries, see write. Note that this requires sqlite 3.35 or later.
Implementation
Future<List<DriftRow>> writeReturningOnly(
Insertable<Row> entity,
List<Expression> expressions,
) async {
_applyColumns(entity, true);
if (updatedColumns.isEmpty) {
return const [];
}
returningOnly(expressions);
final result = await _run();
return returning!.interpretExpressionResults(_database, result);
}