classInsertQuery
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
$quoter | MySqlIdentifierQuoter |
public function buildInsertSql(
LoadStatement $statement,
string $tableName,
TableDefinition $definition,
list<string> $targets,
array<string, string> $setOperations,
list<array<string, string>> $rows,
): stringParameters
$statement | LoadStatement | |
$tableName | string | |
$definition | TableDefinition | |
$targets | list<string> | |
$setOperations | array<string, string> | |
$rows | list<array<string, string>> |
Returns
stringThrows
Test cases 2
Called from 1
Calls 6
- method-call InsertQuery::orderedColumns() line 39
- new UnsupportedSqlException line 41
- method-call
LoadStatement::build()line 41 - function-call
implodeline 51 - function-call
array_mapline 51 - method-call MySqlIdentifierQuoter::quote() line 51
public function orderedColumns(
list<string> $targets,
array<string, string> $setOperations,
TableDefinition $definition,
): list<string>Parameters
$targets | list<string> | |
$setOperations | array<string, string> | |
$definition | TableDefinition |
Returns
list<string>Test cases 1
Called from 1
Private surface 1§
Implementation details, listed for orientation only.
private MySqlIdentifierQuoter $quoterTest 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
MySqlSessionFactoryTestcallsMySqlLoadDataProjectorTestcallsMySqlRewriterTestcalls