updateWhere method

Future<List<AuthUser>> updateWhere(
  1. Session session, {
  2. required ColumnValueListBuilder<AuthUserUpdateTable> columnValues,
  3. required WhereExpressionBuilder<AuthUserTable> where,
  4. int? limit,
  5. int? offset,
  6. OrderByBuilder<AuthUserTable>? orderBy,
  7. OrderByListBuilder<AuthUserTable>? orderByList,
  8. bool orderDescending = false,
  9. 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,
  );
}