final class InsertSelectRenderer

Insert select renderer for PostgreSQL queries.

Methods§

public function __construct()

Initializes the collaborators and state used by this insert select renderer.

Calls 2
public function render(
    string $selectSql,
    list<string> $tableColumns,
    list<string> $insertColumns,
    array<string, string> $defaults,
    array<string, int> $generatedIdentityStarts = [],
): string

Parameters

$selectSqlstring
$tableColumnslist<string>
$insertColumnslist<string>
$defaultsarray<string, string>
$generatedIdentityStartsarray<string, int>

Returns

string
Test cases 1
Called from 1
Calls 4
public function renderGeneratedIdentity(int $start): string

Private surface 2§

Implementation details, listed for orientation only.

private PgSqlIdentifierQuoter $quoter
private InsertSelectProjectionPlanner $projectionPlanner

Test cases 13§

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

Dedicated tests 2
Other tests reaching this symbol 11

Relations§

Instantiated in 2
Method calls 2
Type declarations 5