final class OptionRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql\Lowering\TableChange". Code outside that scope must not name this declaration.

Lowers the options of partition and subpartition definitions.

Rule: MYSQL-PARTITION-OPTION-001. Scope: opt_part_options, opt_part_option_list, opt_part_option, part_option_list, part_option. The = (opt_equal) and the STORAGE before ENGINE (opt_storage) are optional words of the same option. Constructs: PartitionOption. Terminates: the option list is flattened iteratively. Source: https://dev.mysql.com/doc/refman/8.4/en/create-table.html#create-table-partitioning. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function option(Node $option): PartitionOption

Private surface 4§

Implementation details, listed for orientation only.

private const OPTIONS = ['opt_part_option: TABLESPACE opt_equal ident_or_text' => [\SqlSemantics\Platfo…
private const LISTS = ['opt_part_options:' => false, 'opt_part_options: opt_part_option_list' => true…
private const SPINES = ['opt_part_option_list: opt_part_option_list opt_part_option' => true, 'opt_par…
private Lowering $lowering

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 2
Method calls 2