A systemic component for PostgreSQL, wrapping the pg library to integrate with the systemic dependency injection framework. Current stable version is 3.0.0. It provides lifecycle management (start/stop), configuration via systemic config, and supports onConnect queries. Built on top of the pg npm package, it is designed for Node.js applications using systemic. Alternative direct usage of pg without systemic would require manual connection pooling and lifecycle handling.
npm install systemic-pgNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a systemic system with PostgreSQL component, configures connection, starts, queries, and stops.
Upgrade to Node.js >=10 and ensure your pg usage is compatible with pg v8.
Update references from components.pg to components.postgres if using v2+.
Consider using pg's 'connect' event on the pool for custom setup.
Install both: npm install systemic pg
Ensure you pass postgres() (invoked) to .add(), not postgres itself.
npm install systemic-pg
Use `import postgres from 'systemic-pg'` (default import).