classFlushItem
final class FlushItem
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.One item of FLUSH: what it flushes and, for RELAY LOGS, the replication channel.
Source: https://dev.mysql.com/doc/refman/8.4/en/flush.html.
$item = new \SqlSemantics\Platform\MySql\Statement\Server\Flush\FlushItem(\SqlSemantics\Platform\MySql\Statement\Server\Flush\FlushOption::RelayLogs, new \SqlSemantics\Platform\MySql\Statement\Literal\Text('c1'));
$item->channel?->value // => 'c1'Properties§
public FlushOption $optionpublic Text|null $channel = nullMethods§
public function __construct(public FlushOption $option, public Text|null $channel = null)Parameters
$option | FlushOption | What the item flushes |
$channel | Text|null | The channel of FOR CHANNEL, written only after RELAY LOGS (MySQL 5.7 and later) |
Throws
InvalidConstruction When a channel follows another optionCalls 2
- static-call Check::input() line 35
- class-const FlushOption::RelayLogs() line 35
public function render(Output $out): voidWrites the item.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 43
- function-call
explodeline 43
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 2
- new SqlSemantics\Platform\MySql\Lowering\Server\Maintenance\FlushRule::items() packages/sql-semantics-mysql/src/Lowering/Server/Maintenance/FlushRule.php:121
- new SqlSemantics\Platform\MySql\Lowering\Server\Maintenance\FlushRule::items() packages/sql-semantics-mysql/src/Lowering/Server/Maintenance/FlushRule.php:122