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 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Other tests reaching this symbol 2
Relations§
Implemented by 5
- AlterTableMutation packages/ztd-query-mysql/src/Shadow/Mutation/Table/AlterTableMutation.php:20
- AlterTableMutation packages/ztd-query-sqlite/src/Shadow/Mutation/Table/AlterTableMutation.php:16
- CreateTableLikeMutation packages/ztd-query-core/src/Shadow/Mutation/Table/CreateTableLikeMutation.php:17
- CreateTableMutation packages/ztd-query-core/src/Shadow/Mutation/Table/CreateTableMutation.php:17
- DropTableMutation packages/ztd-query-core/src/Shadow/Mutation/Table/DropTableMutation.php:16
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 42
- 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
- type ZtdQuery\Platform\MySql\Shadow\Mutation\Row\RowMutationResolver packages/ztd-query-mysql/src/Shadow/Mutation/Row/RowMutationResolver.php:49
- type ZtdQuery\Platform\MySql\Shadow\Mutation\Row\RowMutationResolver packages/ztd-query-mysql/src/Shadow/Mutation/Row/RowMutationResolver.php:92
- type ZtdQuery\Platform\MySql\Shadow\Mutation\Row\RowMutationResolver packages/ztd-query-mysql/src/Shadow/Mutation/Row/RowMutationResolver.php:163
- type ZtdQuery\Platform\MySql\Shadow\Mutation\Row\RowMutationResolver packages/ztd-query-mysql/src/Shadow/Mutation/Row/RowMutationResolver.php:215
- type ZtdQuery\Platform\MySql\Shadow\Mutation\Table\TableMutationResolver packages/ztd-query-mysql/src/Shadow/Mutation/Table/TableMutationResolver.php:42
- type ZtdQuery\Platform\MySql\Shadow\Mutation\Table\TableMutationResolver packages/ztd-query-mysql/src/Shadow/Mutation/Table/TableMutationResolver.php:82
- type ZtdQuery\Platform\MySql\Shadow\Mutation\Table\TableMutationResolver packages/ztd-query-mysql/src/Shadow/Mutation/Table/TableMutationResolver.php:108
- type ZtdQuery\Platform\MySql\Shadow\Mutation\Table\TableMutationResolver packages/ztd-query-mysql/src/Shadow/Mutation/Table/TableMutationResolver.php:156
- type ZtdQuery\Platform\MySql\Shadow\MySqlMutationResolver packages/ztd-query-mysql/src/Shadow/MySqlMutationResolver.php:63
- type ZtdQuery\Platform\Postgres\Shadow\Mutation\Row\RowMutationResolver packages/ztd-query-postgres/src/Shadow/Mutation/Row/RowMutationResolver.php:49
- type ZtdQuery\Platform\Postgres\Shadow\Mutation\Row\RowMutationResolver packages/ztd-query-postgres/src/Shadow/Mutation/Row/RowMutationResolver.php:105
- type ZtdQuery\Platform\Postgres\Shadow\Mutation\Row\RowMutationResolver packages/ztd-query-postgres/src/Shadow/Mutation/Row/RowMutationResolver.php:129
- type ZtdQuery\Platform\Postgres\Shadow\Mutation\Row\RowMutationResolver packages/ztd-query-postgres/src/Shadow/Mutation/Row/RowMutationResolver.php:152
- type ZtdQuery\Platform\Postgres\Shadow\Mutation\Row\RowMutationResolver packages/ztd-query-postgres/src/Shadow/Mutation/Row/RowMutationResolver.php:173
- type ZtdQuery\Platform\Postgres\Shadow\Mutation\Row\RowMutationResolver packages/ztd-query-postgres/src/Shadow/Mutation/Row/RowMutationResolver.php:191
- type ZtdQuery\Platform\Postgres\Shadow\Mutation\Table\TableMutationResolver packages/ztd-query-postgres/src/Shadow/Mutation/Table/TableMutationResolver.php:49
- type ZtdQuery\Platform\Postgres\Shadow\Mutation\Table\TableMutationResolver packages/ztd-query-postgres/src/Shadow/Mutation/Table/TableMutationResolver.php:99
- type ZtdQuery\Platform\Postgres\Shadow\Mutation\Table\TableMutationResolver packages/ztd-query-postgres/src/Shadow/Mutation/Table/TableMutationResolver.php:120
- type ZtdQuery\Platform\Postgres\Shadow\Mutation\Table\TableMutationResolver packages/ztd-query-postgres/src/Shadow/Mutation/Table/TableMutationResolver.php:138
- type ZtdQuery\Platform\Postgres\Shadow\PgSqlMutationResolver packages/ztd-query-postgres/src/Shadow/PgSqlMutationResolver.php:50
- type ZtdQuery\Platform\Sqlite\Shadow\Mutation\Table\Alter\AddColumnResolver packages/ztd-query-sqlite/src/Shadow/Mutation/Table/Alter/AddColumnResolver.php:35
- type ZtdQuery\Platform\Sqlite\Shadow\Mutation\Table\Alter\DropColumnResolver packages/ztd-query-sqlite/src/Shadow/Mutation/Table/Alter/DropColumnResolver.php:34
- type ZtdQuery\Platform\Sqlite\Shadow\Mutation\Table\Alter\RenameResolver packages/ztd-query-sqlite/src/Shadow/Mutation/Table/Alter/RenameResolver.php:34
- type ZtdQuery\Platform\Sqlite\Shadow\Mutation\Table\Alter\RenameResolver packages/ztd-query-sqlite/src/Shadow/Mutation/Table/Alter/RenameResolver.php:58
- type ZtdQuery\Platform\Sqlite\Shadow\Resolution\InsertMutationResolver packages/ztd-query-sqlite/src/Shadow/Resolution/InsertMutationResolver.php:36
- type ZtdQuery\Platform\Sqlite\Shadow\Resolution\InsertMutationResolver packages/ztd-query-sqlite/src/Shadow/Resolution/InsertMutationResolver.php:71
- type ZtdQuery\Platform\Sqlite\Shadow\Resolution\RowMutationResolver packages/ztd-query-sqlite/src/Shadow/Resolution/RowMutationResolver.php:39
- type ZtdQuery\Platform\Sqlite\Shadow\Resolution\RowMutationResolver packages/ztd-query-sqlite/src/Shadow/Resolution/RowMutationResolver.php:63
- type ZtdQuery\Platform\Sqlite\Shadow\Resolution\TableMutationResolver packages/ztd-query-sqlite/src/Shadow/Resolution/TableMutationResolver.php:37
- type ZtdQuery\Platform\Sqlite\Shadow\Resolution\TableMutationResolver packages/ztd-query-sqlite/src/Shadow/Resolution/TableMutationResolver.php:60
- type ZtdQuery\Platform\Sqlite\Shadow\Resolution\TableMutationResolver packages/ztd-query-sqlite/src/Shadow/Resolution/TableMutationResolver.php:87
- type ZtdQuery\Platform\Sqlite\Shadow\SqliteMutationResolver packages/ztd-query-sqlite/src/Shadow/SqliteMutationResolver.php:46