updateById method

Future<ReadWriteTestEntry?> updateById(
  1. Session session,
  2. int id, {
  3. required ColumnValueListBuilder<ReadWriteTestEntryUpdateTable> columnValues,
  4. Transaction? transaction,
})

Updates a single ReadWriteTestEntry by its id with the specified columnValues. Returns the updated row or null if no row with the given id exists.

Implementation

Future<ReadWriteTestEntry?> updateById(
  _i1.Session session,
  int id, {
  required _i1.ColumnValueListBuilder<ReadWriteTestEntryUpdateTable>
  columnValues,
  _i1.Transaction? transaction,
}) async {
  return session.db.updateById<ReadWriteTestEntry>(
    id,
    columnValues: columnValues(ReadWriteTestEntry.t.updateTable),
    transaction: transaction,
  );
}