classMetadataColumns
final class MetadataColumns
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.
Adds evaluated UPSERT assignments and its optional predicate to result rows.
Methods§
public function __construct(private IdentifierQuoter $quoter, private ExpressionBinder $binder)Use the same identifier and expression bindings as the surrounding projection.
Parameters
$quoter | IdentifierQuoter | |
$binder | ExpressionBinder |
public function render(
string $tableName,
list<string> $tableColumns,
array<string, string> $assignments,
string $conflict,
?string $predicate,
?string $incomingNamespace,
): list<string>Parameters
$tableName | string | |
$tableColumns | list<string> | |
$assignments | array<string, string> | |
$conflict | string | |
$predicate | ?string | |
$incomingNamespace | ?string |
Returns
list<string>Test cases 1
Called from 1
Calls 7
- method-call IdentifierQuoter::quote() line 32
- class-const ExpressionBinder::EXISTING_ALIAS() line 33
- new UpsertMutationRow line 34
- function-call
array_valuesline 35 - method-call ExpressionBinder::bindExpression() line 36
- method-call UpsertMutationRow::valueColumn() line 42
- method-call UpsertMutationRow::predicateColumn() line 52
Private surface 2§
Implementation details, listed for orientation only.
private IdentifierQuoter $quoterprivate ExpressionBinder $binderTest cases 9§
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 8
MySqlSessionFactoryTestcallsMySqlRewriterTestcallsStatementRewriterTestcallsInsertTransformerTestcallsMySqlTransformerTestcallsReplaceTransformerTestcallsMySqlNativeUpsertProjectorTestcallsMySqlMutationResolverTestcalls