classPartitionRow
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.
$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) // => 2Properties§
public list<Scalar|PartitionMaximum> $itemsMethods§
public function __construct(list<Scalar|PartitionMaximum> $items)Parameters
$items | list<Scalar|PartitionMaximum> | The values in order; at least one |
Calls 3
- static-call Check::listOf() line 42
- class-const Node::class() line 42
- static-call Check::input() line 43
public function deriveRow(Derivation $derivation): voidDerives the expressions as constants.
Parameters
$derivation | Derivation |
Called from 1
Calls 2
- method-call Derivation::scalar() line 56
- method-call Derivation::environment() line 56
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
PartitionRowTestcalls
Relations§
Instantiated in 1
Method calls 1
Constant reads 1
Type declarations 3
- type SqlSemantics\Platform\MySql\Lowering\TableChange\Partition\DefinitionRule packages/sql-semantics-mysql/src/Lowering/TableChange/Partition/DefinitionRule.php:195
- type SqlSemantics\Platform\MySql\Statement\Partition\Bound\LessThan packages/sql-semantics-mysql/src/Statement/Partition/Bound/LessThan.php:29
- type SqlSemantics\Platform\MySql\Statement\Partition\Bound\ValuesIn packages/sql-semantics-mysql/src/Statement/Partition/Bound/ValuesIn.php:30