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

Lowers the element list of a table definition and its column elements.

Rule: MYSQL-TABLE-ELEMENT-001. Scope: create_field_list, field_list, field_list_item, table_element_list, table_element, column_def, field_spec. The elements are kept in written order. Constructs: ColumnDefinition, and the elements of MYSQL-KEY-DEFINITION-001. Terminates: lists are flattened iteratively. Source: https://dev.mysql.com/doc/refman/8.4/en/create-table.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to

Private surface 3§

Implementation details, listed for orientation only.

private const LISTS = ['field_list: field_list_item', 'field_list: field_list , field_list_item', 'ta…
private const FORWARD = ['field_list_item: column_def' => true, 'field_list_item: key_def' => true, 'ta…
private Lowering $lowering

Test cases 3§

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

Dedicated tests 3

Relations§

Instantiated in 4
Method calls 4