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.

Flushing the relay logs of one channeldoctest
$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 $option
public Text|null $channel = null

Methods§

public function __construct(public FlushOption $option, public Text|null $channel = null)

Parameters

$optionFlushOptionWhat the item flushes
$channelText|nullThe channel of FOR CHANNEL, written only after RELAY LOGS (MySQL 5.7 and later)

Throws

InvalidConstruction When a channel follows another option
Calls 2
public function render(Output $out): void

Writes the item.

Parameters

$outOutput
Calls 2

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
Constant reads 1