A minimalistic MySQL client for Node.js that provides a callback-based API for connecting, querying, preparing statements, and executing prepared statements. This package is at version 1.1.1 and appears to be in early development with sparse documentation and no clear release cadence. It differentiates itself from mainstream clients like mysql2 or mysql by offering a very low-level, custom protocol implementation with control over max packet size and separate callback handlers for success and error on every operation. Notable: debug logging of raw sent/received data, idle connection timeout, and prepared statement support with long data sending. However, it lacks modern Promise/async-await support and TypeScript types, and the API pattern is unusual (callbacks on connection options).
npm install mbr-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a MySQL client, connects to a database, runs a simple query, and closes the connection using callbacks.
Wrap operations in Promises manually or use a library like 'util.promisify'.
Use `pass` instead of `password` in the connection options object.
Always provide an onError callback to every operation.
Consider using a mature client like mysql2 for production use.
const { MySQL } = require('mbr-mysql'); (CommonJS) or import { MySQL } from 'mbr-mysql'; (ESM)Wrap the query call inside the onSuccess callback of mysql.connect().
Configure MySQL user to use mysql_native_password, or use a more modern client.
No dependency data recorded yet.