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

Result Select.

Methods§

public function buildProjection(
    UpdateStatement $stmt,
    array<int, string> $columns,
    array<int, string> $primaryKeys = [],
    list<MultiTableMutationTarget> $targets = [],
    list<string> $assignmentValues = [],
    ?string $whereExpression = null,
    ?string $sourceExpression = null,
): array{sql: string, table: string, tables: array<string, array{alias: string}>}

Build a result-select SQL from an UPDATE statement.

Parameters

$stmtUpdateStatement
$columnsarray<int, string>
$primaryKeysarray<int, string>
$targetslist<MultiTableMutationTarget>
$assignmentValueslist<string>
$whereExpression?string
$sourceExpression?string

Returns

array{sql: string, table: string, tables: array<string, array{alias: string}>}

Throws

RuntimeException
Test cases 1
Called from 1
Calls 6
public function targetTables(UpdateStatement $stmt): array<string, array{alias: string}>
public function selectColumns(
    UpdateStatement $stmt,
    array<int, string> $columns,
    array<int, string> $primaryKeys,
    string $qualifier,
    list<string> $assignmentValues,
): list<string>

Parameters

$stmtUpdateStatement
$columnsarray<int, string>
$primaryKeysarray<int, string>
$qualifierstring
$assignmentValueslist<string>

Returns

list<string>
Test cases 1
Called from 1
Calls 6
public function buildQuery(
    UpdateStatement $stmt,
    list<string> $selectCols,
    Expression $targetTableExpr,
    string $targetTableName,
    string $qualifier,
    ?string $whereExpression,
    ?string $sourceExpression,
): string

Parameters

$stmtUpdateStatement
$selectColslist<string>
$targetTableExprExpression
$targetTableNamestring
$qualifierstring
$whereExpression?string
$sourceExpression?string

Returns

string
Test cases 1
Called from 1
Calls 7

Test cases 11§

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

Dedicated tests 4
Other tests reaching this symbol 7

Relations§

Instantiated in 1
Method calls 1