interface SchemaFetcherInterface

Interface for fetching table schemas from a database connection.

Methods§

public function fetchSchema(PDO $pdo, string $tableName): TableSchema

Fetch the schema for a table from the database.

Parameters

$pdoPDODatabase connection
$tableNamestringTable name (e.g., "users" or "mydb.users")

Returns

TableSchema Parsed table schema

Throws

SchemaParseException If the schema cannot be fetched or parsed
Called from 1

Test 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

Relations§

Implemented by 3
Method calls 1
Type declarations 4