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

Dml resolver operations for PostgreSQL mutation.

Methods§

public function __construct(
    PgSqlParser $parser,
    TableDefinitionRegistry $registry,
    ShadowStore $shadowStore,
)

Supplies the dependencies used by this RowMutationResolver.

Parameters

public function resolveUpsert(
    string $sql,
    string $tableName,
    string $storageTable,
    list<string> $primaryKeys,
    array{columns: list<string>, values: array<string, string>} $conflictInfo,
    ?CandidateKeySet $candidateKeys,
    ?string $conflictPredicate,
): ShadowMutation

Resolves update expressions using database evaluation whenever a candidate key permits it.

Parameters

$sqlstring
$tableNamestring
$storageTablestring
$primaryKeyslist<string>
$conflictInfoarray{columns: list<string>, values: array<string, string>}
$candidateKeys?CandidateKeySet
$conflictPredicate?string
Test cases 1
Called from 1
Calls 5

Private surface 3§

Implementation details, listed for orientation only.

private PgSqlParser $parser
private TableDefinitionRegistry $registry
private ShadowStore $shadowStore

Test cases 10§

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

Dedicated tests 6
Other tests reaching this symbol 4

Relations§

Instantiated in 5
Method calls 5