classSqlSchemaProvider
abstract class SqlSchemaProvider
extends Base
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Keeps the provider schema cache and its protected inheritance hook together.
Methods§
protected function getSchema(
string $createTableSql,
string|null $dialect = null,
string|null $version = null,
): TableSchemaGet or parse schema from SQL.
Parameters
$createTableSql | string | |
$dialect | string|null | Dialect for this statement, or null for the provider's own |
$version | string|null | Version tag for this statement, or null for the provider's own when the dialect is its own and the default of the dialect otherwise |
Returns
Calls 7
- method-call SqlSchemaProvider::getDialect() line 31
- static-call PlatformFactory::resolveVersion() line 33
- method-call SqlSchemaProvider::getVersion() line 33
- function-call
md5line 34 - method-call SqlSchemaProvider::getFixtureGenerator() line 38
- static-call PlatformFactory::createSchemaParser() line 39
- method-call SqlSchemaProvider::getSchemaResolver() line 43
abstract public function getFixtureGenerator(): FixtureGeneratorSupplies the parser selected by the concrete provider.
Returns
abstract public function getDialect(): stringSupplies the default dialect selected by the concrete provider.
Returns
stringabstract public function getVersion(): stringSupplies the version tag of the release selected by the concrete provider.
Returns
stringabstract public function getSchemaResolver(): StaticSchemaResolverSupplies the registry used by fixture plans.
Returns
Private surface 1§
Implementation details, listed for orientation only.
private array<string, TableSchema> $schemaCache = []Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
SqlSchemaProviderTestcalls
Other tests reaching this symbol 3
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsFixtureProviderTestcalls