classInsertRowRenderer
final class InsertRowRenderer
Builds INSERT row expressions using supplied values, defaults and generated identities.
Methods§
public function __construct()Binds the dependencies used by this operation.
Calls 1
public function providedExpressions(
list<string> $insertColumns,
list<string> $values,
): array<string, string>Parameters
$insertColumns | list<string> | |
$values | list<string> |
Returns
array<string, string>Throws
InvalidArgumentExceptionTest cases 3
Called from 1
public function render(
list<string> $tableColumns,
array<string, string> $providedExpressions,
array<string, string> $defaults,
array<string, int> $generatedIdentityValues = [],
): array<string, string>Parameters
$tableColumns | list<string> | |
$providedExpressions | array<string, string> | |
$defaults | array<string, string> | |
$generatedIdentityValues | array<string, int> |
Returns
array<string, string>Test cases 1
Called from 1
Calls 1
- method-call InsertRowProjectionPlanner::plan() line 62
Private surface 1§
Implementation details, listed for orientation only.
private InsertRowProjectionPlanner $projectionPlannerTest cases 12§
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 9
SqliteRewriterTestcallsStatementRewriterTestcallsInsertProjectionBuilderTest::testBuildInsertRowSelectFillsDefaultsAndAppliesColumnTypescallsInsertProjectionBuilderTest::testBuildInsertSelectProjectsMultipleRowsWithGeneratedIdentitycallsInsertProjectionBuilderTest::testBuildInsertSelectRejectsMismatchedRowCardinalitycallsInsertProjectionBuilderTest::testBuildSelectSourceProjectsAnInsertSelectSourcecallsInsertTransformerTestcallsSqliteTransformerTestcallsSqliteSessionFactoryTestcalls
Relations§
Instantiated in 1
Method calls 2
- method-call ZtdQuery\Platform\Sqlite\Rewrite\Transformer\Insert\InsertProjectionBuilder::buildInsertRowSelect() packages/ztd-query-sqlite/src/Rewrite/Transformer/Insert/InsertProjectionBuilder.php:123
- method-call ZtdQuery\Platform\Sqlite\Rewrite\Transformer\Insert\InsertProjectionBuilder::buildInsertRowSelect() packages/ztd-query-sqlite/src/Rewrite/Transformer/Insert/InsertProjectionBuilder.php:130
Type declarations 2
- type ZtdQuery\Platform\Sqlite\Rewrite\Transformer\Insert\InsertProjectionBuilder packages/ztd-query-sqlite/src/Rewrite/Transformer/Insert/InsertProjectionBuilder.php:33
- type ZtdQuery\Platform\Sqlite\Rewrite\Transformer\InsertTransformer packages/ztd-query-sqlite/src/Rewrite/Transformer/InsertTransformer.php:32