final class PgSqlSchemaReflector
    implements SchemaReflector, ViewReflector

Fetches PostgreSQL schema information via information_schema queries.

Reconstructs CREATE TABLE statements from pg_catalog/information_schema since PostgreSQL has no SHOW CREATE TABLE equivalent.

Methods§

public function __construct(ConnectionInterface $connection)

Initializes the collaborators and state used by this schema reflector.

Parameters

public function getCreateStatement(string $tableName): ?string

{@inheritDoc}

Parameters

$tableNamestring

Returns

?string
Test cases 67
Called from 1
Calls 15

Private surface 2§

Implementation details, listed for orientation only.

private ConnectionInterface $connection
private array<string, array<string, PartialUniqueIndex>> $partialUniqueIndexes = []

Test cases 78§

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

Dedicated tests 76
Other tests reaching this symbol 2

Relations§

Instantiated in 1
Method calls 3
Type declarations 1