final class UtilityNoise
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 SET, SHOW, EXPLAIN and utility statements.

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.

  • opt_storage is the leaf family's (LeafNoise); this family declares no noise of its own: FULL, EXTENDED, the scopes and every SHOW keyword change the request.

Returns

array<string, list<int>>
Test cases 2
Called from 1
public static function synonyms(): array<string, array<int, string>>

Answers the key of each synonym position by production signature.

  • option_type: LOCAL_SYM, opt_var_type: LOCAL_SYM: "LOCAL and
    • @@LOCAL. are synonyms for SESSION and @@SESSION." (https://dev.mysql.com/doc/refman/8.4/en/set-variable.html, https://dev.mysql.com/doc/refman/8.4/en/show-variables.html).
  • internal_variable_name: DEFAULT . ident: DEFAULT.name names the instance default of a structured variable, the same as ` default.name ` (https://dev.mysql.com/doc/refman/5.7/en/structured-system-variables.html).
  • master_or_binary: MASTER_SYM, master_or_binary: BINARY, master_or_binary: BINARY_SYM: "SHOW MASTER LOGS is equivalent to
    • SHOW BINARY LOGS" and "The BINARY and MASTER keywords are synonyms" (https://dev.mysql.com/doc/refman/8.0/en/show-binary-logs.html, https://dev.mysql.com/doc/refman/8.0/en/purge-binary-logs.html).
  • from_or_in: IN_SYM: "FROM and IN are interchangeable" in the database and table clauses of SHOW (https://dev.mysql.com/doc/refman/8.4/en/show-tables.html, https://dev.mysql.com/doc/refman/8.4/en/show-columns.html).
  • describe_command: DESC: "The DESCRIBE and EXPLAIN statements are
    • synonyms"; DESC is the same keyword (https://dev.mysql.com/doc/refman/8.4/en/explain.html; the lexer already reads EXPLAIN as DESCRIBE, sql/lex.h).

Returns

array<string, array<int, string>>
Test cases 2
Called from 1

Test cases 4§

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

Dedicated tests 2
Other tests reaching this symbol 2

Relations§

Static calls 2