classLimitCount
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.
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT 1 LIMIT ALL');
$query->statement->options->limit->count->count // => nullProperties§
public Scalar|null $count = nullMethods§
public function __construct(public Scalar|null $count = null)Parameters
$count | Scalar|null | The row count; null for ALL |
public function render(Output $out): voidWrites LIMIT and the count or ALL.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 39
- method-call Output::node() line 43
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
LimitCountTestcalls