@tralse/mysql-middleware
v4.0.0
Published
This package provides a middleware for modularized and remodified modules on MYSQL database, providing a robust development.
Downloads
44
Readme
@tralse/mysql-middleware
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
- Default Code:
- 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
- Default Code:
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.