MySQL adapter for JugglingDB, an ORM for Node.js. This package (version 0.2.3) provides MySQL database support for JugglingDB 0.2.x. It supports data type mappings with custom column types (e.g., tinyint, float, decimal, varchar, text, enum, datetime, timestamp), OR/IN operators in queries, and optional connection parameters like password and collation (defaults to utf8mb4_general_ci). The project is archived and no longer maintained, but may still be used with legacy JugglingDB applications. It is not compatible with LoopBack or newer ORMs.
npm install jugglingdb-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to MySQL using JugglingDB, defines a model with custom data types and enum, performs automigrate, create, and query with OR operator.
Migrate to LoopBack or use a modern ORM like Sequelize or TypeORM.
If using jugglingdb, ensure version is 0.2.x. For newer projects, use LoopBack or another ORM.
Use schema.EnumFactory() after creating the schema, not from the adapter package.
Use { or: [ { field: value }, ... ] } syntax and remember that properties inside each object are ANDed.Explicitly set collation if needed (e.g., collation: 'utf8_general_ci'). For older MySQL, use utf8.
Do not require('jugglingdb-mysql'); instead, require('jugglingdb') and use new Schema('mysql', ...).Ensure you have required jugglingdb and created a schema instance before calling schema.EnumFactory.
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; or update mysql package.