co-postgres

JSON →
library 2.0.12 ·javascript deprecated
verified Jun 5, 2026

co-postgres is a thin wrapper around the `pg` PostgreSQL client that enables use with generators via the `co` library. Version 2.0.12 (last released in 2016) is stable but effectively unmaintained. It provides a simple API for querying Postgres using yield, making it suitable for legacy koa/co-based applications. Unlike modern async/await drivers, this package requires the co runtime and does not support promises natively. It has no dependencies beyond co and pg.