Skip to content

feat(storage): Export DB interface - #4690

Merged
alesforz merged 8 commits into
alesforz/code-uses-storage-pkgfrom
alesforz/export-db-iface
Dec 20, 2024
Merged

alesforz merged 8 commits into
alesforz/code-uses-storage-pkgfrom
alesforz/export-db-iface

Conversation

@alesforz

Copy link
Copy Markdown
Collaborator

Context

In reviewing #4601, we discussed about exporting the DB, Batch, and Iterator interfaces instead of leaving them in an internal package. After some thinking we decided to export them in a new non-internal package cmtdb. However, our implementation of those interfaces remain unexported.

Changes

This PR adds pkg cmtdb exporting the DB, Batch, and Iterator interfaces. Additionally, it changes the code to use this new package rather than the now obsolete internal/storage (which this PR removes).


PR checklist

  • Tests written/updated
  • [] Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

@alesforz alesforz self-assigned this Dec 18, 2024
@alesforz
alesforz requested a review from a team as a code owner December 18, 2024 14:31
@alesforz
alesforz requested a review from a team December 18, 2024 14:31

@melekes melekes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread abci/example/kvstore/kvstore.go Resolved
@alesforz
alesforz requested a review from melekes December 19, 2024 15:37
@alesforz
alesforz merged commit b8df798 into alesforz/code-uses-storage-pkg Dec 20, 2024
@alesforz
alesforz deleted the alesforz/export-db-iface branch December 20, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants