classShowBinaryLogStatus
final class ShowBinaryLogStatus
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.SHOW BINARY LOG STATUS (SHOW MASTER STATUS): the position in the binary log of the source.
Rule: MYSQL-SHOW-BINARY-LOG-STATUS-001. The two spellings are kept because each release accepts only some of them (SHOW MASTER STATUS up to 8.3, SHOW BINARY LOG STATUS from 8.2); they return the same columns, 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-log-status.html. Status: Implemented.
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SHOW BINARY LOG STATUS');
[$show->field(0)->name?->value, $show->toString()] // => ['File', 'SHOW BINARY LOG STATUS']Properties§
public Terminology $terminologyMethods§
public function __construct(public Terminology $terminology)Parameters
$terminology | Terminology | Whether MASTER STATUS or BINARY LOG STATUS is written |
public function deriveStatement(Derivation $derivation): voidDerives the rows.
Parameters
$derivation | Derivation |
Calls 3
- method-call ShowFacts::rows() line 46
- new ShowFacts line 46
- class-const Report::LogStatus() line 46
public function render(Output $out): voidWrites the statement.
Parameters
$out | Output |
Calls 3
- class-const Terminology::Legacy() line 55
- method-call Output::keyword() line 55
- class-const Terminology::Current() line 56
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 3
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\LegacyShowRule::session() packages/sql-semantics-mysql/src/Lowering/Utility/Show/LegacyShowRule.php:109
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\ShowRule::replication() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ShowRule.php:106
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\ShowRule::replication() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ShowRule.php:108