Tuesday, May 27, 2025

postgres db + js tool: pg-promise

not an ORM tool, but SQL helper tool; could be useful for some use-cases

vitaly-t/pg-promise: PostgreSQL interface for Node.js @GitHub

"At its inception in 2015, this library was only adding promises to the base driver, hence the name pg-promise. And while the original name was kept, the library's functionality was vastly extended, with promises now being only its tiny part."
  • Automatic connections
  • Automatic transactions
  • Powerful query-formatting engine + query generation
  • Declarative approach to handling query results
  • Global events reporting for central handling
  • Extensive support for external SQL files
  • Support for all promise libraries



No comments: