final class ResultSelect
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.
Builds DELETE result projections from resolved targets and parsed query clauses.
Methods§
public function buildProjection(
DeleteStatement $stmt,
string $originalSql,
array<int, string> $columns,
list<MultiTableMutationTarget> $targets = [],
): array{sql: string, table: string, tables: array<string, array{alias: string}>}
Returns
array{sql: string, table: string, tables: array<string, array{alias: string}>}
Test cases 1
Called from 1
Calls 9
public function primaryTarget(DeleteStatement $stmt): array{table: string, alias: string, aliases: array<string, string>}
Returns
array{table: string, alias: string, aliases: array<string, string>}
Test cases 1
Called from 1
Calls 4
public function namedTarget(DeleteStatement $stmt, string $alias): ?string
Resolve aliases in FROM, JOIN and USING precedence, skipping empty matches.
Parameters
$stmt | DeleteStatement | |
$alias | string | |
Test cases 1
Called from 1
Calls 2
public function sourceClause(DeleteStatement $stmt): string
USING replaces the FROM list while the parsed JOIN clauses remain attached.
Test cases 1
Called from 1
Calls 3
public function suffix(DeleteStatement $stmt, string $originalSql): string
Preserve the original WHERE expression and parsed ordering and limit clauses.
Parameters
$stmt | DeleteStatement | |
$originalSql | string | |
Test cases 1
Called from 1
Calls 5
public function selectList(string $alias, array<int, string> $columns): string
Parameters
$alias | string | |
$columns | array<int, string> | |
Test cases 1
Called from 1
Calls 1
public function resolvedTables(
DeleteStatement $stmt,
array{table: string, alias: string, aliases: array<string, string>} $target,
): array<string, array{alias: string}>
Parameters
$stmt | DeleteStatement | |
$target | array{table: string, alias: string, aliases: array<string, string>} | |
Returns
array<string, array{alias: string}>
Test cases 1
Called from 1
Calls 2
Test cases 14§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 7
Other tests reaching this symbol 7
Relations§
Instantiated in 1
Method calls 1