classStatementDiagnostics
final class StatementDiagnostics
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.The statement information GET DIAGNOSTICS reads: the number of conditions and the affected-rows count.
Source: https://dev.mysql.com/doc/refman/8.4/en/get-diagnostics.html.
$get = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('GET DIAGNOSTICS @n = NUMBER');
count($get->statement->information->items) // => 1Properties§
public non-empty-list<InformationItem> $itemsMethods§
public function __construct(list<InformationItem> $items)Parameters
$items | list<InformationItem> | The assignments; at least one, each of a statement information item |
Calls 3
- static-call Check::listOf() line 36
- class-const InformationItem::class() line 36
- static-call Check::input() line 38
public function render(Output $out): voidTest cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.