A lightweight MySQL toolkit built on top of the `mysql` npm package that provides promisified query methods and common CRUD shorthand operations (find, findOne, insert, update, etc.). Current stable version is 0.3.0 with a low release cadence (last release Sep 2019). Key differentiators: minimal abstraction over raw `mysql` queries, synchronous-looking async API, and built-in helper methods for common operations. Does not use connection pooling natively (delegates to `mysql`). Suitable for simple scripts or small projects needing a thin wrapper.
npm install mysql-kitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates connecting to MySQL, executing a raw query, and using a shorthand method to find a row by ID.
Use `await connect(config)` instead of `connect(config)`.
Call `connect` only once at startup, or add explicit connection management if needed.
Upgrade to >=0.3.0 or cast return types manually.
Always wrap calls in try/catch or use .catch().
Ensure `await connect(config)` is executed before any query or helper method.
Install correct peer dependency: `npm install mysql`.
Run `npm install mysql mysql-kit` and ensure tsconfig has `"moduleResolution": "node"`.