MySQL adapter for the Fruit ORM (v0.0.4, experimental). Provides a MySQL backend for the Fruit Object-Relational Mapper, allowing MySQL connections with standard Fruit API. Key differentiators: lightweight, promise-based API with chainable .success()/.error() handlers; supports multiple insert statements. Alternative to Sequelize/TypeORM for simpler use cases. Current release is 0.0.4, last updated in 2015. Project is in experimental stage with low activity.
npm install fruit-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic setup: install fruit and fruit-mysql, connect to MySQL, define a model, and save an instance.
Migrate to an actively maintained ORM such as Sequelize or TypeORM.
Pin exact version of fruit and fruit-mysql in package.json.
Always require 'fruit' first, then 'fruit-mysql', then call fruit.connect('mysql', options).Set multipleStatements: true in options and call fruit.insert(data, true).
Run 'npm install fruit' to install the core ORM.
Ensure require('fruit-mysql') is called after require('fruit') and before fruit.connect.Implement reconnection logic or use a connection pool.