final class PgGrammar
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

PostgreSQL grammar loader.

Loads pre-compiled grammar from the ast/pg-*.php cache files.

Methods§

public static function load(string|null $version = null): Grammar

Load a pre-compiled PostgreSQL grammar.

Parameters

$versionstring|nullPostgreSQL version tag (e.g., "pg-17.2"). Null for default.

Returns

Test cases 465
Called from 1
Calls 2
public static function resolveVersion(string|null $version = null): string

Answers the release a version string names, defaulting to the newest one shipped.

Parameters

$versionstring|nullRelease to resolve, or null for the default

Returns

string Name of the release the artifacts were generated for

Throws

RuntimeException When the release is not one this package ships
Test cases 462
Called from 2
Calls 1

Test cases 470§

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

Dedicated tests 5
Other tests reaching this symbol 465

Relations§

Static calls 3