insertOne method

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

Inserts one row into this table.

This is equivalent to calling InsertStatement.insert - see that method for more information.

Implementation

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