import {Iterable} from '../../../../../lib/src/collection/Iterable.ts' import ConnectionExecutable from '../ConnectionExecutable.ts' import {Collection} from '../../../../../lib/src/collection/Collection.ts' export class ResultIterable extends Iterable { constructor( protected executable: ConnectionExecutable ) { super() } async at_index(i: number): Promise { return this.executable.get_row(i) } async from_range(start: number, end: number): Promise> { return this.executable.get_range(start, end) } async count() { return this.executable.count() } clone() { return new ResultIterable(this.executable) } }