A lightweight, Backbone-inspired ORM for Node.js that wraps felixge/node-mysql to provide model-based CRUD operations on MySQL databases. Version 0.0.3 is the latest and likely final release, with no updates since its initial publication. It offers a familiar extend/save/find/remove pattern for developers coming from Backbone.js, but requires manual creation of connection instances and lacks modern features like promise support, migrations, or schema validation. Alternatives like Sequelize, Bookshelf, or Knex are more actively maintained and feature-rich.
npm install mysql-modelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a database connection, defines a Movie model, and saves a new record.
Migrate to an actively maintained ORM like Sequelize or Bookshelf.
Run 'npm install backbone' explicitly.
Call movie.off() or movie.remove() when done.
Manually set attributes before calling save, or use 'query' for custom SQL.
npm install backbone
const MyAppModel = mysqlModel.createConnection({...}); // no newVerify host, user, password, and database values.