classShowBinlogEvents
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.
$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 = nullpublic ?Numeral $position = nullpublic ?Limit $limit = nullMethods§
public function deriveStatement(Derivation $derivation): voidDerives the rows.
Parameters
$derivation | Derivation |
Calls 4
- new ShowFacts line 50
- method-call ShowFacts::limit() line 51
- method-call ShowFacts::rows() line 52
- class-const Report::LogEvents() line 52
public function render(Output $out): voidWrites the statement.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 60
- method-call Output::node() line 67
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\Utility\Show\LegacyShowRule::session() packages/sql-semantics-mysql/src/Lowering/Utility/Show/LegacyShowRule.php:102
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\ShowRule::replication() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ShowRule.php:98