updateRow method

Future<UserProfile> updateRow(
  1. Session session,
  2. UserProfile row, {
  3. ColumnSelections<UserProfileTable>? columns,
  4. Transaction? transaction,
})

Updates a single UserProfile. The row needs to have its id set. Optionally, a list of columns can be provided to only update those columns. Defaults to all columns.

Implementation

Future<UserProfile> updateRow(
  _i1.Session session,
  UserProfile row, {
  _i1.ColumnSelections<UserProfileTable>? columns,
  _i1.Transaction? transaction,
}) async {
  return session.db.updateRow<UserProfile>(
    row,
    columns: columns?.call(UserProfile.t),
    transaction: transaction,
  );
}