final class PartitionRule
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Lowers partition keys and partition bounds.

Rule: PG-PARTITION-LOWER-001. Scope: OptPartitionSpec, PartitionSpec, part_params, part_elem, PartitionBoundSpec, hash_partbound, hash_partbound_elem. A one-part column reference named minvalue or maxvalue in a range bound is the infinite bound the server reads it as (transformPartitionRangeBounds). Termination: lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-createtable.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function datums(Node $list): list<Scalar|RangeLimit>

Lowers the expr_list of a range bound: MINVALUE and MAXVALUE become infinite bounds.

Parameters

$listNode

Returns

list<Scalar|RangeLimit>
Test cases 1
Called from 1
Calls 3

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

Test cases 5§

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

Dedicated tests 5

Relations§

Instantiated in 3
Method calls 3