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\Sqlite\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§

Test cases 12§

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

Dedicated tests 1
Other tests reaching this symbol 11

Relations§

Implemented by 24
Method calls 1
Constant reads 1
Type checks 3
Type declarations 3