classPgGrammar
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): GrammarLoad a pre-compiled PostgreSQL grammar.
Parameters
$version | string|null | PostgreSQL version tag (e.g., "pg-17.2"). Null for default. |
Returns
Test cases 5
Called from 1
Calls 2
- static-call SqlVersion::resolve() line 27
- static-call Grammar::loadFromFile() line 29
public static function resolveVersion(string|null $version = null): stringAnswers the release a version string names, defaulting to the newest one shipped.
Parameters
$version | string|null | Release to resolve, or null for the default |
Returns
string Name of the release the artifacts were generated forThrows
RuntimeException When the release is not one this package shipsTest cases 1
Called from 2
Calls 1
- static-call SqlVersion::resolve() line 43
Test cases 11§
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 6
Bench::setUpcallsMySqlProviderTestcallsGenerationContextTestcallsSqlGeneratorFactoryTestcallsPostgreSqlProviderTestcallsSqliteProviderTestcalls
Relations§
Static calls 3
- static-call SqlFaker\PostgreSql\Generation\GenerationContext::__construct() packages/sql-faker/src/PostgreSql/Generation/GenerationContext.php:53
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::__construct() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:58
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::__construct() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:59