classFlushRule
final class FlushRule
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
$lowering | Lowering | The lowering this rule belongs to |
Lowers FLUSH: a node of flush.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleAnalysisException When FOR EXPORT has no table listCalled from 1
Calls 6
- static-call ImplementationGap::production() line 69
- method-call Form::node() line 71
- method-call Lowering::form() line 72
- method-call FlushRule::tables() line 75
- new Flush line 76
- method-call FlushRule::items() line 76
public function tables(bool $noWriteToBinlog, Form $form): FlushTablesLowers FLUSH TABLES.
Parameters
$noWriteToBinlog | bool | |
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleAnalysisException When FOR EXPORT has no table listCalled from 1
Calls 8
- method-call Form::node() line 89
- new MaintainedTable line 92
- method-call Lowering::form() line 94
- class-const FlushLock::WithReadLock() line 97
- class-const FlushLock::ForExport() line 98
- static-call ImplementationGap::production() line 99
- new AnalysisException line 102
- new FlushTables line 105
Lowers the items of FLUSH: a node of flush_options_list.
Parameters
$list | Node |
Returns
list<FlushItem>Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 7
- method-call Lowering::form() line 116
- method-call Lists::items() line 118
- new Lists line 118
- new FlushItem line 121
- class-const FlushOption::RelayLogs() line 121
- class-const FlushRule::OPTIONS() line 122
- static-call ImplementationGap::production() line 122
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 $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
FlushRuleTestcalls