interfacePartitionBound
interface PartitionBound
extends Clause
Public API: explicitly declared with
@visibility public.The bound of a partition: which rows of the parent it holds.
Mirrors PostgreSQL's PartitionBoundSpec, one implementation per strategy and one for DEFAULT. The bound values are derived where no column is visible ("cannot use column reference in partition bound expression"). 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 (1, 2)');
$create->statement->definition->bound instanceof \SqlSemantics\Platform\PostgreSql\Statement\Table\Partition\ListBound // => trueTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
PartitionBoundTestcalls
Relations§
Implemented by 4
- DefaultBound packages/sql-semantics-postgres/src/Statement/Table/Partition/DefaultBound.php:22
- HashBound packages/sql-semantics-postgres/src/Statement/Table/Partition/HashBound.php:26
- ListBound packages/sql-semantics-postgres/src/Statement/Table/Partition/ListBound.php:26
- RangeBound packages/sql-semantics-postgres/src/Statement/Table/Partition/RangeBound.php:26
Method calls 1
Type declarations 3
- type SqlSemantics\Platform\PostgreSql\Lowering\Table\PartitionRule packages/sql-semantics-postgres/src/Lowering/Table/PartitionRule.php:95
- type SqlSemantics\Platform\PostgreSql\Statement\Table\Element\PartitionOf packages/sql-semantics-postgres/src/Statement/Table/Element/PartitionOf.php:42
- type SqlSemantics\Platform\PostgreSql\Statement\Table\Partition\AttachPartition packages/sql-semantics-postgres/src/Statement/Table/Partition/AttachPartition.php:35