classTablePartitionKey
final class TablePartitionKey
What a table's division into partitions is by.
A key may be columns or expressions over them, and which partition a row belongs in is decided by evaluating it.
Properties§
public TablePartitionStrategy $strategypublic non-empty-list<string> $expressionsMethods§
public function __construct(
public TablePartitionStrategy $strategy,
public non-empty-list<string> $expressions,
)Parameters
$strategy | TablePartitionStrategy | |
$expressions | non-empty-list<string> |
Throws
InvalidDefinitionException When an expression the division is by is emptyCalls 2
- function-call
trimline 27 - new InvalidDefinitionException line 28
Test cases 15§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 14
TableDefinitionTest::testCandidateKeysWithPartitionKeyCandidateKeysPartitionMetadataCopiesPreserveOtherSchemaStatecallsTableDefinitionTest::testWithPartitionKeyAnswersATableDividedByThatKeycallsTableMutationResolverTest::testResolvePartitionInheritsItsParentDefinitioncallsBoundPredicateTest::testListPredicatecallsBoundPredicateTest::testRangePredicatecallsPgSqlPartitionParserTest::testIgnoresNestedPartitionKeywordsWhenFindingTopLevelClausescallsPgSqlPartitionParserTest::testListPredicatesDistinguishValuesNullAndWhitespacecallsPgSqlPartitionParserTest::testParentTableRejectsMalformedPartitionClausescallsPgSqlPartitionParserTest::testParseRelationParsesListPartitionIncludingNullcallsPgSqlPartitionParserTest::testParsesDefaultPartitioncallsPgSqlPartitionParserTest::testParsesFiniteMultiColumnRangeAsRowComparisoncallsPgSqlPartitionParserTest::testParsesUnboundedRangecallsPgSqlPartitionParserTest::testRejectsHashAndMixedUnboundedRangeInsteadOfGuessingcallsPgSqlPartitionParserTest::testRejectsMalformedBoundsIndependentlycalls
Relations§
Instantiated in 1
Type declarations 7
- type ZtdQuery\Schema\TableDefinition packages/ztd-query-core/src/Schema/TableDefinition.php:59
- type ZtdQuery\Schema\TableDefinition packages/ztd-query-core/src/Schema/TableDefinition.php:99
- type ZtdQuery\Schema\TableDefinition packages/ztd-query-core/src/Schema/TableDefinition.php:156
- type ZtdQuery\Platform\Postgres\Sql\Partition\BoundPredicate packages/ztd-query-postgres/src/Sql/Partition/BoundPredicate.php:22
- type ZtdQuery\Platform\Postgres\Sql\Partition\BoundPredicate packages/ztd-query-postgres/src/Sql/Partition/BoundPredicate.php:59
- type ZtdQuery\Platform\Postgres\Sql\Partition\PgSqlPartitionParser packages/ztd-query-postgres/src/Sql/Partition/PgSqlPartitionParser.php:22
- type ZtdQuery\Platform\Postgres\Sql\Partition\PgSqlPartitionParser packages/ztd-query-postgres/src/Sql/Partition/PgSqlPartitionParser.php:79