simple-postgres icon indicating copy to clipboard operation
simple-postgres copied to clipboard

what about pg-promise?

Open vitaly-t opened this issue 9 years ago • 2 comments

Have you seen pg-promise? It can do all that already, and much more ;)

vitaly-t avatar Jun 08 '16 22:06 vitaly-t

pg-promise is very comprehensive, but I wanted something simpler. simple-postgres doesn't require any configuration, supports common use cases, and is ~200 lines of code.

pg-postgres has all kinds of amazing features: ORM, Transaction modes, nested transactions, custom type handling, SQL minification, a templating system, etc.

simple-postgres has a function that runs a query, a function that runs a transaction, and a function that escapes a value.

For most cases, that's enough.

summer4096 avatar Jun 08 '16 23:06 summer4096

pg-promise does not have ORM features, it's just a query executioner :smile_cat:

simple-postgres has a function that runs a query, a function that runs a transaction, and a function that escapes a value.

But pg-promise does all that as well, and in a very simple way :confused: :

See Database type :wink:

vitaly-t avatar Jun 08 '16 23:06 vitaly-t