interfaceAnalyzer
interface Analyzer
Public API: explicitly declared with
@visibility public.Analyzes SQL under a database-specific language profile.
$render = static fn (\SqlSemantics\Analyzer $analyzer, string $sql): string => $analyzer->analyze($sql)->toString();
is_callable($render) // => trueMethods§
public function analyze(string $sql, ?AnalysisContext $context = null): QueryAnalyzes SQL against the supplied declaration context or an open context.
Parameters
$sql | string | |
$context | ?AnalysisContext |
Returns
Throws
AnalysisException When the SQL is rejected or the context is incompatibleTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.