interface Diagnostic
Public API: explicitly declared with @visibility public.

A semantic problem established while analyzing grammatical SQL.

Analysis errors carry their diagnostics in a SemanticException.

Reading the problems of a statementdoctest
$semantics = new \SqlSemantics\Platform\MySql\Semantics();
    $table = $semantics->analyze('CREATE TABLE t (a INTEGER)');
    $semantics->analyze('SELECT b FROM t', [$table])->facts->diagnostics[0]->message() // => 'Column b does not exist.'

Methods§

public function message(): string

Describes the problem for a person; the concrete class is the machine-readable kind.

Returns

string
Test cases 117
Called from 1

Test cases 122§

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

Other tests reaching this symbol 122

Relations§

Implemented by 52
Method calls 1
Constant reads 1
Type checks 4
Type declarations 4