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

A supported SQLite release.

Constants§

public const DIALECT = 'sqlite'

The dialect name the resource record uses.

Properties§

public SqlVersion $release

Methods§

public function __construct(public SqlVersion $release)

Parameters

$releaseSqlVersionThe release and its resources
public static function resolve(
    string|null $version = null,
    VersionRegistry $registry = new \SqlParser\Resource\VersionRegistry(),
): self

Resolves a release tag, the newest shipped release when none is given.

Parameters

$versionstring|nullTag such as `sqlite-3.47.2`, or null for the default
$registryVersionRegistryRecord of shipped releases

Returns

self The release

Throws

RuntimeException When the release is not shipped
Test cases 4
Called from 1
Calls 4
public function name(): string

Answers the release tag.

Returns

string Tag such as `sqlite-3.47.2`
Called from 1

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

Relations§

Static calls 1
Method calls 1
Constant reads 1
Type declarations 1