Code Monkey home page Code Monkey logo

Comments (5)

mehaase avatar mehaase commented on June 11, 2024

I like your suggestion: the database name option should be called --database and --schema should mean the schema name. One question: should --schema take a list of schema names, like --schema foo,bar,public?

This will require some rewriting of docs and unit tests. Is this something you can send a pull request for? If not, I can get to it sometime in December.

from agnostic.

patrick-jones avatar patrick-jones commented on June 11, 2024

I can probably do a pull request, though I might not get to it immediately. I think taking multiple schema names would be useful, as would some kind of ability to run against all non-public schemas.

from agnostic.

mehaase avatar mehaase commented on June 11, 2024

Ok. Let me know if you do get started on it, so that we don't duplicate effort. If I get started first, I'll let you know.

from agnostic.

mehaase avatar mehaase commented on June 11, 2024

Hey @patrick-jones I've just pushed an implementation of what we discussed about renaming --schema to --database and adding a new --schema flag in its place. It supports Postgres search paths, including the special $user path, e.g. ``--schema '"$user",public'`. I did not implement the "run against all non-public schemas" feature.

I tested this carefully to verify that it works as I think it should, but I don't use schemas myself (I put everything in public), so I could use your feedback on whether this works as you expect it to.

from agnostic.

patrick-jones avatar patrick-jones commented on June 11, 2024

Sorry for ignoring you -- I'll try to look into this soon.

from agnostic.

Related Issues (17)

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.