classOffset
final class Offset
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.OFFSET start: the number of rows skipped before rows are returned.
The ROW or ROWS written after the start in the SQL-standard spelling are noise words. Source: https://www.postgresql.org/docs/17/sql-select.html#SQL-LIMIT.
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT 1 OFFSET 3 ROWS');
$query->toString() // => 'SELECT 1 OFFSET 3'Properties§
public Scalar $startMethods§
public function __construct(public Scalar $start)Parameters
$start | Scalar | The number of rows to skip |
public function render(Output $out): voidTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
OffsetTestcalls
Other tests reaching this symbol 1
Relations§
Instantiated in 2
Type checks 1
Type declarations 3
- type SqlSemantics\Platform\PostgreSql\Lowering\Query\LimitRule packages/sql-semantics-postgres/src/Lowering/Query/LimitRule.php:115
- type SqlSemantics\Platform\PostgreSql\Lowering\Query\LimitRule packages/sql-semantics-postgres/src/Lowering/Query/LimitRule.php:129
- type SqlSemantics\Platform\PostgreSql\Statement\Query\Limit\RowLimit packages/sql-semantics-postgres/src/Statement/Query/Limit/RowLimit.php:38