final class UpsertProjection
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Upsert projection operations for PostgreSQL insert.

Methods§

public function __construct(PgSqlParser $parser, PgSqlNativeUpsertProjector $upsertProjector)

Supplies the dependencies used by this UpsertProjection.

Parameters

public function projectUpsert(
    string $sql,
    string $selectSql,
    string $tableName,
    list<string> $tableColumns,
    array<string, array{candidateKeys?: array<string, array<int, string>>, partialUniqueIndexes?: array<string, PartialUniqueIndex>}> $tables,
): string

Private surface 2§

Implementation details, listed for orientation only.

private PgSqlParser $parser
private PgSqlNativeUpsertProjector $upsertProjector

Test cases 6§

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

Dedicated tests 1
Other tests reaching this symbol 5

Relations§

Instantiated in 2
Method calls 2