Entity framework for MySQL based on mysqljs/mysql. Stable version 1.5.16 (as of 2025) with moderate release cadence. Provides a simple ORM-like layer for CRUD operations, supporting model definitions, query building, and connection pooling. Differentiates from mysqljs/mysql by adding abstraction for models and relationships, but requires mysqljs/mysql as a dependency. No TypeScript definitions.
npm install app_mysqli_jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a MySQL connection using environment variables, defines a model, and inserts a record.
Always use parameterized queries or the model methods to avoid SQL injection.
Use `mysqli.createPool` for better connection management.
Use explicit { type: String } for all fields.npm install app_mysqli_js
Call `db.model()` on the result of `createConnection()`, not `createPool()`.