classHashBound
final class HashBound
implements PartitionBound
uses Snapshot
Public API: explicitly declared with
@visibility public.A hash partition bound: FOR VALUES WITH (MODULUS m, REMAINDER r).
Mirrors PartitionBoundSpec with PARTITION_STRATEGY_HASH. An item other than modulus and remainder is reported. Source: https://www.postgresql.org/docs/17/sql-createtable.html.
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE TABLE p1 PARTITION OF p FOR VALUES WITH (modulus 4, remainder 0)')->toString() // => 'CREATE TABLE p1 PARTITION OF p FOR VALUES WITH (modulus 4, remainder 0)'Properties§
public non-empty-list<HashModulus> $itemsMethods§
public function __construct(list<HashModulus> $items)Parameters
$items | list<HashModulus> | The items; at least one |
Calls 2
- static-call Check::listOf() line 40
- class-const HashModulus::class() line 40
public function deriveClause(Derivation $derivation, Environment $environment): voidReports the items the server does not recognize.
Parameters
$derivation | Derivation | |
$environment | Environment |
Calls 3
- method-call Derivation::report() line 50
- new DefinitionProblem line 50
- class-const DefinitionRule::HashBoundOption() line 50
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
HashBoundTestcalls