final class InsertQuery
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.

Insert Query.

Methods§

public function __construct(private MySqlIdentifierQuoter $quoter)

Configure the dependencies used by this operation.

Parameters

public function buildInsertSql(
    LoadStatement $statement,
    string $tableName,
    TableDefinition $definition,
    list<string> $targets,
    array<string, string> $setOperations,
    list<array<string, string>> $rows,
): string

Parameters

$statementLoadStatement
$tableNamestring
$definitionTableDefinition
$targetslist<string>
$setOperationsarray<string, string>
$rowslist<array<string, string>>

Returns

string
Test cases 2
Called from 1
Calls 6
public function orderedColumns(
    list<string> $targets,
    array<string, string> $setOperations,
    TableDefinition $definition,
): list<string>

Parameters

$targetslist<string>
$setOperationsarray<string, string>
$definitionTableDefinition

Returns

list<string>
Test cases 1
Called from 1
Calls 2
  • function-call array_keys line 89
  • function-call array_key_exists line 94

Private surface 1§

Implementation details, listed for orientation only.

private MySqlIdentifierQuoter $quoter

Test cases 6§

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

Dedicated tests 3
Other tests reaching this symbol 3

Relations§

Instantiated in 1
Method calls 1