interface SchemaReflector

Contract for obtaining schema metadata from a live database.

Methods§

public function getCreateStatement(string $tableName): ?string

Return the CREATE TABLE statement for a table, if available.

Parameters

$tableNamestring

Returns

?string
public 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

Relations§

Implemented by 1