classTableDefinitionNoise
final class TableDefinitionNoise
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.
The noise and synonym token positions of the productions of table, index and view definitions.
Only a token with no influence on meaning in its production may be listed as noise, and only terminals the manual defines as synonyms may share a key. Every entry is listed in the method documentation with its reason and the manual page that states it. Nothing else is skipped or merged by the token correspondence check.
Methods§
public static function positions(): array<string, list<int>>Answers the noise positions by production signature.
attribute: UNIQUE_SYM KEY_SYM,column_attribute: UNIQUE_SYM KEY_SYM,gcol_attribute: UNIQUE_SYM KEY_SYM, position 1: a column attribute is writtenUNIQUE [KEY](https://dev.mysql.com/doc/refman/8.4/en/create-table.html).opt_primary: PRIMARY_SYM: "KEY, when used alone in a column definition,- is a synonym for PRIMARY KEY";
[PRIMARY] KEYis one attribute (https://dev.mysql.com/doc/refman/8.4/en/create-table.html).
- is a synonym for PRIMARY KEY";
opt_generated_always: GENERATED ALWAYS_SYM: a generated column is written[GENERATED ALWAYS] AS (expr)(https://dev.mysql.com/doc/refman/8.4/en/create-table-generated-columns.html).create2: ( LIKE table_ident )positions 0 and 3,create_table_stmt: … ( LIKE table_ident )positions 5 and 8:LIKE old_tbl_nameand(LIKE old_tbl_name)are the same request (https://dev.mysql.com/doc/refman/8.4/en/create-table.html: "{ LIKE old_tbl_name | (LIKE old_tbl_name) }").- -
as_create_query_expression: AS query_expression_with_opt_locking_clauses: - the query of CREATE TABLE ... SELECT is written
[AS] query_expression - (https://dev.mysql.com/doc/refman/8.4/en/create-table-select.html).
- -
create_table_options: create_table_option , create_table_options, - position 1: options are separated by an optional comma (create-table.html:
- "table_option [[,] table_option] ...").
- -
Returns
array<string, list<int>>Test cases 2
public static function synonyms(): array<string, array<int, string>>Answers the key of each synonym position by production signature.
index_type_clause: TYPE_SYM index_type,key_using_alg: TYPE_SYM btree_or_rtree,opt_index_name_and_type: ident TYPE_SYM index_type: "TYPE type_name is recognized as a synonym for USING type_name" (https://dev.mysql.com/doc/refman/8.4/en/create-table.html).
Returns
array<string, array<int, string>>Test cases 2
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.