A promise-based wrapper for the mysql npm package that simplifies building SQL queries. Current version 1.6.0 provides a fluent query builder with methods like find, insert, update, and delete. Released as needed with moderate cadence. Differentiator: lightweight alternative to Sequelize/TypeORM with promise-based API and automatic connection management. Compatible with mysql package. Not actively maintained (last update 2019).
npm install mysql-nodejsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to MySQL, defines a model for 'users' table, and fetches rows where age > 18.
Use require('mysql-nodejs') in Node.js projects; cannot import in browser.Call connect() at application startup, before any model operations.
Install mysql@2.18.1 or later in your project.
Consider migrating to mysql2 or Sequelize for ongoing support.
Add const Mysql = require('mysql-nodejs');Call Mysql.connect(options) before Mysql.model().
Use require('mysql-nodejs') instead of import.