final class ResultProjection
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.

Result Projection.

Methods§

public function __construct(
    private CastRenderer $castRenderer,
    private ShadowIdentityAllocator $identityAllocator,
    private InsertSelectRenderer $insertSelectRenderer,
    private InsertRowRenderer $rowRenderer,
)

Configure the dependencies used by this operation.

Parameters

$castRendererCastRenderer
$identityAllocatorShadowIdentityAllocator
$insertSelectRendererInsertSelectRenderer
$rowRendererInsertRowRenderer
public function buildInsertSelect(
    InsertStatement $statement,
    InsertTarget $target,
    ?string $sourceSelectSql,
): string
public function buildInsertRowSelect(ArrayObj $valueSet, InsertTarget $target): string
public function buildInsertSetSelect(
    array<int, SetOperation> $setOperations,
    InsertTarget $target,
): string
public function buildInsertSourceSelect(
    SelectStatement $statement,
    InsertTarget $target,
    ?string $sourceSelectSql,
): string

Project an INSERT SELECT source using the destination column types.

Parameters

$statementSelectStatement
$targetInsertTarget
$sourceSelectSql?string

Returns

string
Test cases 1
Called from 1
Calls 6

Private surface 4§

Implementation details, listed for orientation only.

private CastRenderer $castRenderer
private ShadowIdentityAllocator $identityAllocator
private InsertSelectRenderer $insertSelectRenderer
private InsertRowRenderer $rowRenderer

Test cases 12§

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

Dedicated tests 5
Other tests reaching this symbol 7

Relations§

Instantiated in 1
Static calls 2
Method calls 1