classShowBinaryLogs
final class ShowBinaryLogs
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.SHOW BINARY LOGS (SHOW MASTER LOGS): the binary log files of the server.
Rule: MYSQL-SHOW-BINARY-LOGS-001. MASTER and BINARY are the same keyword here (UtilityNoise); the writer emits BINARY, which every release accepts. MySQL 8.0 added the Encrypted column. 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-binary-logs.html. Status: Implemented.
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SHOW BINARY LOGS');
[$show->field(1)->name?->value, $show->toString()] // => ['File_size', 'SHOW BINARY LOGS']Methods§
public function deriveStatement(Derivation $derivation): voidDerives the rows.
Parameters
$derivation | Derivation |
Calls 3
- method-call ShowFacts::rows() line 39
- new ShowFacts line 39
- class-const Report::BinaryLogs() line 39
public function render(Output $out): voidTest 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 3
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\LegacyShowRule::binaryLogs() packages/sql-semantics-mysql/src/Lowering/Utility/Show/LegacyShowRule.php:124
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\ShowRule::replication() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ShowRule.php:90
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\ShowRule::replication() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ShowRule.php:92