Overview of pg-promise features
masterpg-promise is a PostgreSQL interface for Node.js built on top of node-postgres. It provides several high-level features to simplify database interactions:
- Automatic connections: Manages connection acquisition and release.
- Automatic transactions: Simplifies transaction management.
- Query-formatting engine: A powerful engine for high-performance value escaping and query generation.
- Declarative result handling: Uses result-specific methods to handle data predictably.
- Global events reporting: Allows for central handling of database events.
- SQL file support: Extensive support for using external SQL files.