co-mysql

JSON →
library 1.0.0 ·javascript maintenance
verified Jun 5, 2026

A MySQL wrapper for co or Koa that adapts the mysql library to work with generators and promises. Version 1.0.0 is the final release; the package is in maintenance mode with no active development. It wraps a mysql connection pool (or connection) to return promise-based query results, enabling use with co or async/await. Compared to directly using thunkify or promisify on mysql, co-mysql provides a simpler wrapper, but the author now recommends using thunkify or promisify directly. It has a small user base and is only relevant for legacy projects using co or Koa v1 generators.