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.

Counting the items readdoctest
$get = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('GET DIAGNOSTICS @n = NUMBER');
    count($get->statement->information->items) // => 1

Properties§

public non-empty-list<InformationItem> $items

Methods§

public function __construct(list<InformationItem> $items)

Parameters

$itemslist<InformationItem>The assignments; at least one, each of a statement information item
Calls 3
public function render(Output $out): void

Writes the assignments.

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 7§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 4
Other tests reaching this symbol 3

Relations§

Instantiated in 1
Type declarations 1