Registry / database / mysql-engine

mysql-engine

JSON →
library0.0.7jsnpmunverified

mysql-engine is a lightweight MySQL RPC proxy library for Node.js that wraps MySQL connections into a remote procedure call interface. Version 0.0.7 is an early alpha release with no stable release cadence. It differentiates by allowing remote execution of MySQL commands via a proxied connection, unlike direct MySQL clients. Currently pre-1.0 and likely unstable.

npm install mysql-engine
INSTALL
IMPORT
SIG · MYSQL-ENGINE
M
mysql-engine
databasejavascriptv0.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import mysqlEngine from 'mysql-engine'
const mysqlEngine = require('mysql-engine')
Package may export a default function or object; pre-1.0 API is subject to change.
createProxy
import { createProxy } from 'mysql-engine'
const createProxy = require('mysql-engine').createProxy
Named exports may not be present in all versions; check package exports.
ProxyClient
import { ProxyClient } from 'mysql-engine'
import ProxyClient from 'mysql-engine'
Class may be named export, not default.

This shows how to create an RPC proxy to a MySQL server and execute a simple query.

import mysqlEngine from 'mysql-engine'; const proxy = mysqlEngine.createProxy({ host: 'localhost', user: 'root', password: process.env.MYSQL_PASSWORD ?? '' }); proxy.query('SELECT 1', (err, results) => { if (err) console.error(err); else console.log(results); });
Debug
Known issues
breakingAPI may change without notice before version 1.0.
fix
Pin exact version and test on upgrade.
affects: <1.0.0
gotchaThis is not a MySQL driver; it proxies RPC calls over a network.
fix
Use a standard MySQL client like mysql2 if you need direct MySQL protocol access.
affects: >=0.0.0
deprecatedCallbacks are deprecated; prefer promises.
fix
Use async/await with promise-based API if available.
affects: >=0.0.5
Errors
Common errors & fixes
Cannot find module 'mysql-engine'
Package not installed or not in node_modules.
fix
Run 'npm install mysql-engine' or add to package.json.
TypeError: mysqlEngine.createProxy is not a function
Incorrect import style or package version mismatch.
fix
Use correct import: import mysqlEngine from 'mysql-engine' and check package exports.
Error: connect ECONNREFUSED
MySQL server not running or wrong host/port.
fix
Ensure MySQL server is running and host/port are correct.
Upgrade
Version history
0.0.7latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
mysql-engine — npm install mysql-engine · libregistry