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 emptyTest cases 1
Calls 2
- function-call
trimline 27 - new InvalidDefinitionException line 28
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
TablePartitionKeyTest::testStoresStrategyAndExpressionscovers and calls
Other tests reaching this symbol 2
Relations§
Constant reads 1
- class-const packages/ztd-query-core/src/Compatibility/ClassAliases.php packages/ztd-query-core/src/Compatibility/ClassAliases.php:40