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. Warnings are available in the query facts.

Reading the problems of a statementdoctest
$semantics = new \SqlSemantics\Platform\PostgreSql\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 165
Called from 1

Test cases 166§

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

Other tests reaching this symbol 166

Relations§

Implemented by 35
Method calls 2
Constant reads 1
Type checks 4
Type declarations 5