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.

Selecting two partitionsdoctest
$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) // => 2

Properties§

public list<Name> $names

Methods§

public function __construct(list<Name> $names)

Parameters

$nameslist<Name>The partition names in order; at least one
Calls 3
public function render(Output $out): void

Writes the names.

Parameters

$outOutput
Calls 3

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§

Instantiated in 2
Type declarations 3