classCatalogQuery
final class CatalogQuery
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Reads PostgreSQL column and primary-key metadata for schema reflection.
Methods§
public function columns(
PDO $pdo,
string $schema,
string $table,
): list<array{column_name: string, data_type: string, character_maximum_length: ?string, numeric_precision: ?string, numeric_scale: ?string, is_nullable: string, column_default: ?string, udt_name: string}>Reads columns in their declared ordinal order.
Parameters
$pdo | PDO | |
$schema | string | |
$table | string |
Returns
list<array{column_name: string, data_type: string, character_maximum_length: ?string, numeric_precision: ?string, numeric_scale: ?string, is_nullable: string, column_default: ?string, udt_name: string}>Test cases 1
Called from 2
- method-call SqlFixture\Platform\PostgreSql\Schema\CatalogDdl::reconstructCreateTable() packages/sql-fixture/src/Platform/PostgreSql/Schema/CatalogDdl.php:29
- method-call SqlFixture\Platform\PostgreSql\Schema\CatalogSchema::fetchSchemaFromInformationSchema() packages/sql-fixture/src/Platform/PostgreSql/Schema/CatalogSchema.php:33
public function primaryKeys(PDO $pdo, string $schema, string $table): list<string>Reads primary-key names, returning none when the catalog rejects lookup.
Parameters
$pdo | PDO | |
$schema | string | |
$table | string |
Returns
list<string>Test cases 1
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 2
Other tests reaching this symbol 10
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsDatabaseFixtureProviderTestcallsFileFixtureProviderTestcallsFixtureProviderTestcallsPlatformFactoryTestcallsPostgreSqlSchemaFetcherTestcallsCatalogDdlTestcallsCatalogSchemaTestcallsSqlSchemaProviderTestcalls
Relations§
Instantiated in 3
- new SqlFixture\Platform\PostgreSql\Schema\CatalogDdl::reconstructCreateTable() packages/sql-fixture/src/Platform/PostgreSql/Schema/CatalogDdl.php:29
- new SqlFixture\Platform\PostgreSql\Schema\CatalogDdl::reconstructCreateTable() packages/sql-fixture/src/Platform/PostgreSql/Schema/CatalogDdl.php:35
- new SqlFixture\Platform\PostgreSql\Schema\CatalogSchema::fetchSchemaFromInformationSchema() packages/sql-fixture/src/Platform/PostgreSql/Schema/CatalogSchema.php:33
Method calls 3
- method-call SqlFixture\Platform\PostgreSql\Schema\CatalogDdl::reconstructCreateTable() packages/sql-fixture/src/Platform/PostgreSql/Schema/CatalogDdl.php:29
- method-call SqlFixture\Platform\PostgreSql\Schema\CatalogDdl::reconstructCreateTable() packages/sql-fixture/src/Platform/PostgreSql/Schema/CatalogDdl.php:35
- method-call SqlFixture\Platform\PostgreSql\Schema\CatalogSchema::fetchSchemaFromInformationSchema() packages/sql-fixture/src/Platform/PostgreSql/Schema/CatalogSchema.php:33