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

Analyzes SQL under a database-specific language profile.

Accepting an analyzer from any database packagedoctest
$render = static fn (\SqlSemantics\Analyzer $analyzer, string $sql): string => $analyzer->analyze($sql)->toString();
    is_callable($render) // => true

Methods§

public function analyze(string $sql, ?AnalysisContext $context = null): Query

Analyzes SQL against the supplied declaration context or an open context.

Parameters

$sqlstring
$context?AnalysisContext

Returns

Throws

AnalysisException When the SQL is rejected or the context is incompatible
Test cases 1

Test cases 2§

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 1

Relations§

Implemented by 3