classInsertSelectRenderer
final class InsertSelectRenderer
Projects INSERT SELECT results onto target table columns.
Methods§
public function __construct()Binds the dependencies used by this operation.
Calls 2
public function render(
string $selectSql,
list<string> $tableColumns,
list<string> $insertColumns,
array<string, string> $defaults,
array<string, int> $generatedIdentityStarts = [],
): stringParameters
$selectSql | string | |
$tableColumns | list<string> | |
$insertColumns | list<string> | |
$defaults | array<string, string> | |
$generatedIdentityStarts | array<string, int> |
Returns
stringCalled from 1
Calls 4
- method-call SqliteIdentifierQuoter::quote() line 43
- method-call InsertSelectProjectionPlanner::plan() line 47
- method-call InsertSelectRenderer::renderGeneratedIdentity() line 53
- function-call
implodeline 62
public function renderGeneratedIdentity(int $start): stringReturns render generated identity.
Parameters
$start | int |
Returns
stringThrows
InvalidArgumentExceptionTest cases 2
Called from 1
Calls 1
- new
InvalidArgumentExceptionline 73
Private surface 2§
Implementation details, listed for orientation only.
private SqliteIdentifierQuoter $quoterprivate InsertSelectProjectionPlanner $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 1
Type declarations 2
- type ZtdQuery\Platform\Sqlite\Rewrite\Transformer\Insert\InsertProjectionBuilder packages/ztd-query-sqlite/src/Rewrite/Transformer/Insert/InsertProjectionBuilder.php:31
- type ZtdQuery\Platform\Sqlite\Rewrite\Transformer\InsertTransformer packages/ztd-query-sqlite/src/Rewrite/Transformer/InsertTransformer.php:34