deleteAll method

Future<int> deleteAll(
  1. Session session, {
  2. Expr<bool>? where(
    1. C columns
    )?,
  3. int? limit,
})

Implementation

Future<int> deleteAll(
  Session session, {
  Expr<bool>? Function(C columns)? where,
  int? limit,
}) async {
  final query = doDelete(
    from: this,
    where: where == null ? null : where(this.columns),
    limit: limit,
  );
  final rs = await session.executeQuery(query);
  return rs.affectedRows;
}