High-level MySQL/MariaDB ORM for Node.js using an Active Record pattern. Current version 2.1.1, with updates via npm. Provides full CRUD abstraction, automatic schema synchronization, a fluent query builder with dynamic join support, atomic transactions, and a CLI for reverse engineering. Part of the dbtabla ecosystem, it requires Node >=18 and works alongside tabla-model for schema definition. Key differentiator: query results are smart objects with .update() and .delete() methods, and .select() supports polymorphic filtering with special prefix/suffix operators.
npm install mysql-tabNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows required CommonJS import, connection with environment variable for password, and basic insert/select operations.
Always use object form: await usuarios.insert({ nombre: 'name', email: 'email' }).Upgrade Node.js to v18 or later.
Read the documentation on filter syntax carefully. Use plain strings for simple equality.
Install tabla-model and call db.pathModels() to register model definitions.
Use: row.update({ campo: 'nuevo_valor' });Run 'npm install mysql-tab' and use const MySQL = require('mysql-tab');Ensure you called new MySQL(config) and then await db.connect();
Start MySQL service and check host/port/user/password in config.
Define models with tabla-model and call db.pathModels(), or create the table manually with SQL.