@tralse/mysql-middleware
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

@tralse/mysql-middleware

NPM version NPM downloads

This package provides a middleware and helpful methods for modularized and remodified modules on MySQL database, providing a robust development.

Key Features

  • Deadlock management with exponential and controlled backoff
  • Modular functions for database operations

Installation

npm install @tralse/mysql-middleware express

Usage

Errors

  • DatabaseError: Custom error class for external database-related errors. However, MySQL errors is not caught by this error, for proper tracing for the outer logic.
    • Default Code: DB_ERR
  • TransactionError: Custom error class for transaction-related errors. However, MySQL errors is not caught by this error, for proper tracing for the outer logic.
    • Default Code: TRANSACTION_ERR
    • Code: (if connection is not initialized): CONN_NOT_INIT

Changelogs

Stay updated of the changes of this package. View Changelog.

License

This is licensed under MIT License. View License

Issues

Bugs found? Kindly inquire to the issues section.

Contributor/s

Readme

Keywords

none

Package Sidebar

Install

npm i @tralse/mysql-middleware

Weekly Downloads

0

Version

4.0.0

License

MIT

Unpacked Size

63.9 kB

Total Files

12

Last publish

Collaborators

  • kentgioz