Utilities for the node-mysql driver (felixge/node-mysql), providing specialized result types (queryRow, queryValue, queryCol, queryHash, queryKeyValue), introspection methods (primary keys, foreign keys, tables, etc.), and SQL autogenerating methods (select, insert, update, upsert, delete, count). Current stable version v1.1.4, maintained on GitHub by Metarhia/Impress team. Key differentiator: extends mysql connection object via mix-ins rather than wrapper classes. Last updated 2018, in maintenance mode.
npm install mysql-utilitiesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install, import, attach utilities via upgrade() and introspection(), then use queryRow() and fields().
Use mysql2 for active development; however mysql-utilities is not compatible. Consider using a different ORM or raw mysql2.
Always call mysqlUtilities.upgrade(connection) before using queryRow, queryValue, etc.
Use a // @ts-ignore or manually declare the augmented methods on the Connection interface.
Update from var mu = require('mysql-utilities'); mu.xxx(connection) to require('mysql-utilities').upgrade(connection);Add mysqlUtilities.upgrade(connection); after creating the connection.
Run: npm install mysql
Upgrade to >=1.0.0 and use mysqlUtilities.introspection(connection);