classRowActions
final class RowActions
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Row actions operations for PostgreSQL merge.
Methods§
public function __construct(
InsertSelectRenderer $insertSelectRenderer,
PgSqlIdentifierQuoter $quoter,
InsertRowRenderer $rowRenderer,
)Supplies the dependencies used by this RowActions.
Parameters
$insertSelectRenderer | InsertSelectRenderer | |
$quoter | PgSqlIdentifierQuoter | |
$rowRenderer | InsertRowRenderer |
public function unchangedRows(
PgSqlMergeStatement $statement,
list<string> $columns,
list<string> $effectiveConditions,
): stringParameters
$statement | PgSqlMergeStatement | |
$columns | list<string> | |
$effectiveConditions | list<string> |
Returns
stringTest cases 1
Called from 1
Calls 6
- method-call PgSqlIdentifierQuoter::quote() line 47
- class-const PgSqlMergeMatchKind::Matched() line 56
- function-call
in_arrayline 57 - class-const PgSqlMergeActionKind::Update() line 57
- class-const PgSqlMergeActionKind::Delete() line 57
- function-call
implodeline 65
public function updatedRows(
string $sql,
PgSqlMergeStatement $statement,
PgSqlMergeClause $clause,
list<string> $columns,
array<string, string> $defaults,
string $effectiveCondition,
): stringParameters
$sql | string | |
$statement | PgSqlMergeStatement | |
$clause | PgSqlMergeClause | |
$columns | list<string> | |
$defaults | array<string, string> | |
$effectiveCondition | string |
Returns
stringThrows
Test cases 1
Called from 1
Calls 6
- function-call
array_keysline 87 - function-call
in_arrayline 88 - new UnsupportedSqlException line 89
- method-call PgSqlIdentifierQuoter::quote() line 93
- function-call
strcasecmpline 100 - function-call
implodeline 106
public function insertedRows<T>(
string $sql,
PgSqlMergeStatement $statement,
PgSqlMergeClause $clause,
list<string> $columns,
array<string, string> $defaults,
array<string, IdentityGenerationStrategy> $identityStrategies,
array<int, array<string, T>> $existingRows,
string $effectiveCondition,
): stringParameters
$sql | string | |
$statement | PgSqlMergeStatement | |
$clause | PgSqlMergeClause | |
$columns | list<string> | |
$defaults | array<string, string> | |
$identityStrategies | array<string, IdentityGenerationStrategy> | |
$existingRows | array<int, array<string, T>> | |
$effectiveCondition | string |
Returns
stringThrows
Test cases 1
Called from 1
Calls 11
- function-call
in_arrayline 139 - new UnsupportedSqlException line 140
- function-call
countline 144 - method-call InsertRowRenderer::providedExpressions() line 147
- method-call ShadowIdentityAllocator::allocateSelectStarts() line 148
- new ShadowIdentityAllocator line 148
- function-call
array_keysline 151 - method-call InsertSelectRenderer::renderGeneratedIdentity() line 155
- method-call InsertRowRenderer::render() line 157
- method-call PgSqlIdentifierQuoter::quote() line 161
- function-call
implodeline 165
public function modifiedRows<T>(
string $sql,
PgSqlMergeStatement $statement,
list<string> $columns,
array<string, string> $defaults,
array<string, IdentityGenerationStrategy> $identityStrategies,
array<int, array<string, T>> $existingRows,
array<int, string> $effectiveConditions,
): list<string>Projects UPDATE and INSERT branches using their ordered effective conditions.
Parameters
$sql | string | |
$statement | PgSqlMergeStatement | |
$columns | list<string> | |
$defaults | array<string, string> | |
$identityStrategies | array<string, IdentityGenerationStrategy> | |
$existingRows | array<int, array<string, T>> | |
$effectiveConditions | array<int, string> |
Returns
list<string>Test cases 1
Called from 1
Calls 4
- class-const PgSqlMergeActionKind::Update() line 186
- method-call RowActions::updatedRows() line 187
- class-const PgSqlMergeActionKind::Insert() line 189
- method-call RowActions::insertedRows() line 190
Private surface 3§
Implementation details, listed for orientation only.
private InsertSelectRenderer $insertSelectRendererprivate PgSqlIdentifierQuoter $quoterprivate InsertRowRenderer $rowRendererTest cases 9§
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 5
PgSqlSessionFactoryTestcallsPgSqlRewriterTestcallsStatementRewriterTestcallsMergeTransformerTestcallsPgSqlTransformerTestcalls
Relations§
Instantiated in 2
- new ZtdQuery\Platform\Postgres\Rewrite\Transformer\MergeTransformer::transform() packages/ztd-query-postgres/src/Rewrite/Transformer/MergeTransformer.php:71
- new ZtdQuery\Platform\Postgres\Rewrite\Transformer\MergeTransformer::transform() packages/ztd-query-postgres/src/Rewrite/Transformer/MergeTransformer.php:73
Method calls 2
- method-call ZtdQuery\Platform\Postgres\Rewrite\Transformer\MergeTransformer::transform() packages/ztd-query-postgres/src/Rewrite/Transformer/MergeTransformer.php:71
- method-call ZtdQuery\Platform\Postgres\Rewrite\Transformer\MergeTransformer::transform() packages/ztd-query-postgres/src/Rewrite/Transformer/MergeTransformer.php:73