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

The supported releases of each dialect and the default among them.

The tags are the ones sql-parser, sql-semantics, sql-faker and sql-formatter accept, so one tag selects the same release everywhere.

Methods§

public function defaultTag(string $dialect): string

Names the default release of a dialect.

Parameters

$dialectstring

Returns

string Version tag such as `mysql-8.4.7`

Throws

UnsupportedVersionException When the dialect has no releases
Test cases 1
Called from 2
Calls 1
public function numbers(string $dialect): non-empty-array<string, string>
public function entry(string $dialect): array{default: string, versions: non-empty-array<string, string>}

Parameters

$dialectstring

Returns

array{default: string, versions: non-empty-array<string, string>}

Throws

UnsupportedVersionException When the dialect has no releases
Test cases 1
Called from 2
Calls 2

Private surface 1§

Implementation details, listed for orientation only.

private const RELEASES = ['mysql' => ['default' => 'mysql-8.4.7', 'versions' => ['mysql-5.6.51' => '5.6.…

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§

Instantiated in 4
Method calls 5