MySQL storage plugin and persistence layer for Modella ORM. Current version 0.13.5 (pre-1.0), last published in 2014, no recent releases. Provides MySQL persistence for Modella models with CRUD operations, pagination support, and relationship definitions (hasMany, belongsTo, hasAndBelongsToMany). Compared to other Modella backends, it uses node-mysql and offers event hooks for save/update lifecycle. However, the package is unmaintained, has no TypeScript support, and relies on outdated dependencies. Suitable only for legacy projects still using Modella.
npm install modella-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up a Modella model with MySQL persistence, defines attributes, and executes a query with pagination support.
Consider migrating to an active ORM like Sequelize, TypeORM, or Prisma.
Use Node 8.x or lower, or migrate to a maintained alternative.
No fix available since library is abandoned. Avoid relying on pagination behavior.
Run `npm install modella-mysql` in your project directory.
Ensure modella is installed: `npm install modella`. Use `var modella = require('modella');`.Verify database user, password, and host. Use environment variables for sensitive data.