final class CatalogColumn
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Interprets PostgreSQL catalog type and default metadata.

Methods§

public function mapDataType(array{data_type: string, character_maximum_length: ?string, numeric_precision: ?string, numeric_scale: ?string, udt_name: string} $col): string

Parameters

$colarray{data_type: string, character_maximum_length: ?string, numeric_precision: ?string, numeric_scale: ?string, udt_name: string}

Returns

string
Test cases 2
Called from 1
Calls 2
public function elementType(string $udtName): string

Names the declared type of an array element from the catalog type of the array, such as _int4.

Parameters

$udtNamestringCatalog type name of the array, with its leading underscore

Returns

string The type name a CREATE TABLE declares, such as `INTEGER`
Test cases 1
Called from 2
Calls 3
public function resolveType(array{data_type: string, udt_name: string, character_maximum_length: ?string, numeric_precision: ?string, numeric_scale: ?string} $row): string

Parameters

$rowarray{data_type: string, udt_name: string, character_maximum_length: ?string, numeric_precision: ?string, numeric_scale: ?string}

Returns

string
Test cases 2
Called from 1
Calls 2
public function parseDefault(?string $value): int|float|bool|string|null

Parses default.

Parameters

$value?string

Returns

int|float|bool|string|null
Test cases 2
Called from 1
Calls 5

Test cases 16§

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

Dedicated tests 6
Other tests reaching this symbol 10

Relations§

Instantiated in 3
Method calls 3