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