deleteQuery(entityClass, filter = null, order = "next", offset = 0,
      limit = null) {
    if (!this[PRIVATE.active]) {
      throw new Error("The transaction is no longer active")
    }

    return this[PRIVATE.runOperation]((operationsProvider) => {
      return operationsProvider.deleteQuery(
        entityClass,
        filter,
        order,
        offset,
        limit
      )
    })
  }
/**
   * Executes a delete query, deleting all entities matched by the specified
   * query.
   *
   * @param {function(new: AbstractEntity, Object<string, *>)} entityClass The
   *        entity class specifying the type of entity to match by the query.
   * @param {?(undefined|number|string|Date|Array|IDBKeyRange|Object<string, (number|string|Date|Array|IDBKeyRange)>|function(*, (number|string|Date|Array)): boolean)=} filter
   *        The filter, restricting the records deleted by this method. If a
   *        function is provided, the first argument will be set to the record
   *        and the second argument will be set to the primary key of the
   *        record.
   * @param {?(CursorDirection|string|string[]|function(*, *): number)} order
   *        How the records should be sorted.
   * @param {number} offset The index of the first record to delete. The
   *        records are numbered from {@code 0}, the offset must be a
   *        non-negative integer.
   * @param {?number} limit The maximum number of records to delete. The limit
   *        must be a positive integer, or {@code null} if no limit should be
   *        imposed.
   * @return {Promise<number>} A promise that will resolve after the records
   *         have been deleted. The promise will resolve to the number of
   *         deleted records.
   */
Executes a delete query, deleting all entities matched by the specified
query.

@param {function(new: AbstractEntity, Object)} entityClass The
entity class specifying the type of entity to match by the query.
Executes a delete query deleting all entities matched by the specified query . @param { function ( new : AbstractEntity Object ) } entityClass The entity class specifying the type of entity to match by the query .
deleteQuery(entityClass, filter = null, order = "next", offset = 0,
      limit = null) {
    if (!this[PRIVATE.active]) {
      throw new Error("The transaction is no longer active")
    }
    return this[PRIVATE.runOperation]((operationsProvider) => {
      return operationsProvider.deleteQuery(
        entityClass,
        filter,
        order,
        offset,
        limit
      )
    })
  }
deleteQuery ( entityClass , filter = null , order = "next" , offset = 0 , limit = null ) { if ( ! this [ PRIVATE . active ] ) { throw new Error ( "The transaction is no longer active" ) } return this [ PRIVATE . runOperation ] ( ( operationsProvider ) => { return operationsProvider . deleteQuery ( entityClass , filter , order , offset , limit ) } ) }
Executes a delete query, deleting all entities matched by the specified
 query.
Executes a delete query deleting all entities matched by the specified query .