runReturning method

Future<List<Row>> runReturning()

Runs this insert statement with a RETURNING clause, returning 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<Row>> runReturning() async {
  returningAll();
  final result = await _run();
  return returning!.interpretResults(_database, result, table);
}