classNamedPartitions
final class NamedPartitions
implements PartitionSelection
uses Snapshot
Public API: explicitly declared with
@visibility public.A comma-separated list of partition names.
The names are not resolved: a declaration context holds no partitions. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-table-partition-operations.html.
$partitions = new \SqlSemantics\Platform\MySql\Statement\Partition\NamedPartitions([new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('p0'), new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('p1')]);
count($partitions->names) // => 2Properties§
public list<Name> $namesMethods§
public function __construct(list<Name> $names)Parameters
$names | list<Name> | The partition names in order; at least one |
Calls 3
- static-call Check::input() line 38
- static-call Check::listOf() line 39
- class-const Name::class() line 39
public function render(Output $out): voidWrites the names.
Parameters
$out | Output |
Calls 3
- method-call Output::symbol() line 49
- method-call Output::name() line 51
- class-const NameUse::Label() line 51
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
NamedPartitionsTestcalls
Relations§
Instantiated in 2
- new SqlSemantics\Platform\MySql\Lowering\TableChange\Alter\StandaloneRule::names() packages/sql-semantics-mysql/src/Lowering/TableChange/Alter/StandaloneRule.php:305
- new SqlSemantics\Platform\MySql\Lowering\TableChange\Alter\StandaloneRule::names() packages/sql-semantics-mysql/src/Lowering/TableChange/Alter/StandaloneRule.php:316
Type declarations 3
- type SqlSemantics\Platform\MySql\Lowering\TableChange\Alter\StandaloneRule packages/sql-semantics-mysql/src/Lowering/TableChange/Alter/StandaloneRule.php:302
- type SqlSemantics\Platform\MySql\Statement\Alter\Partition\DropPartition packages/sql-semantics-mysql/src/Statement/Alter/Partition/DropPartition.php:31
- type SqlSemantics\Platform\MySql\Statement\Alter\Partition\ReorganizePartition packages/sql-semantics-mysql/src/Statement/Alter/Partition/ReorganizePartition.php:43