classShowEngineLogs
final class ShowEngineLogs
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.SHOW ENGINE … LOGS: the log files of a storage engine.
Rule: MYSQL-SHOW-ENGINELOGS-001. The engine is a name the server resolves, or ALL for every engine. The three SHOW ENGINE reports are distinct commands with 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-engine.html. Status: Implemented.
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SHOW ENGINE InnoDB LOGS');
[$show->statement->engine?->value, $show->toString()] // => ['InnoDB', 'SHOW ENGINE InnoDB LOGS']Properties§
public ?Name $engine = nullMethods§
public function __construct(public ?Name $engine = null)Parameters
$engine | ?Name | The storage engine, or null for ALL |
public function deriveStatement(Derivation $derivation): voidDerives the rows.
Parameters
$derivation | Derivation |
Calls 3
- method-call ShowFacts::rows() line 47
- new ShowFacts line 47
- class-const Report::Engine() line 47
public function render(Output $out): voidWrites the statement.
Parameters
$out | Output |
Calls 3
- method-call Output::keyword() line 55
- method-call Output::name() line 59
- class-const NameUse::Label() line 59
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\LegacyObjectRule::engine() packages/sql-semantics-mysql/src/Lowering/Utility/Show/LegacyObjectRule.php:240
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\ServerRule::statement() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ServerRule.php:60