Comments (9)
+1
from respawn.
You can filter tables and schemas, but that's about it. You can't filter FKs, though I'm not sure how this would work anyway? Wouldn't it still fail trying to delete those tables because there are some rows WITH foreign keys?
from respawn.
Thank you for your answer.
I am new to Respawn and I might not understand well how it works. But I thought it would watch SQL requests going through and then replay a sort of "rollback" by deleting rows that where added.
I don't understand why it would delete "tables".
Our unit tests only add some rows, and we just need to delete thoses rows, in a certain order, respectfuly of the FKs (delete the children rows in the children table, then the parent row).
Thanks again
from respawn.
It deletes all tables, in the right order. That replay sounds interesting,
though.
On Thursday, September 24, 2015, nfaugout [email protected] wrote:
Thank you for your answer.
I am new to Respawn and I might not understand well how it works. But I
thought it would watch SQL requests going through and then replay a sort of
"rollback" by deleting rows that where added.I don't understand why it would delete "tables".
Our unit tests only add some rows, and we just need to delete thoses rows,
in a certain order, respectfuly of the FKs (delete the children rows in the
children table, then the parent row).Thanks again
—
Reply to this email directly or view it on GitHub
#12 (comment).
from respawn.
OK thanks for clarifying. I understand now why Respawn is not compatible with our tables refering to each others.
from respawn.
So I'm getting this same error; however, it only happens in our AWS environment, not when I run locally - any chance existing data would cause this error where as a clean DB would not?
from respawn.
Dunno, are the constraints different?
from respawn.
I ran
select so_pk.name, so_fk.name from sysforeignkeys sfk inner join sys.objects so_pk on sfk.rkeyid = so_pk.object_id inner join sys.schemas pk_schema on so_pk.schema_id = pk_schema.schema_id inner join sys.objects so_fk on sfk.fkeyid = so_fk.object_id inner join sys.schemas fk_schema on so_fk.schema_id = fk_schema.schema_id
On both DBs to compare and they were identical. Is there a better way to tell?
from respawn.
You can close this issue, I opened one that highlights the actual problem that I was encountering
from respawn.
Related Issues (20)
- Feature: Any plans to support MondoDB HOT 1
- Issue with truncate cascade in Postgres HOT 1
- Getting Error in ResetAsync with EmptyDatabase HOT 11
- Support for MongoDB HOT 1
- Continues to truncate Table User even if its ignored. HOT 1
- When all tables ignored, error: `BeginExecuteNonQuery: CommandText property has not been initialized.` is thrown by Respawn
- Oracle error while creating respawner when include table with schema name
- DbAdapter = DbAdapter.MySql ignored HOT 5
- SqlServer - reseed error if database is case sensitivity HOT 1
- 6.0.1 Release? HOT 1
- Cannot delete rows from a temporal history table HOT 1
- Would there be reset to snapshot feature someday? HOT 9
- Respawn if there is nothing to clear at the moment doesn't work HOT 5
- Have the option to use DELETE statements for Postgres to increase performance HOT 1
- DNDocs API Explorer
- Respawn in CosmosDB HOT 1
- Update vulnerable Microsoft.Data.SqlClient dependency HOT 2
- Asynchronous tests concurrency problems. HOT 9
- Add ConfigureAwait(false) to async method calls, to prevent potential deadlocks in the presence of a SynchronizationContext HOT 1
- Bump SqlClient to 5.1.3 and Npgsql to 8.0.3 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from respawn.