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

A lossless SQL parser configured for a grammar release and lexical settings.

Consumers depend on this contract instead of enumerating concrete parsers.

Declare a consumer of the parsing contractdoctest
$roundTrip = static fn (\SqlParser\Parser\SqlParser $parser, string $sql): string => $parser->parse($sql)->toString();
    $roundTrip instanceof \Closure // => true

Methods§

public function version(): string

Test cases 8§

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

Dedicated tests 3
Other tests reaching this symbol 5

Relations§

Implemented by 3
Method calls 9
Type declarations 10