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

Column definition operations for PostgreSQL definition.

Methods§

public function parseColumnDefinition(string $entry): array{name: string, type: string, columnType: ColumnDeclaration, notNull: bool, primaryKey: bool, unique: bool, default: string|null, identity: bool, generatedExpression: string|null}|null

Parameters

$entrystring

Returns

array{name: string, type: string, columnType: ColumnDeclaration, notNull: bool, primaryKey: bool, unique: bool, default: string|null, identity: bool, generatedExpression: string|null}|null
Test cases 2
Called from 1
Calls 16
public static function isSerialType(string $nativeType): bool
public static function hasGeneratedIdentity(string $constraints): bool
public function generatedExpression(string $afterType, bool $identity): ?string

Reads a stored generated expression only for non-identity columns.

Parameters

$afterTypestring
$identitybool

Returns

?string
Test cases 1
Called from 1
Calls 2

Test cases 15§

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

Dedicated tests 5
Other tests reaching this symbol 10

Relations§

Instantiated in 1
Static calls 1
Method calls 1