MySQL driver for the node-data-mapper library, version 1.1.22. This package provides MySQL-specific implementation for database interactions using node-data-mapper. It wraps the mysql2 driver and supports CRUD operations, streaming, and parameterized queries. Note that this package appears to be in maintenance mode with no recent updates and very limited documentation. It is intended for use with the node-data-mapper framework and is not standalone. Last updated around 2018, with an engine requirement of Node >=6.9.1.
npm install node-data-mapper-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This example shows how to instantiate the DataMapper with a MySQL driver and perform a simple SELECT query.
Consider using a more modern ORM like Sequelize, TypeORM, or Knex.js.
Update node-data-mapper-mysql or use a compatible Node version.
Create a .d.ts file or use @ts-ignore.
Update mysql2 in your package.json or run npm audit fix.
Refer to node-data-mapper documentation for connection settings.
Run 'npm install node-data-mapper-mysql'.
Ensure you use const { MySQLDriver } = require('node-data-mapper-mysql');Check DB_HOST, DB_USER, DB_PASS, DB_NAME environment variables or config object.