final class ValuesIn
    implements PartitionBound
    uses Snapshot
Public API: explicitly declared with @visibility public.

VALUES IN (value, …): the values of a LIST partition over one expression or column.

Mirrors PT_part_values_in_item: one parenthesized row whose items are the listed values. Source: https://dev.mysql.com/doc/refman/8.4/en/partitioning-list.html.

Holding the values of a list partitiondoctest
$bound = new \SqlSemantics\Platform\MySql\Statement\Partition\Bound\ValuesIn(new \SqlSemantics\Platform\MySql\Statement\Partition\Bound\PartitionRow([new \SqlSemantics\Platform\MySql\Statement\Literal\NumberLiteral('1'), new \SqlSemantics\Platform\MySql\Statement\Literal\NumberLiteral('2')]));
    count($bound->row->items) // => 2

Properties§

Methods§

public function __construct(public PartitionRow $row)

Parameters

$rowPartitionRowThe listed values
public function deriveBound(Derivation $derivation): void

Derives the values as constants.

Parameters

$derivationDerivation
Calls 1
public function render(Output $out): void

Writes the 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
Type declarations 1