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,
): TableSchema

Get or parse schema from SQL.

Parameters

$createTableSqlstring
$dialectstring|nullDialect for this statement, or null for the provider's own
$versionstring|nullVersion tag for this statement, or null for the provider's own when the dialect is its own and the default of the dialect otherwise
Calls 7
abstract public function getFixtureGenerator(): FixtureGenerator

Supplies the parser selected by the concrete provider.

Called from 1
abstract public function getDialect(): string
abstract public function getVersion(): string
abstract public function getSchemaResolver(): StaticSchemaResolver

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
Other tests reaching this symbol 3

Relations§

Extended by 1
Static calls 1