import {OffsetRows} from './offset_rows' import {Runnable} from '../../databases/database_context' import {SelectStatement} from '../../statements/select_statement' import {GroupSelectStatement} from '../../statements/group_select_statement' export class LimitRows implements Runnable{ constructor(public statement: SelectStatement|GroupSelectStatement, public readonly clientInstruction: 'vector'|'rows'|'sets-of-rows') {} offset(offset: number): OffsetRows { return new OffsetRows( { ...this.statement, offset }, this.clientInstruction) } }