interfaceSchemaFetcherInterface
interface SchemaFetcherInterface
Interface for fetching table schemas from a database connection.
Methods§
public function fetchSchema(PDO $pdo, string $tableName): TableSchemaFetch the schema for a table from the database.
Parameters
$pdo | PDO | Database connection |
$tableName | string | Table name (e.g., "users" or "mydb.users") |
Returns
TableSchema Parsed table schemaThrows
SchemaParseException If the schema cannot be fetched or parsedTest cases 12§
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 11
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsDatabaseFixtureProviderTestcallsFileFixtureProviderTestcallsFixtureProviderTestcallsMySqlSchemaFetcherTestcallsPlatformFactoryTestcallsPostgreSqlSchemaFetcherTestcallsSqliteSchemaFetcherTestcallsDatabaseSchemaCacheTestcallsSqlSchemaProviderTestcalls
Relations§
Implemented by 3
Method calls 1
Type declarations 4
- type SqlFixture\DatabaseFixtureProvider packages/sql-fixture/src/DatabaseFixtureProvider.php:31
- type SqlFixture\DatabaseFixtureProvider packages/sql-fixture/src/DatabaseFixtureProvider.php:44
- type SqlFixture\Platform\PlatformFactory packages/sql-fixture/src/Platform/PlatformFactory.php:76
- type SqlFixture\Provider\DatabaseSchemaCache packages/sql-fixture/src/Provider/DatabaseSchemaCache.php:26