Code Monkey home page Code Monkey logo

Comments (3)

michaelsogos avatar michaelsogos commented on May 25, 2024

Hi @blaluc ,

If i understood well, the purpose of this tool is exaclty what you intend.
I mean, no matter if database objects are in the same database but with a different schema (other than "public") or in different database.

To configure it you should follow the documentation, in there you will find a JSON.

In our experience we use it for different databases, i never used it to compare different schema on same database. (that should be exactly what you ask).

Did i helped you?

from pg-diff.

blaluc avatar blaluc commented on May 25, 2024

I read the json config, but I still don't understand how to configure the following scenario:
I have the source db with its connections params.
I have the target db with other connections params.
...so far so good, the documentation i clear.

Now I want to compare the schema named 'dev' on the source db with the schema named 'test' on the target. Where should I specify the two schema names?

In the options/schemaNamespace/namespaces node I see a flat list of schema names. How can I declare the mapping of the schema 'dev' on the source to the schema 'test' of the target?

from pg-diff.

michaelsogos avatar michaelsogos commented on May 25, 2024

Hi @blaluc

Sorry, I misunderstood your use case.
Actually it's not supported. It is like you want to compare two classes in different namespace or package. It is essentially an logical error; in any case, how should I recognize if two table having same name but in different schema must be compared? Just in case you have to consider that there are many potential unwanted comparison that will produce of course a wrong sql patch.

In any case I'd like to investigate further about this feature.

from pg-diff.

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.