-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enhance transaction handling and error logging in Save method
- Implemented a unique transaction ID for better traceability during database operations. - Added retry logic for handling "database is locked" errors, with exponential backoff delays. - Improved error logging to provide detailed information on transaction attempts and failures. - Ensured that all database operations are wrapped in a transaction with proper rollback on panic or error.
- Loading branch information
Showing
1 changed file
with
67 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters