A promise-based MySQL connection handling and query execution library designed for internal company use. Version 1.5.2 provides a simple API for executing queries, managing transactions, bulk inserts/updates with key mapping, and automatic connection release. It requires a custom configuration file (default path: keys/keys.js) and wraps mysql2. Not actively maintained for the public; use mysql2 directly for production.
npm install algaeh-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to MySQL with custom config, runs a parameterized SELECT query, prints the query to console, and releases the connection.
Always pass explicit config object or valid file path to constructor.
Always use 'new algaehMysql()'.
Always call _mysql.releaseConnection() in both success and error handlers.
Use ESM imports (import ... from 'algaeh-mysql') or dynamic import() in a CJS project.
Consider migrating to mysql2 directly for continued support and security updates.
Pass a config object to the constructor: new algaehMysql({ path: { mysqlDb: {...} } })Ensure you create instance: const _mysql = new algaehMysql()
Call _mysql.releaseConnection() after each query block, especially in long-running processes.
Verify MySQL service status and connection config.