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.

Reading an offsetdoctest
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT 1 OFFSET 3 ROWS');
    $query->toString() // => 'SELECT 1 OFFSET 3'

Properties§

public Scalar $start

Methods§

public function __construct(public Scalar $start)

Parameters

$startScalarThe number of rows to skip
public function render(Output $out): void

Writes OFFSET and the start.

Parameters

$outOutput
Calls 1

Test cases 2§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 2
Type checks 1
Type declarations 3