lib/src/orm/builder/result/ResultCollection.ts
garrettmills 1d5056b753
All checks were successful
continuous-integration/drone/push Build is passing
Setup eslint and enforce rules
2021-06-02 22:36:25 -05:00

18 lines
532 B
TypeScript

import {AsyncCollection} from '../../../util'
import {AbstractResultIterable} from './AbstractResultIterable'
/**
* Async collection class that iterates AbstractResultIterables in chunks.
*/
export class ResultCollection<T> extends AsyncCollection<T> {
constructor(
/** The result iterable to base the collection on. */
iterator: AbstractResultIterable<T>,
/** The max number of records to request per-query, by default. */
chunkSize = 500,
) {
super(iterator, chunkSize)
}
}