leinelissen / embedded-postgres

🐘 A Node package that allows you to spawn a Postgresql cluster programatically.
MIT License
55 stars 11 forks source link

Expose the ability to download a specific version #1

Closed Newbie012 closed 2 years ago

Newbie012 commented 2 years ago

It would've been great if there was the option to choose a specific version of node

leinelissen commented 2 years ago

Hey @Newbie012. Thanks for checking this out. Do you mean selecting a Postgres version or specifically a Node version? This project should work with a broad range of Node versions, since it's not compiled against Node directly.

Newbie012 commented 2 years ago

Sorry for not being explicit. I mean a Postgres version

leinelissen commented 2 years ago

That should be possible. Is there a particular Postgres version you're interested in?

Newbie012 commented 2 years ago

I'm thinking about integrating this package with https://github.com/ts-safeql/safeql

Right now, whoever uses SafeQL has to install Postgres on their machine. If I could let them use an embedded Postgres version of their choice (mostly 11, 12, 13, 14), that would be an amazing improvement of the DX 😄

leinelissen commented 2 years ago

I'm going to look into this, let me get back to you.

leinelissen commented 2 years ago

Hey @Newbie012, I've just released a bunch of binaries for earlier Postgres versions. Let me know what you think.

Newbie012 commented 2 years ago

Wow this is amazing! Thanks for doing all of that work! ❤️ Once I'll get back from my vacation I'll start working on integrating safeql with this project.

leinelissen commented 2 years ago

No worries at all, I look forward to your work. In the meanwhile, I will close this issue, but do reach out if you run into things or also if you don't ;).