mini\Database\PartialQuery::offset() Method

public

Signature

public function offset(int $offset): self

Parameters

Name Type Default Description
$offset int required Documentation missing

Returns

self

Documentation

Set OFFSET (additive, stays within window)

Offset is added to any existing offset. If there's a limit, it's reduced accordingly to stay within the original window.

$q->limit(10)->offset(5);  // becomes LIMIT 5 OFFSET 5 (still within 10)
$q->offset(10)->offset(5); // becomes OFFSET 15

Source

src/Database/PartialQuery.php:1326-1350