@tralse/postgres-middleware
v0.0.3
Published
This package provides a middleware for modularized and remodified modules on PostgreSQL database, providing a robust development.
Downloads
3
Readme
@tralse/postgres-middleware
This package provides a middleware and helpful methods for modularized and remodified modules on PostgreSQL database, providing a robust development.
Key Features
- Deadlock management with exponential and controlled backoff
- Modular functions for database operations
Installation
npm install @tralse/postgres-middleware express
Usage
Errors
- DatabaseError: Custom error class for external database-related errors. However, PostgreSQL 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, PostgreSQL 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.