MySQL storage backend for spark-protocol, providing a promise-based client wrapper around mysql connection pools with master-slave replication support. Current version 0.7.0 (last updated ~2016). Release cadence is unknown/unmaintained. Key differentiators: built-in Redis integration for device online/offline status, singleton pattern, and explicit slave query support. Requires Node.js 0.10.x; modern versions may have compatibility issues.
npm install spark-mysql-protocolNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates initialization and a basic find query using the promise-based client.
Consider migrating to a maintained MySQL library like mysql2 or sequelize.
Use Node.js LTS version from that era or fork the package to update internal dependencies.
Ensure settings are consistent across calls. Use a single initialization point.
Use require() or set up a ESM shim.
Run 'npm install spark-mysql-protocol' and ensure the directory is correct.
Use 'const MysqlClient = require("...")' instead of import.Use a polyfill (e.g., bluebird) or upgrade to Node.js >=4.