{"library":"pg-parade","type":"library","category":null,"description":"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.","language":"javascript","status":"deprecated","version":"0.4.3","tags":["javascript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install pg-parade","imports":["const pgParade = require('pg-parade');","import pgParade from 'pg-parade';","const db = pgParade()({ write: '...', read: '...' }); db.read.query('SELECT ...');"]},{"cmd":"yarn add pg-parade","imports":[]},{"cmd":"pnpm add pg-parade","imports":[]}],"homepage":"https://github.com/floatdrop/pg-parade#readme","github":"https://github.com/floatdrop/pg-parade","docs":null,"changelog":null,"pypi":null,"npm":"pg-parade","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}