updateAll method

Future<int> updateAll(
  1. Session session, {
  2. required List<Expr<void>> set(
    1. C columns
    ),
  3. Expr<bool>? where(
    1. C columns
    )?,
  4. int? limit,
})

Implementation

Future<int> updateAll(
  Session session, {
  required List<Expr<void>> Function(C columns) set,
  Expr<bool>? Function(C columns)? where,
  int? limit,
}) async {
  final query = doUpdate(
    table: this,
    set: set(columns),
    where: where == null ? null : where(this.columns),
    limit: limit,
  );
  final rs = await session.executeQuery(query);
  return rs.affectedRows;
}