classSqliteGrammar
final class SqliteGrammar
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
SQLite grammar loader.
Loads pre-compiled grammar from the ast/sqlite-*.php cache files.
Methods§
public static function load(string|null $version = null): GrammarLoad a pre-compiled SQLite grammar.
Parameters
$version | string|null | SQLite version tag (e.g., "sqlite-3.47.2"). Null for default. |
Returns
Test cases 6
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 12§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 6
SqliteGrammarTest::testLoadcallsSqliteGrammarTest::testLoadedGrammarStartSymbolcallsSqliteGrammarTest::testLoadedGrammarStructurecallsSqliteGrammarTest::testLoadWithExplicitVersioncallsSqliteGrammarTest::testLoadWithNonExistentVersionThrowscallsSqliteGrammarTest::testResolveVersionUsesExactConfiguredDefaultcalls
Other tests reaching this symbol 6
Bench::setUpcallsMySqlProviderTestcallsPostgreSqlProviderTestcallsGenerationContextTestcallsSqlGeneratorFactoryTestcallsSqliteProviderTestcalls
Relations§
Static calls 3
- static-call SqlFaker\Sqlite\Generation\GenerationContext::__construct() packages/sql-faker/src/Sqlite/Generation/GenerationContext.php:53
- static-call SqlFaker\Sqlite\SqliteProvider::__construct() packages/sql-faker/src/Sqlite/SqliteProvider.php:58
- static-call SqlFaker\Sqlite\SqliteProvider::__construct() packages/sql-faker/src/Sqlite/SqliteProvider.php:59