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

Lowers table options.

Rule: MYSQL-TABLE-OPTION-001. Scope: opt_create_table_options, create_table_options, create_table_options_space_separated, create_table_option, row_types, merge_insert_types. The equals sign of an option and the comma between options are optional and not kept; the options are kept in written order (a later option of the same kind overrides an earlier one). Constructs: the TableOption classes. Terminates: lists are flattened iteratively. Source: https://dev.mysql.com/doc/refman/8.4/en/create-table.html#create-table-options. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function options(Node $list): list<TableOption>

Private surface 5§

Implementation details, listed for orientation only.

private const LISTS = ['create_table_options: create_table_option', 'create_table_options: create_tab…
private const NUMBERS = ['create_table_option: MAX_ROWS opt_equal ulonglong_num' => [\SqlSemantics\Plat…
private const TEXTS = ['create_table_option: PASSWORD opt_equal TEXT_STRING_sys' => [\SqlSemantics\Pl…
private const KEYWORDS = ['row_types: DEFAULT' => \SqlSemantics\Platform\MySql\Statement\Table\Option\Ki…
private Lowering $lowering

Test cases 4§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 4

Relations§

Instantiated in 4
Method calls 4