interfaceShadowMutation
interface ShadowMutation
What a statement would do to the shadow.
Type Aliases§
Row = import from TableDefinitionMethods§
public function apply(ShadowStore $store, array<int, Row> $rows): voidWrites into the shadow what the statement would have written.
The rows are what the rewritten statement read back, which is what the database would have written -- so applying is carrying that into the shadow, not working out the effect a second time.
Parameters
$store | ShadowStore | Shadow to write into |
$rows | array<int, Row> | Rows the rewritten statement read back |
Throws
SimulationException When the shadow will not take what the statement would writeCalled from 1
public function tableName(): stringTarget table name for the mutation.
Returns
stringCalled from 4
- method-call ZtdQuery\Shadow\ShadowApplication::apply() packages/ztd-query-core/src/Shadow/ShadowApplication.php:58
- method-call ZtdQuery\Shadow\ShadowApplication::apply() packages/ztd-query-core/src/Shadow/ShadowApplication.php:83
- method-call ZtdQuery\Shadow\ShadowApplication::lastInsertIdOf() packages/ztd-query-core/src/Shadow/ShadowApplication.php:110
- method-call ZtdQuery\Shadow\TableTransitions::of() packages/ztd-query-core/src/Shadow/TableTransitions.php:58
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Other tests reaching this symbol 1
DataMutationTestcalls
Relations§
Implemented by 3
Extended by 2
Method calls 9
- method-call ZtdQuery\Shadow\Mutation\MutationImpact::affectedRowCount() packages/ztd-query-core/src/Shadow/Mutation/MutationImpact.php:61
- method-call ZtdQuery\Shadow\Mutation\MutationImpact::affectedRowCount() packages/ztd-query-core/src/Shadow/Mutation/MutationImpact.php:67
- method-call ZtdQuery\Shadow\Mutation\MutationImpact::returningRows() packages/ztd-query-core/src/Shadow/Mutation/MutationImpact.php:82
- method-call ZtdQuery\Shadow\ShadowApplication::apply() packages/ztd-query-core/src/Shadow/ShadowApplication.php:58
- method-call ZtdQuery\Shadow\ShadowApplication::apply() packages/ztd-query-core/src/Shadow/ShadowApplication.php:62
- method-call ZtdQuery\Shadow\ShadowApplication::apply() packages/ztd-query-core/src/Shadow/ShadowApplication.php:64
- method-call ZtdQuery\Shadow\ShadowApplication::apply() packages/ztd-query-core/src/Shadow/ShadowApplication.php:83
- method-call ZtdQuery\Shadow\ShadowApplication::lastInsertIdOf() packages/ztd-query-core/src/Shadow/ShadowApplication.php:110
- method-call ZtdQuery\Shadow\TableTransitions::of() packages/ztd-query-core/src/Shadow/TableTransitions.php:58
Type declarations 10
- type ZtdQuery\Rewrite\RewritePlan packages/ztd-query-core/src/Rewrite/RewritePlan.php:34
- type ZtdQuery\Rewrite\RewritePlan packages/ztd-query-core/src/Rewrite/RewritePlan.php:50
- type ZtdQuery\Rewrite\RewritePlan packages/ztd-query-core/src/Rewrite/RewritePlan.php:80
- type ZtdQuery\Rewrite\RewritePlan packages/ztd-query-core/src/Rewrite/RewritePlan.php:96
- type ZtdQuery\Session packages/ztd-query-core/src/Session.php:124
- type ZtdQuery\Shadow\Mutation\MutationImpact packages/ztd-query-core/src/Shadow/Mutation/MutationImpact.php:37
- type ZtdQuery\Shadow\ReferentialIntegrityEnforcer packages/ztd-query-core/src/Shadow/ReferentialIntegrityEnforcer.php:47
- type ZtdQuery\Shadow\ShadowApplication packages/ztd-query-core/src/Shadow/ShadowApplication.php:56
- type ZtdQuery\Shadow\ShadowApplication packages/ztd-query-core/src/Shadow/ShadowApplication.php:104
- type ZtdQuery\Shadow\TableTransitions packages/ztd-query-core/src/Shadow/TableTransitions.php:55