BlueFishMySQL (blue-fish-mysqll) is a TypeScript MySQL database component library providing basic data models with automatic CRUD, a caching model leveraging blue-fish-redis, and lightweight distributed UUID generation. Current stable version is 1.8.2. It wraps mysql and knex, offering a simple yet functional API with less than 1000 lines of code. Key differentiators include automatic cache management, TypeScript-first design, and built-in distributed ID generation. The package appears to be rarely updated and has limited community adoption.
npm install blue-fish-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows initialization of MysqlBin, creation of a UUID generator, defining a model extending MysqlNative, and basic insert/getById operations.
Use exact package name 'blue-fish-mysqll' in package.json and imports.
Implement custom transaction wrapper as shown in README Bug section to ensure callbacks execute correctly.
Replace 'mysql' with 'mysql2' and update connection config accordingly, though this may require vendor modifications.
Handle or catch CoaError.throw() if using checkById, or implement your own query method.
Install correct package: npm install blue-fish-mysqll
Install coa-error: npm install coa-error
Use named import: import { MysqlUuid } from 'blue-fish-mysqll'Switch to 'mysql2' package or alter MySQL user to use mysql_native_password.