A minimal, promise-based ORM wrapper for node-mysql2 (v0.4.5, last updated 2020). Provides a simple async/await API for CRUD operations (insert, update, delete, find, count) and raw queries. Requires Node >=8.12 and mysql2 as peer dependency. Smaller than Sequelize or TypeORM, but lacks schema migrations, relationships, and TypeScript types. The package is in maintenance mode with limited community support.
npm install mysql-kiss-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates connecting, inserting one record, querying with limit/sort, and disconnecting.
Consider migrating to TypeORM, Sequelize, or Knex for active maintenance and full TypeScript support.
Use require() in Node.js or enable CJS interop in bundlers.
Manually call connect() before operations and handle disconnection errors.
Write a declaration file or switch to a typed ORM.
Run `npm install mysql-kiss-orm` and ensure correct package name in require.
Start MySQL service and check connection settings (host, port, user, password).
Use `new MysqlConnector(config)` and then call `await mysql.connect()`.
Wrap in try/catch and check mysql2 connection state.