Coder Social home page Coder Social logo

Comments (4)

perrin4869 avatar perrin4869 commented on June 18, 2024 1

Those environment variables are documented here actually, and aren't used directly by postgrator-cli at all... so I am not sure how to document their usage ><;;
The idea here was to have this library not get in the way of how the underlying clients work, so if the clients support any kind of environment variables, they should be picked up automatically...

from postgrator-cli.

bcomnes avatar bcomnes commented on June 18, 2024

Looks like it does:

tests.push(async () => {
console.log('\n----- testing using environment variables to run migrations -----');
process.env.PGHOST = options.host;
process.env.PGPORT = options.port;
process.env.PGUSER = options.username;
process.env.PGPASSWORD = options.password;
process.env.PGDATABASE = options.database;

Want a docs PR?

from postgrator-cli.

perrin4869 avatar perrin4869 commented on June 18, 2024

Any PR that improves documentation is very welcome!

from postgrator-cli.

bcomnes avatar bcomnes commented on June 18, 2024

Ah ok, I see. Maybe just a quick pointer to that part of the pg docs would save others some research. Thank you!

from postgrator-cli.

Related Issues (18)

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.