25

I'm going to build a Nodejs application with Postgresql as back end. I'm not going to use ORMs like Sequelize due to poor documentation and performance problems or any other ORM - ORM is an anti-pattern.

I found node-postgres and pg-promise are candidates in this regard. So, can anyone clarify the scenarios which one of the tools is better than the other or which one is way to go with description, provided that node-postgres has been developing since 2010 and pg-promise since 2015.

1 Answer 1

48

pg-promise uses node-postgres internally. AFAIK pg-promise is a promise-based set of higher-level APIs on top that you might find useful. I'd recommend using whichever you feel more comfortable with. I'm the author of node-postgres.

Sign up to request clarification or add additional context in comments.

8 Comments

@brainc I know you're the author of node-postgres. I heard that a high-level API is something that is easier to use, is that correct?
@AbdihafithKhalif that is generally the notion of higher-level, LOL.
@AbdihafithKhalif Ahem, I'm the author of pg-promise, not that it matters here, but you weren't specific either :)
"So, can anyone clarify the scenarios which one of the tools is better than the other" ? Just quoting the line from the OP that has not been answered
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.