final class RangeBound
    implements PartitionBound
    uses Snapshot
Public API: explicitly declared with @visibility public.

A range partition bound: FOR VALUES FROM (lower) TO (upper).

Mirrors PartitionBoundSpec with lowerdatums and upperdatums; each datum is a value or MINVALUE/MAXVALUE. The values are derived where no column is visible. Source: https://www.postgresql.org/docs/17/sql-createtable.html.

Writing a range bounddoctest
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE TABLE p1 PARTITION OF p FOR VALUES FROM (1, MINVALUE) TO (10, maxvalue)')->toString() // => 'CREATE TABLE p1 PARTITION OF p FOR VALUES FROM (1, minvalue) TO (10, maxvalue)'

Properties§

public non-empty-list<Scalar|RangeLimit> $from
public non-empty-list<Scalar|RangeLimit> $to

Methods§

public function __construct(list<Scalar|RangeLimit> $from, list<Scalar|RangeLimit> $to)

Parameters

$fromlist<Scalar|RangeLimit>The lower datums; at least one
$tolist<Scalar|RangeLimit>The upper datums; at least one
Calls 2
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives the values where no column is visible.

Parameters

$derivationDerivation
$environmentEnvironment
Calls 2
public function render(Output $out): void

Writes the bound.

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 1