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

SHOW BINLOG EVENTS: the events of a binary log file.

Rule: MYSQL-SHOW-BINLOG-EVENTS-001. IN names the file, FROM the position of the first event. LIMIT selects rows as in SELECT; its operands are derived at a position that sees no relation. The columns are those of the layout of MYSQL-SHOW-ROWS-001. Terminates: a fixed layout. Source: https://dev.mysql.com/doc/refman/8.4/en/show-binlog-events.html. Status: Implemented.

Reading the statementdoctest
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("SHOW BINLOG EVENTS IN 'binlog.000001' FROM 4 LIMIT 2");
    [$show->statement->file?->value, $show->toString()] // => ['binlog.000001', "SHOW BINLOG EVENTS IN 'binlog.000001' FROM 4 LIMIT 2"]

Properties§

public ?Text $file = null
public ?Numeral $position = null
public ?Limit $limit = null

Methods§

public function __construct(
    public ?Text $file = null,
    public ?Numeral $position = null,
    public ?Limit $limit = null,
)

Parameters

$file?TextThe log file after IN; null for the first one
$position?NumeralThe position after FROM; null for the start of the file
$limit?LimitThe LIMIT clause
public function deriveStatement(Derivation $derivation): void

Derives the rows.

Parameters

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

Writes the statement.

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