PostgreSQL implementation of the db-conn JDBC-like interface for Node.js. Version 1.6.2 provides connection and pooling for PostgreSQL databases with TypeScript type definitions. This package implements the generic db-conn abstraction, making it easy to switch between database types. Release cadence is irregular; key differentiator is adherence to the db-conn interface specification. Active development status.
npm install db-conn-pgsqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a PostgreSQL connection, execute a parameterized query, and close the connection properly.
Update code to access 'result.rows' instead of the result directly.
Replace conn.query(...) with conn.execute(...).
Use 'postgres://user:pass@host:port/db' format.
Call pool.end() before process exit or use SIGTERM handler.
Install the peer dependency: npm install db-conn
Verify username and password, and ensure pg_hba.conf allows password authentication.
Upgrade to version 1.5.0 or later: npm install db-conn-pgsql@latest