interfaceSchemaReflector
interface SchemaReflector
Contract for obtaining schema metadata from a live database.
Methods§
public function getCreateStatement(string $tableName): ?stringReturn the CREATE TABLE statement for a table, if available.
Parameters
$tableName | string |
Returns
?stringpublic function reflectAll(): array<string, string>Return all table names and their CREATE TABLE statements.
Returns
array<string, string> Table name => CREATE TABLE SQL.Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Other tests reaching this symbol 1
FakeSchemaReflectorcalls
Relations§
Implemented by 4
- FakeSchemaReflector packages/ztd-query-core/tests/Fake/FakeSchemaReflector.php:12
- MySqlSchemaReflector packages/ztd-query-mysql/src/Schema/MySqlSchemaReflector.php:15
- PgSqlSchemaReflector packages/ztd-query-postgres/src/Schema/PgSqlSchemaReflector.php:19
- SqliteSchemaReflector packages/ztd-query-sqlite/src/Schema/SqliteSchemaReflector.php:19