classPostgreSqlVersion
final class PostgreSqlVersion
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
A supported PostgreSQL release.
Constants§
public const DIALECT = 'postgresql'The dialect name the resource record uses.
Properties§
public SqlVersion $releaseMethods§
public function __construct(public SqlVersion $release)Parameters
$release | SqlVersion | The release and its resources |
public static function resolve(
string|null $version = null,
VersionRegistry $registry = new \SqlParser\Resource\VersionRegistry(),
): selfResolves a release tag, the newest shipped release when none is given.
Parameters
$version | string|null | Tag such as `pg-17.2`, or null for the default |
$registry | VersionRegistry | Record of shipped releases |
Returns
self The releaseThrows
RuntimeException When the release is not shippedTest cases 4
Called from 1
Calls 4
- new VersionRegistry line 40
- new
selfline 42 - method-call VersionRegistry::resolve() line 42
- class-const PostgreSqlVersion::DIALECT() line 42
public function name(): stringAnswers the release tag.
Returns
string Tag such as `pg-17.2`Test cases 5§
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 2
KeywordTableTest::testLoadcallsPostgreSqlParserTestcalls