feat: Better DB transaction API - #3005
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new LedgerTx struct that provides a transaction-like API for batching multiple ledger database operations together. The implementation uses ManuallyDrop to ensure that schema changes are not silently dropped without being explicitly committed or rejected.
- Adds
LedgerTxstruct withManuallyDrop<SchemaBatch>wrapper - Provides methods to add state diffs and L2 blocks to a transaction
- Implements explicit commit and reject methods for transaction control
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is Additional details and impacted files
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 4 out of 5 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 18 out of 20 changed files in this pull request and generated 9 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 21 out of 23 changed files in this pull request and generated 9 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Linked Issues