final class BinlogEvent
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

BINLOG 'str': applies binary log events written in base64 by mysqlbinlog.

Mirrors SQLCOM_BINLOG_BASE64_EVENT with LEX::binlog_stmt_arg. The events are opaque to the parser and kept as the decoded string. Rule: MYSQL-BINLOG-001. The statement has no facts of its own. Source: https://dev.mysql.com/doc/refman/8.4/en/binlog.html. Status: Implemented.

Holding the encoded eventsdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze("binlog 'AAAA'")->statement->events->value // => 'AAAA'

Properties§

public Text $events

Methods§

public function __construct(public Text $events)

Parameters

$eventsTextThe base64 text of the events
public function deriveStatement(Derivation $derivation): void

Records nothing: the events are opaque to the parser.

Parameters

$derivationDerivation
public function render(Output $out): void

Writes the request.

Parameters

$outOutput
Calls 1

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
Type declarations 1