A database adapter for the Modelar ORM/ODM framework to connect to MySQL or MariaDB databases. Current stable version is 3.0.7. It is bundled internally by Modelar (since version 3), so users typically do not install it separately. Releases are infrequent and tied to Modelar's release cycle. Key differentiator: it seamlessly integrates with Modelar's DB.init() configuration, automatically switching engine between InnoDB (MySQL) and Aria (MariaDB) and supporting transactions out of the box. It provides a thin layer over the mysql2 driver, handling connection pooling and query execution.
npm install modelar-mysql-adapterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the adapter indirectly by initializing Modelar's DB with MySQL type, then querying the database.
Remove modelar-mysql-adapter from your package.json and rely on the dependency shipped with modelar.
If you had a direct dependency on 'modelar-mysql', update to 'modelar-mysql-adapter' or better remove the direct dependency and use modelar only.
If you need foreign keys, use type: 'mysql' even if connecting to MariaDB? (Check Modelar docs.)
Install modelar: 'npm install modelar' which includes the adapter.
Ensure modelar version >= 3.0.0 with 'npm list modelar'.