Giter VIP home page Giter VIP logo

Comments (2)

keith-hall avatar keith-hall commented on July 21, 2024

Hi, thanks for the feedback and suggestion. Personally, I don't want this option in SchemaZen, and I will explain why. The scripts that are created by SchemaZen are designed to be executed by SchemaZen when using the create command. This command creates a new database, and executes the scripts against that. So in this case, we know that none of the objects will already exist, and therefore it seems that to check would be a waste of time, and potentially lead to some confusion.

My understanding therefore is that you would like to execute the scripts manually on an existing database, such that this option would have some use for you. But what about the situation where an object exists but differs? Simply using an IF NOT EXISTS instruction won't find such cases. This is where SchemaZen's compare command comes in handy, and would, in my opinion, be more reliable/accurate for ensuring that two database schemas match.

I realize that in some cases, you may only want certain objects from one database to be copied to another, and then the technique that I just described doesn't really match the use-case. But perhaps it would be better to get the comparison functionality altered to only look at specific objects?

What do you think? Feel free to disagree with me, maybe I am missing something... ;)

from schemazen.

sethreno avatar sethreno commented on July 21, 2024

Thanks for the support @chris-lu. I'm glad you found schemazen useful.

I agree with @keith-hall on this. I'm going to close this issue, but if we misunderstood something or you'd like to discuss it further please reply or bring it up on gitter.

from schemazen.

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.