updateWhere method
Future<List<UserProfile> >
updateWhere(
- Session session, {
- required ColumnValueListBuilder<
UserProfileUpdateTable> columnValues, - required WhereExpressionBuilder<
UserProfileTable> where, - int? limit,
- int? offset,
- OrderByBuilder<
UserProfileTable> ? orderBy, - OrderByListBuilder<
UserProfileTable> ? orderByList, - bool orderDescending = false,
- Transaction? transaction,
Updates all UserProfiles matching the where expression with the specified columnValues.
Returns the list of updated rows.
Implementation
Future<List<UserProfile>> updateWhere(
_i1.Session session, {
required _i1.ColumnValueListBuilder<UserProfileUpdateTable> columnValues,
required _i1.WhereExpressionBuilder<UserProfileTable> where,
int? limit,
int? offset,
_i1.OrderByBuilder<UserProfileTable>? orderBy,
_i1.OrderByListBuilder<UserProfileTable>? orderByList,
bool orderDescending = false,
_i1.Transaction? transaction,
}) async {
return session.db.updateWhere<UserProfile>(
columnValues: columnValues(UserProfile.t.updateTable),
where: where(UserProfile.t),
limit: limit,
offset: offset,
orderBy: orderBy?.call(UserProfile.t),
orderByList: orderByList?.call(UserProfile.t),
orderDescending: orderDescending,
transaction: transaction,
);
}