updateById method

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

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

Implementation

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