Node-postgres vs pg-prom for Nodejs app

I am going to create a Nodejs application with Postgresql as an end. I will not use ORM, for example, Sequelize due to poor documentation and performance problems, or any other ORM - ORM is an anti-pattern .

I found node-postgres and pg-prom . Thus, can anyone clarify the scenarios that one of the tools is better than the other, or which of them is the description path, provided that node-postgres has been developing since 2010 and the pg-promise from 2015.

+6
source share
1 answer

pg-promise uses node-postgres internally. AFAIK pg-promise is a higher-level promise-based API set that can be useful. I would recommend using what is best for you. I am the author of node-postgres .

+10
source

Source: https://habr.com/ru/post/1011643/


All Articles