final class LimitCount
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

LIMIT count, or LIMIT ALL: the most rows a query returns.

LIMIT ALL is the same as omitting the clause and is kept as a null count because it is written. Source: https://www.postgresql.org/docs/17/sql-select.html#SQL-LIMIT.

Reading LIMIT ALLdoctest
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT 1 LIMIT ALL');
    $query->statement->options->limit->count->count // => null

Properties§

public Scalar|null $count = null

Methods§

public function __construct(public Scalar|null $count = null)

Parameters

$countScalar|nullThe row count; null for ALL
public function render(Output $out): void

Writes LIMIT and the count or ALL.

Parameters

$outOutput
Calls 2

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 1
Type checks 2
Type declarations 2