Code Monkey home page Code Monkey logo

Comments (5)

davesag avatar davesag commented on June 27, 2024 1

Hi @chaodoze This feature is now available in version 1.2.0 — thanks for your suggestion.

from sequelize-pg-utilities.

davesag avatar davesag commented on June 27, 2024

@chaodoze would you mind spelling out in more detail what you want?

from sequelize-pg-utilities.

davesag avatar davesag commented on June 27, 2024

I'm looking at sequelize/sequelize#956 but that's quite an old issue. I am using this library in production on projects running on Heroku without any special config on my end, though I do recall some config needed to be done at the Heroku end.

Anyway please get back to me with more details and I am happy to look into this further for you.

from sequelize-pg-utilities.

chaodoze avatar chaodoze commented on June 27, 2024

from sequelize-pg-utilities.

davesag avatar davesag commented on June 27, 2024

Hi @chaodoze that's interesting. Under the hood I am using pgtools to handle the creation of the database, but am simply using sequelize to actually connect to it once the database has been created. My library just formats the config correctly for either to use.

Assuming your database is running in production when secured you probably won't need to use the makeInitialiser feature I provide (which is the bit that uses pgtools) but you will need to pass ssl configuration options through to sequelize. (Note if you are not using sequelize then you don't need this library at all).

It looks like I could just take the ssl block from config and pass it through as dialectOptions. I'd be willing to try that as a test-release and you could check to see if that does what you need. If it does then I'd also probably have to refactor the makeInitialiser function to not use pgtools.

So one step at a time perhaps.

I'm also on vacation right now (we Australians get a 4 day break for easter) but I am not doing much other than loll about by the hotel pool, so will spend a bit more time having a look at this.

from sequelize-pg-utilities.

Related Issues (16)

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.