updateById method

Future<AuthUser?> updateById(
  1. Session session,
  2. UuidValue id, {
  3. required ColumnValueListBuilder<AuthUserUpdateTable> columnValues,
  4. Transaction? transaction,
})

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

Implementation

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