This package provides a middleware and helpful methods for modularized and remodified modules on MySQL database, providing a robust development.
- Deadlock management with exponential and controlled backoff
- Modular functions for database operations
npm install @tralse/mysql-middleware express
-
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:
Stay updated of the changes of this package. View Changelog.
This is licensed under MIT License. View License
Bugs found? Kindly inquire to the issues section.