classRangeBound
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.
(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> $frompublic non-empty-list<Scalar|RangeLimit> $toMethods§
public function __construct(list<Scalar|RangeLimit> $from, list<Scalar|RangeLimit> $to)Parameters
$from | list<Scalar|RangeLimit> | The lower datums; at least one |
$to | list<Scalar|RangeLimit> | The upper datums; at least one |
Calls 2
- method-call RangeDatums::checked() line 46
- new RangeDatums line 46
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives the values where no column is visible.
Parameters
$derivation | Derivation | |
$environment | Environment |
Calls 2
- method-call Derivation::scalar() line 57
- method-call Derivation::environment() line 57
public function render(Output $out): voidTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
RangeBoundTestcalls