pg-parade (v0.4.3, last updated in 2017) wraps pg-promise to provide read/write replica support for PostgreSQL connections. It allows explicit routing of SELECT queries to read replicas and INSERT/UPDATE/DELETE to write replicas, with automatic fallback of reads to the write server during transactions. Key differentiators include a simple API with `.read` and `.write` scope objects and support for replica selection via a function returning a promise. However, the package is unmaintained and not compatible with modern pg-promise or async/await patterns.
npm install pg-paradeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic read/write replica setup and usage with pg-parade, including a transaction where reads are redirected to the write server.
Migrate to pg-promise with manual replica routing or use a maintained alternative.
Always use .read or .write scope before query method.
Design application to handle this behavior; avoid assuming read isolation in transactions.
Run 'npm install pg-parade'
Use 'import pgParade from 'pg-parade'' or 'const pgParade = require('pg-parade')()'Use db.read.query for SELECT, db.write.query for INSERT/UPDATE/DELETE.