insertReturning method

Future<Row> insertReturning(
  1. Insertable<Row> row, {
  2. InsertMode? mode,
  3. UpsertClause<Tbl, Row>? onConflict,
})

Inserts one row into this table and returns it, along with auto- generated fields.

Please note that this method is only available on recent sqlite3 versions. See also InsertStatement.insertReturning.

Implementation

Future<Row> insertReturning(
  Insertable<Row> row, {
  InsertMode? mode,
  UpsertClause<Tbl, Row>? onConflict,
}) {
  return insert().insertReturning(
    row,
    mode: mode,
    onConflict: onConflict,
  );
}