Modelar MySQL Adapter

JSON →
library 3.0.7 ·javascript
verified Jun 5, 2026

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.