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

Normalizes parameterized PostgreSQL CAST target names.

Methods§

public static function integer(string $nativeType): string

Maps integer aliases while retaining small and big integer widths.

Parameters

$nativeTypestring

Returns

string
Test cases 1
Called from 1
Calls 2
public static function decimal(string $nativeType): string

Preserves decimal precision and scale in a NUMERIC target.

Parameters

$nativeTypestring

Returns

string
Test cases 1
Called from 1
Calls 2
public static function string(string $nativeType): string

Preserves VARCHAR bounds and falls back to TEXT for other strings.

Parameters

$nativeTypestring

Returns

string
Test cases 1
Called from 1
Calls 2

Test cases 18§

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

Dedicated tests 3
Other tests reaching this symbol 15

Relations§

Static calls 3