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

Lowers FLUSH.

Rule: MYSQL-FLUSH-001. Scope: flush, flush_options, opt_flush_lock, flush_options_list, flush_option. FLUSH TABLES with its optional table list and lock is one statement, the other items another. FOR EXPORT without a table list is a syntax error the server raises in the opt_flush_lock action (ER_NO_TABLES_USED as a parse error) and is rejected as such. The channel of RELAY LOGS goes through the replication family's channel rule. TABLE and TABLES are synonyms and LOCAL is NO_WRITE_TO_BINLOG (LeafNoise). Constructs: Flush, FlushItem, FlushTables. Terminates: the item list is flattened iteratively. Source: https://dev.mysql.com/doc/refman/8.4/en/flush.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function statement(Form $form): Statement

Lowers FLUSH: a node of flush.

Parameters

$formForm

Returns

Throws

ImplementationGap When a production has no rule
AnalysisException When FOR EXPORT has no table list
Called from 1
Calls 6
public function tables(bool $noWriteToBinlog, Form $form): FlushTables
public function items(Node $list): list<FlushItem>

Private surface 2§

Implementation details, listed for orientation only.

private const OPTIONS = ['flush_option: ERROR_SYM LOGS_SYM' => \SqlSemantics\Platform\MySql\Statement\S…
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 1
Method calls 1