Registers a synchronous action to be invoked on each batch of results of the iterated sequence. Note that the last batch array passed to the action callback may have less elements than specified by batchSize. If batchSize is not specified, zero or negative, all the results are accumulated in one batch.
To break out of the iteration prematurely return false
from the action
callback. Return no value (i.e undefined
), or any non false
value to continue iteration.
Returns a promise that is fulfilled when the iteration has finished successfully. In this case the promise yields a tuple whose first value specifies the total number of results submitted in batches (may be 0) and whose second value is true if the iteration has been stopped in the action callback; false otherwise. The promise is rejected if the iteration yields an error.
Registers a synchronous action to be invoked on each result of the iterated sequence.
To break out of the iteration prematurely return false
from the action
callback. Return no value (i.e undefined
) any non false
value to continue iteration.
Returns a promise that is fulfilled when the iteration has finished successfully. In this case the promise yields a tuple whose first value specifies the total number of iterations performed (i.e. total number of action callback invocations, may be 0) and whose second value is true if the iteration has been stopped in the action callback; false otherwise. The promise is rejected if the iteration yields an error.
Generated using TypeDoc
Implementation class for IQueryIterator that may be used by custom database adapters.