Coder Social home page Coder Social logo

Comments (4)

jbogard avatar jbogard commented on August 11, 2024 2

Support for complex circular dependencies now in 3.0

from respawn.

jbogard avatar jbogard commented on August 11, 2024

So what you're really referring to is circular references, right? In terms of "real world" we use it on all of our projects, some with in the hundreds of tables so I'm not sure what qualifies "real world" or not.

The example you have doesn't show a circular reference though. If you want to deal with circular references, you'll need to ignore those tables and use FK disabling to do so (disable FKs, truncate tables, enable FKs).

Although I've seen quite a few "real world" databases that have zero referential integrity, and Respawn won't work for them of course.

from respawn.

thiagomajesk avatar thiagomajesk commented on August 11, 2024

Hi @jbogard, thanks for the prompt reply...

So what you're really referring to is circular references, right?

Not only (but that's why I've linked Issue: #12). As you have already noticed, the example I provided can't be handled by Respawn, and It is not clear to me why.

In terms of "real world" we use it on all of our projects, some with in the hundreds of tables so I'm not sure what qualifies "real world" or not.

That's a really good indicator to me.
Would you suggest that this problem could indicate that my current schema modeling is problematic?

The example you have doesn't show a circular reference though. If you want to deal with circular references, you'll need to ignore those tables and use FK disabling to do so (disable FKs, truncate tables, enable FKs).

This seems a lot to ask from a test setup point of view, don't you think? Couldn't Respawn provide some built-in solution for those cases?

PS.: I think would be great to have documentation for some common use cases like this

from respawn.

jbogard avatar jbogard commented on August 11, 2024

from respawn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.