classUpsertConflictPredicate
final class UpsertConflictPredicate
Restricted visibility: declared "@visibility ZtdQuery\Platform\Sqlite". Code outside that scope must not name this declaration.
Renders a candidate-key predicate for native upsert evaluation.
Methods§
public function __construct(private IdentifierQuoter $quoter)Binds the collaborators used by this operation.
Parameters
$quoter | IdentifierQuoter |
public function conflictPredicate(
array<string, array<int, string>> $candidateKeys,
string $existingAlias,
string $incomingAlias,
): stringParameters
$candidateKeys | array<string, array<int, string>> | |
$existingAlias | string | |
$incomingAlias | string |
Returns
stringTest cases 1
Called from 1
Calls 2
- method-call IdentifierQuoter::quote() line 36
- function-call
implodeline 39
public function qualified(string $alias, string $column): stringRenders a candidate-key predicate for native upsert evaluation.
Parameters
$alias | string | |
$column | string |
Returns
stringTest cases 1
Called from 2
- method-call ZtdQuery\Platform\Sqlite\Rewrite\Upsert\UpsertExpressionBinder::bindExpression() packages/ztd-query-sqlite/src/Rewrite/Upsert/UpsertExpressionBinder.php:65
- method-call ZtdQuery\Platform\Sqlite\Rewrite\Upsert\UpsertExpressionBinder::bindExpression() packages/ztd-query-sqlite/src/Rewrite/Upsert/UpsertExpressionBinder.php:77
Calls 1
- method-call IdentifierQuoter::quote() line 50
Private surface 1§
Implementation details, listed for orientation only.
private IdentifierQuoter $quoterTest cases 9§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 7
SqliteRewriterTestcallsStatementRewriterTestcallsInsertTransformerTestcallsSqliteTransformerTestcallsSqliteNativeUpsertProjectorTestcallsUpsertExpressionBinderTestcallsSqliteSessionFactoryTestcalls
Relations§
Instantiated in 3
- new ZtdQuery\Platform\Sqlite\Rewrite\Upsert\SqliteNativeUpsertProjector::project() packages/ztd-query-sqlite/src/Rewrite/Upsert/SqliteNativeUpsertProjector.php:57
- new ZtdQuery\Platform\Sqlite\Rewrite\Upsert\UpsertExpressionBinder::bindExpression() packages/ztd-query-sqlite/src/Rewrite/Upsert/UpsertExpressionBinder.php:65
- new ZtdQuery\Platform\Sqlite\Rewrite\Upsert\UpsertExpressionBinder::bindExpression() packages/ztd-query-sqlite/src/Rewrite/Upsert/UpsertExpressionBinder.php:77
Method calls 3
- method-call ZtdQuery\Platform\Sqlite\Rewrite\Upsert\SqliteNativeUpsertProjector::project() packages/ztd-query-sqlite/src/Rewrite/Upsert/SqliteNativeUpsertProjector.php:57
- method-call ZtdQuery\Platform\Sqlite\Rewrite\Upsert\UpsertExpressionBinder::bindExpression() packages/ztd-query-sqlite/src/Rewrite/Upsert/UpsertExpressionBinder.php:65
- method-call ZtdQuery\Platform\Sqlite\Rewrite\Upsert\UpsertExpressionBinder::bindExpression() packages/ztd-query-sqlite/src/Rewrite/Upsert/UpsertExpressionBinder.php:77