A promise-based MySQL interface built on top of the mysql package. Version 4.1.4 provides a simple API for common database operations including insert, update, delete, replace, save, select, pagination, transactions, connection pooling, and stored procedures. It supports multiple databases with easy switching, encapsulated transactions, and both sequential and concurrent execution modes for batch operations. The library offers TypeScript type definitions and is suitable for Node.js applications requiring a lightweight, easy-to-use MySQL client without complex ORM features. However, it has limited community adoption and documentation primarily in Chinese, which may pose a barrier for English-speaking developers.
npm install mysql-iNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a MySQL connection, executing raw SQL, inserting and deleting a row using the Save helper, with proper error handling and connection cleanup.
Use import statements or enable esModuleInterop in tsconfig.
Always include the primary key field in the data object for update operations.
Run 'npm install mysql' in your project.
Use 'import { ConnectionHelper } from 'mysql-i'' instead of 'import ConnectionHelper from 'mysql-i''.