deleteWhere method

Future<List<DatabaseMigrationVersion>> deleteWhere(
  1. DatabaseSession session, {
  2. required WhereExpressionBuilder<DatabaseMigrationVersionTable> where,
  3. OrderByBuilder<DatabaseMigrationVersionTable>? orderBy,
  4. @Deprecated('Use desc() on the orderBy column instead.') bool orderDescending = false,
  5. OrderByListBuilder<DatabaseMigrationVersionTable>? 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<DatabaseMigrationVersion>> deleteWhere(
  _i2.DatabaseSession session, {
  required _i2.WhereExpressionBuilder<DatabaseMigrationVersionTable> where,
  _i2.OrderByBuilder<DatabaseMigrationVersionTable>? orderBy,
  @Deprecated('Use desc() on the orderBy column instead.')
  bool orderDescending = false,
  _i2.OrderByListBuilder<DatabaseMigrationVersionTable>? orderByList,
  _i2.Transaction? transaction,
}) async {
  return session.db.deleteWhere<DatabaseMigrationVersion>(
    where: where(DatabaseMigrationVersion.t),
    orderBy: orderBy?.call(DatabaseMigrationVersion.t),
    orderByList: orderByList?.call(DatabaseMigrationVersion.t),
    orderDescending: // ignore: deprecated_member_use
        orderDescending,
    transaction: transaction,
  );
}