final class ReplaceTransformer
    implements SqlTransformer

Transforms REPLACE statements into SELECT queries that return the replaced rows. Applies CTE shadowing via the SelectTransformer delegate.

Methods§

public function __construct(MySqlParser $parser, SelectTransformer $selectTransformer)

Configure the dependencies used by this operation.

Parameters

$parserMySqlParser
$selectTransformerSelectTransformer
Calls 1
public function transform(string $sql, array $tables): string

{@inheritDoc}

Parameters

$sqlstring
$tablesarray

Returns

string
Test cases 29
Called from 1
Calls 6

Private surface 2§

Implementation details, listed for orientation only.

private MySqlParser $parser
private InsertTransformer $insertTransformer

Test cases 190§

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

Dedicated tests 29
Other tests reaching this symbol 161

Relations§

Instantiated in 1
Method calls 2
Type declarations 2