Giter Club home page Giter Club logo

Comments (5)

jmafc avatar jmafc commented on June 30, 2024

Francisco, as I mentioned before, the master branch is not well tested. I would two things first. If you're using the latest from master, then use dbtoyaml -Ox to create the YAML output (i.e., exclude owner and privilege information, which are the latest features added). Alternatively, use either tag v0.5.0 or checkout commit ecc4689 if you'd prefer something more recent.

from pyrseas.

jmafc avatar jmafc commented on June 30, 2024

Francisco, do you have an update to this?

from pyrseas.

jmafc avatar jmafc commented on June 30, 2024

Francisco, I just realized that the -N/--exclude-schema option to dbtoyaml, not to yamltodb.

If I try to use -N, e.g., yamltodb -N public newdb spec.yaml, I get:

yamltodb.py: error: argument spec: can't open 'newdb': [Errno 2] No such file or directory: 'newdb'

If I place the option at the end, e.g., yamltodb newdb spec.yaml -N public, I get:

yamltodb.py: error: unrecognized arguments: -N public

The point is: I don't get very far into yamltodb either way. Now I also tried using -N in dbtoyaml, in a database that had both a schema s1 and the public schema (with a couple of objects each) and piped the output to yamltodb, but it processed it without errors, i.e., it created s1 and its objects.

Coincidentally, we now have issue #43, which looks similar to yours, but I need more information from one or both of you in order to be able to reproduce and resolve the issue.

from pyrseas.

jmafc avatar jmafc commented on June 30, 2024

Francisco, I believe change 0052e8a will fix the error you were seeing, so I'm inclined to close this issue. However, if you want to explore adding a -N option to yamltodb, we could add another issue (or change the title of this one) (hablo español, si te es más fácil).

from pyrseas.

jmafc avatar jmafc commented on June 30, 2024

Closing as I believe this has been fixed and there has been no response from Francisco.

from pyrseas.

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.