Open vitaly-t opened 8 years ago
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.
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:
Have you seen pg-promise? It can do all that already, and much more ;)