updateById method

Future<SmsPasswordResetRequest?> updateById(
  1. DatabaseSession session,
  2. UuidValue id, {
  3. required ColumnValueListBuilder<SmsPasswordResetRequestUpdateTable> columnValues,
  4. Transaction? transaction,
})

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

Implementation

Future<SmsPasswordResetRequest?> updateById(
  _i1.DatabaseSession session,
  _i1.UuidValue id, {
  required _i1.ColumnValueListBuilder<SmsPasswordResetRequestUpdateTable>
  columnValues,
  _i1.Transaction? transaction,
}) async {
  return session.db.updateById<SmsPasswordResetRequest>(
    id,
    columnValues: columnValues(SmsPasswordResetRequest.t.updateTable),
    transaction: transaction,
  );
}