final class PgSqlCastRenderer
    implements CastRenderer

PostgreSQL CAST expression renderer.

Maps ColumnDeclaration to PostgreSQL-specific CAST syntax. Uses standard CAST() syntax (not :: shorthand) for maximum compatibility.

Methods§

public function renderCast(string $expression, ColumnDeclaration $type): string

{@inheritDoc}

Parameters

$expressionstring
$typeColumnDeclaration

Returns

string
Test cases 26
Calls 2
public function renderNullCast(ColumnDeclaration $type): string

{@inheritDoc}

Parameters

Returns

string
Test cases 35
Calls 2

Test cases 88§

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

Dedicated tests 60
Other tests reaching this symbol 28

Relations§

Instantiated in 3