insertOne method

Future<int> insertOne(
  1. Insertable<Row> row, {
  2. UpsertClause<Row, RS>? 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, {
  UpsertClause<Row, RS>? onConflict,
}) {
  return insert().insert(row, onConflict: onConflict);
}