final class SubpartitionDefinition
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

SUBPARTITION name [options]: one subpartition of a partition definition.

Mirrors PT_subpartition. The name may be written as an identifier or a string; both name the subpartition. Source: https://dev.mysql.com/doc/refman/8.4/en/partitioning-subpartitions.html.

Holding a subpartitiondoctest
(new \SqlSemantics\Platform\MySql\Statement\Partition\SubpartitionDefinition(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('s0'), []))->name->value // => 's0'

Properties§

public list<PartitionOption> $options
public Name $name

Methods§

public function __construct(public Name $name, list<PartitionOption> $options)

Parameters

$nameNameThe subpartition name
$optionslist<PartitionOption>The options in order
Calls 2
public function render(Output $out): void

Writes the definition.

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 1
Constant reads 1
Type declarations 1