classShowProcesslist
final class ShowProcesslist
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.SHOW PROCESSLIST: the threads running in the server.
Rule: MYSQL-SHOW-PROCESSLIST-001. FULL returns the whole statement text in Info instead of its first 100 characters, which changes the type of that 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-processlist.html. Status: Implemented.
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SHOW FULL PROCESSLIST');
[$show->statement->full, $show->toString()] // => [true, 'SHOW FULL PROCESSLIST']Properties§
public bool $full = falseMethods§
public function __construct(public bool $full = false)Parameters
$full | bool | Whether FULL is written |
public function deriveStatement(Derivation $derivation): voidDerives the rows.
Parameters
$derivation | Derivation |
Calls 4
- method-call ShowFacts::rows() line 45
- new ShowFacts line 45
- class-const Report::FullProcesslist() line 45
- class-const Report::Processlist() line 45
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 2
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\LegacyObjectRule::server() packages/sql-semantics-mysql/src/Lowering/Utility/Show/LegacyObjectRule.php:191
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\ServerRule::statement() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ServerRule.php:74