Realtime CRUD data management layer/plugin for SocketCluster using MySQL as the database. Current stable version is 0.6.5 (infrequent updates, last release likely 2018). Provides server-side attach and client-side socket events (create, read, update, delete) with optional conditionals, joins, expressions, ordering, pagination, and basic SQL injection protection. Differentiated by tight SocketCluster integration and realtime broadcasting; however, it is unmaintained and lacks modern features like async/await or ESM support.
npm install sc-crud-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Attach the plugin to a SocketCluster worker on the server, then emit CRUD events from the client.
Pin to exact version and test all interactions.
Migrate to an alternative like Slick or write custom middleware.
Use SocketCluster v5.x or check issues for compatibility patches.
Upgrade to 0.5.0+ and validate/sanitize all input server-side.
Create a .d.ts file or use @ts-ignore.
Run 'npm install sc-crud-mysql --save' in the project root.
Ensure using CommonJS require: var scCrudMysql = require('sc-crud-mysql'); and version 0.6.5.Check MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD environment variables or db options.
Ensure socketCluster.connect() is called and the socket has connected before emitting.