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

A parenthesized row of partition values: expressions and MAXVALUE.

Mirrors PT_part_value_item_list_paren. Each expression is a constant the server evaluates when the table is defined; it is derived in a scope with no visible relation, so a column name in it is a diagnostic. Source: https://dev.mysql.com/doc/refman/8.4/en/partitioning-columns.html.

Holding a row of partition valuesdoctest
$row = new \SqlSemantics\Platform\MySql\Statement\Partition\Bound\PartitionRow([new \SqlSemantics\Platform\MySql\Statement\Literal\NumberLiteral('10'), new \SqlSemantics\Platform\MySql\Statement\Partition\Bound\PartitionMaximum()]);
    count($row->items) // => 2

Properties§

public list<Scalar|PartitionMaximum> $items

Methods§

public function __construct(list<Scalar|PartitionMaximum> $items)

Parameters

$itemslist<Scalar|PartitionMaximum>The values in order; at least one
Calls 3
public function deriveRow(Derivation $derivation): void
public function render(Output $out): void

Writes the parenthesized values.

Parameters

$outOutput
Calls 1

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