A minimalist MySQL Model extension for Sand.js, providing a simple ORM-like wrapper around node-mysql2. Version 0.3.11 is the latest stable release. The package extends Sand.js models with table mappings, insert/update helpers, and query building. It requires node-mysql2 and Sand.js framework. Differentiator: lightweight, no heavy ORM features, tightly coupled with Sand.js ecosystem.
npm install sand-mysql-simpleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize sand-mysql-simple with Sand.js, use a model to fetch a user by ID.
Always define table: 'your_table_name' in the model definition.
Use sand.mysqlSimple.models.User instead of require('./models/User').Define getInsert() as a method that returns {query, values} object.Ensure you call sand.use(mysqlSimple, {modelsPath: '...'}) before sand.start().Run: npm install sand-mysql
Use require('sand-mysql-simple').Model.extend({...});