mysql-oh-wait

JSON →
library 0.19.10 ·javascript
verified Jun 5, 2026

mysql-oh-wait is an async/await wrapper around mysql2 that provides a single-connection-per-process guarantee, eliminating connection management boilerplate. Current stable version is 0.19.10, released as needed. Unlike raw mysql2 or mysql, it returns query results directly without callbacks or promises, and ensures only one connection exists per process to prevent resource leaks. Requires mysql2 >= 3.0.0 and saylo >= 0.5.0 as peer dependencies. Fully written in TypeScript with bundled type definitions.