final class SqliteNativeUpsertProjector

Builds SQL projections that evaluate upsert expressions using SQLite.

Methods§

public function __construct()

Binds the dependencies used by this operation.

Calls 1
public function project(
    string $incomingSql,
    string $tableName,
    list<string> $tableColumns,
    array<string, array<int, string>> $candidateKeys,
    array<string, string> $assignments,
    ?string $predicate = null,
    ?string $conflictPredicate = null,
): string

Parameters

$incomingSqlstring
$tableNamestring
$tableColumnslist<string>
$candidateKeysarray<string, array<int, string>>
$assignmentsarray<string, string>
$predicate?string
$conflictPredicate?string

Returns

string
Test cases 6
Called from 1
Calls 12

Private surface 4§

Implementation details, listed for orientation only.

private const INCOMING_ALIAS = '__ztd_incoming'
private const EXISTING_ALIAS = '__ztd_existing'
private IdentifierQuoter $quoter
private non-empty-list<string> $incomingNamespaces

Test cases 11§

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 5

Relations§

Instantiated in 1
Method calls 1
Type declarations 1