classNativeCastTarget
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): stringMaps integer aliases while retaining small and big integer widths.
Parameters
$nativeType | string |
Returns
stringTest cases 1
Called from 1
public static function decimal(string $nativeType): stringPreserves decimal precision and scale in a NUMERIC target.
Parameters
$nativeType | string |
Returns
stringTest cases 1
Called from 1
public static function string(string $nativeType): stringPreserves VARCHAR bounds and falls back to TEXT for other strings.
Parameters
$nativeType | string |
Returns
stringTest cases 1
Called from 1
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
PgSqlSessionFactoryTestcallsPgSqlRewriterTestcallsStatementRewriterTestcallsRowSourceRendererTestcallsDeleteTransformerTestcallsExpressionCastTestcallsValueProjectionTestcallsInsertTransformerTestcallsMergeTransformerTestcallsPgSqlTransformerTestcallsSelectTransformerTestcallsUpdateTransformerTestcallsCastTypeMapperTestcallsPgSqlCastRendererTestcallsPgSqlValueRendererTestcalls
Relations§
Static calls 3
- static-call ZtdQuery\Platform\Postgres\Sql\Value\CastTypeMapper::map() packages/ztd-query-postgres/src/Sql/Value/CastTypeMapper.php:32
- static-call ZtdQuery\Platform\Postgres\Sql\Value\CastTypeMapper::map() packages/ztd-query-postgres/src/Sql/Value/CastTypeMapper.php:35
- static-call ZtdQuery\Platform\Postgres\Sql\Value\CastTypeMapper::map() packages/ztd-query-postgres/src/Sql/Value/CastTypeMapper.php:36