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

Caches reflected table schemas for one connection.

Methods§

public function __construct(
    private PDO $connection,
    private SchemaFetcherInterface $schemaFetcher,
)

Reflects missing tables through the selected dialect fetcher.

Parameters

$connectionPDO
$schemaFetcherSchemaFetcherInterface
public function getSchema(string $tableName): TableSchema
public function clear(): void

Private surface 3§

Implementation details, listed for orientation only.

private array<string, TableSchema> $schemaCache = []
private PDO $connection
private SchemaFetcherInterface $schemaFetcher

Test cases 4§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 2

Relations§

Instantiated in 1
Method calls 2
Type declarations 1