I was struggling to get pg-pool working on Heroku, and after a couple of hours I stumbled upon this PR: https://github.com/brianc/node-pg-pool/pull/5, and realized that the Pool constructor could not accept a DatabaseURL string.
I saw that you were considering adding an example of parsing a DatabaseURL to the readme. I thought I would go ahead and put in a PR in case anyone else runs into the same problem.
Let me know if I should change anything or if you do not think it is worth an example in the readme. Thanks for your contributions, I like these pg modules a lot!
Also, here's a screenshot in case you want a visual preview:
I was struggling to get pg-pool working on Heroku, and after a couple of hours I stumbled upon this PR: https://github.com/brianc/node-pg-pool/pull/5, and realized that the Pool constructor could not accept a DatabaseURL string.
I saw that you were considering adding an example of parsing a DatabaseURL to the readme. I thought I would go ahead and put in a PR in case anyone else runs into the same problem.
Let me know if I should change anything or if you do not think it is worth an example in the readme. Thanks for your contributions, I like these pg modules a lot!
Also, here's a screenshot in case you want a visual preview: