classListBound
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.
$create = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("CREATE TABLE p1 PARTITION OF p FOR VALUES IN ('a', 'b')");
count($create->statement->definition->bound->values) // => 2Properties§
public non-empty-list<Scalar> $valuesMethods§
public function __construct(list<Scalar> $values)Parameters
$values | list<Scalar> | The values; at least one |
Calls 2
- static-call Check::listOf() line 40
- class-const Scalar::class() line 40
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 49
- method-call Derivation::environment() line 49
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ListBoundTestcalls