runReturningOnly method

Future<List<DriftRow>> runReturningOnly(
  1. List<Expression<Object>> expressions
)

Runs this insert statement with a RETURNING clause, returning [expressions} of inserted rows.

This method requires that source (and optionally also an upsertClause) have already been set (e.g. through values). For a method that does all of this, use insertReturning or insertReturningOrNull.

Implementation

Future<List<DriftRow>> runReturningOnly(List<Expression> expressions) async {
  returningOnly(expressions);

  final result = await _run();
  return returning!.interpretExpressionResults(_database, result);
}