A TypeScript MySQL helper library (v1.3.2) that wraps the mysql driver with a singleton pattern for managing multiple database connections. Provides simplified CRUD operations (select, insert, update, delete) with support for complex queries (range, ordering). Released sparsely, last update in 2020. Limited differentiation: offers a basic abstraction over raw SQL but lacks high-level ORM features. Not recommended for new projects.
npm install ts-mysql-helperNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes MysqlHelper with a MySQL config and performs a simple select query.
Use MysqlHelper.getInstance(config) instead of new MysqlHelper(config).
Migrate to mysql2 or use a maintained ORM like TypeORM or Prisma.
Wrap async calls in try/catch or attach .catch() to promises.
Use MysqlHelper.getInstance(config) instead of new MysqlHelper(config).
Install the package and ensure tsconfig.json includes 'skipLibCheck' or add a custom declaration file.
No dependency data recorded yet.