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

$pdoPDO
$schemastring
$tablestring

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
Calls 2
  • method-call PDO::prepare() line 24
  • class-const PDO::FETCH_ASSOC() line 37
public function primaryKeys(PDO $pdo, string $schema, string $table): list<string>

Reads primary-key names, returning none when the catalog rejects lookup.

Parameters

$pdoPDO
$schemastring
$tablestring

Returns

list<string>
Test cases 1
Called from 1
Calls 3

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

Relations§

Instantiated in 3
Method calls 3