node-mysql-deadlock-retries

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

Provides retry capabilities for node-mysql queries that fail with MySQL deadlock errors (errno 1205-1213, ER_LOCK_DEADLOCK, ERR_LOCK_WAIT_TIMEOUT). It proxies the connection's query method, retrying failed queries up to a configurable number of times with random sleep intervals between retries. Version 2.0.5, stable, low release cadence (last update 2017). Differentiator: simple, focused deadlock handling for the node-mysql driver, vs. generic retry libraries.