deleteWhere method

Future<List<LogEntry>> deleteWhere(
  1. DatabaseSession session, {
  2. required WhereExpressionBuilder<LogEntryTable> where,
  3. OrderByBuilder<LogEntryTable>? orderBy,
  4. @Deprecated('Use desc() on the orderBy column instead.') bool orderDescending = false,
  5. OrderByListBuilder<LogEntryTable>? orderByList,
  6. Transaction? transaction,
})

Deletes all rows matching the where expression.

To specify the order of the returned rows use orderBy or orderByList when sorting by multiple columns.

Implementation

Future<List<LogEntry>> deleteWhere(
  _i1.DatabaseSession session, {
  required _i1.WhereExpressionBuilder<LogEntryTable> where,
  _i1.OrderByBuilder<LogEntryTable>? orderBy,
  @Deprecated('Use desc() on the orderBy column instead.')
  bool orderDescending = false,
  _i1.OrderByListBuilder<LogEntryTable>? orderByList,
  _i1.Transaction? transaction,
}) async {
  return session.db.deleteWhere<LogEntry>(
    where: where(LogEntry.t),
    orderBy: orderBy?.call(LogEntry.t),
    orderByList: orderByList?.call(LogEntry.t),
    orderDescending: // ignore: deprecated_member_use
        orderDescending,
    transaction: transaction,
  );
}