MySQL database adapter for ShareDB that serves as both a snapshot store and op log. Version 1.0.5 is current (last updated 2018). It wraps the mysql npm package and supports standard MySQL configuration options, custom table names for ops and snapshots, and debug mode. Compared to other ShareDB adapters (e.g., MongoDB), this provides direct MySQL integration for teams already using MySQL. Release cadence is low; maintenance appears minimal.
npm install sharedb-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a MySQL-backed ShareDB backend, connects a document, and fetches it from the database.
Consider alternative adapters like sharedb-mongo or sharedb-postgres for ongoing support.
Wrap backend calls in try-catch or handle error callbacks to manage MySQL failures.
Run 'npm install mysql' to install the MySQL client.
npm install mysql
Use const mySQLDB = require('sharedb-mysql')(mysqlOptions);Verify MySQL connection settings in mysqlOptions.db.