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

MINVALUE or MAXVALUE in a range partition bound: below or above every value.

The grammar reads the word as a column reference; the server takes a one-part column reference named minvalue or maxvalue in a range bound as the infinite bound (PARTITION_RANGE_DATUM_MINVALUE/MAXVALUE). Source: https://www.postgresql.org/docs/17/sql-createtable.html.

Reading an infinite bounddoctest
$create = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE TABLE p1 PARTITION OF p FOR VALUES FROM (MINVALUE) TO (10)');
    $create->statement->definition->bound->from[0]->maximum() // => false

Properties§

public Name $word

Methods§

public function __construct(public Name $word)

Parameters

$wordNameThe word, `minvalue` or `maxvalue`
Calls 1
public function maximum(): bool

Tells whether the limit is MAXVALUE.

Returns

bool
public function render(Output $out): void

Writes the word.

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 2

Relations§

Instantiated in 1
Type checks 1