final class MySqlValueRenderer
    implements ValueRenderer

Encodes shadow values without relying on MySQL string escape modes.

Methods§

public function __construct(private CastRenderer $castRenderer = new \ZtdQuery\Platform\MySql\Sql\Value\MySqlCastRenderer())

Configure the dependencies used by this operation.

Parameters

$castRendererCastRenderer
Calls 1
public function renderValue(mixed $value, ?ColumnDeclaration $type = null): string

Render Value for the supplied MySQL input.

Parameters

$valuemixed
$type?ColumnDeclaration

Returns

string
Test cases 12
Called from 2
Calls 11

Private surface 1§

Implementation details, listed for orientation only.

private CastRenderer $castRenderer = new \ZtdQuery\Platform\MySql\Sql\Value\MySqlCastRenderer()

Test cases 31§

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

Dedicated tests 12
Other tests reaching this symbol 19

Relations§

Instantiated in 2
Method calls 2
Type declarations 2