interfacePartitionMethod
interface PartitionMethod
extends Node
How rows are assigned to partitions or subpartitions: KEY, HASH, RANGE or LIST, over an expression or over columns.
Source: https://dev.mysql.com/doc/refman/8.4/en/partitioning-types.html.
Methods§
public function deriveMethod(Derivation $derivation, Environment $scope): voidDerives the expression of the method, or checks its column names, in the scope of the partitioned table.
Parameters
$derivation | Derivation | The derivation of the statement that holds the method |
$scope | Environment | The scope whose only visible relation is the partitioned table |
Called from 2
- method-call SqlSemantics\Platform\MySql\Statement\Partition\PartitionClause::derivePartitioning() packages/sql-semantics-mysql/src/Statement/Partition/PartitionClause.php:63
- method-call SqlSemantics\Platform\MySql\Statement\Partition\Subpartitioning::deriveSubpartitioning() packages/sql-semantics-mysql/src/Statement/Partition/Subpartitioning.php:48
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Relations§
Implemented by 4
- ColumnsMethod packages/sql-semantics-mysql/src/Statement/Partition/Method/ColumnsMethod.php:29
- ExpressionMethod packages/sql-semantics-mysql/src/Statement/Partition/Method/ExpressionMethod.php:26
- HashMethod packages/sql-semantics-mysql/src/Statement/Partition/Method/HashMethod.php:25
- KeyMethod packages/sql-semantics-mysql/src/Statement/Partition/Method/KeyMethod.php:30
Method calls 2
- method-call SqlSemantics\Platform\MySql\Statement\Partition\PartitionClause::derivePartitioning() packages/sql-semantics-mysql/src/Statement/Partition/PartitionClause.php:63
- method-call SqlSemantics\Platform\MySql\Statement\Partition\Subpartitioning::deriveSubpartitioning() packages/sql-semantics-mysql/src/Statement/Partition/Subpartitioning.php:48
Type declarations 3
- type SqlSemantics\Platform\MySql\Lowering\TableChange\Partition\PartitionRule packages/sql-semantics-mysql/src/Lowering/TableChange/Partition/PartitionRule.php:170
- type SqlSemantics\Platform\MySql\Statement\Partition\PartitionClause packages/sql-semantics-mysql/src/Statement/Partition/PartitionClause.php:50
- type SqlSemantics\Platform\MySql\Statement\Partition\Subpartitioning packages/sql-semantics-mysql/src/Statement/Partition/Subpartitioning.php:38