classLessThan
final class LessThan
implements PartitionBound
uses Snapshot
Public API: explicitly declared with
@visibility public.VALUES LESS THAN (values) or VALUES LESS THAN MAXVALUE: the exclusive upper bound of a RANGE partition.
Mirrors PT_part_values with MAXVALUE written alone (no row) or a row of values. The two spellings of the greatest bound are kept as written. Source: https://dev.mysql.com/doc/refman/8.4/en/partitioning-range.html.
(new \SqlSemantics\Platform\MySql\Statement\Partition\Bound\LessThan(null))->row // => nullProperties§
public PartitionRow|null $rowMethods§
public function __construct(public PartitionRow|null $row)Parameters
$row | PartitionRow|null | The bound values, or null for the keyword MAXVALUE written without parentheses |
public function deriveBound(Derivation $derivation): voidDerives the bound values as constants.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the bound.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 46
- method-call Output::node() line 50
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
LessThanTestcalls
Other tests reaching this symbol 1
Relations§
Instantiated in 2
- new SqlSemantics\Platform\MySql\Lowering\TableChange\Partition\DefinitionRule::lessThan() packages/sql-semantics-mysql/src/Lowering/TableChange/Partition/DefinitionRule.php:161
- new SqlSemantics\Platform\MySql\Lowering\TableChange\Partition\DefinitionRule::lessThan() packages/sql-semantics-mysql/src/Lowering/TableChange/Partition/DefinitionRule.php:162