final class SqliteCastRenderer
    implements CastRenderer

SQLite implementation of CastRenderer.

Maps ColumnDeclaration to SQLite CAST syntax using SQLite's type affinity system. SQLite supports: INTEGER, REAL, TEXT, BLOB, NUMERIC.

Methods§

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

Wraps a SQL expression in a cast to its portable column type.

Parameters

$expressionstring
$typeColumnDeclaration

Returns

string
Test cases 35
Called from 1
Calls 2

Test cases 69§

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

Dedicated tests 45
Other tests reaching this symbol 24

Relations§

Instantiated in 4
Method calls 1
Type declarations 1