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

A list partition bound: FOR VALUES IN (values).

Mirrors PartitionBoundSpec with listdatums. The values are derived where no column is visible. Source: https://www.postgresql.org/docs/17/sql-createtable.html.

Reading the values of a list bounddoctest
$create = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("CREATE TABLE p1 PARTITION OF p FOR VALUES IN ('a', 'b')");
    count($create->statement->definition->bound->values) // => 2

Properties§

public non-empty-list<Scalar> $values

Methods§

public function __construct(list<Scalar> $values)

Parameters

$valueslist<Scalar>The values; 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 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 1