feat(core): introduce opaque storage adapters#110
Closed
Conversation
Keep app-facing storage opaque while giving adapters a supported internal access hook. Route watcher bootstrap through services so Manager no longer needs to retain raw repositories.
Expose an opaque SqliteStorage to app code while preserving adapter test coverage and transaction helpers. This keeps sqlite-bun aligned with the new core storage boundary without exposing repository properties.
Update guides and package READMEs to explain the opaque storage adapter flow. This keeps examples aligned with the new Manager initialization contract and sqlite-bun proof of concept.
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CocoStoragecontract in corecoco-cashu-sqlite-bunand related tests/docs to the new storage-based initialization flowWhy
The framework is intended to be used through
Managerand the public APIs it exposes. Previously, consumers had easy access to individual repositories because storage adapters surfaced the full repository bag directly. This change narrows the public boundary while still preserving a supported path for adapter authors.What Changed
packages/coreCocoStorageminimal and app-facingManagersqlite-bunas the proof-of-concept adapterrepotostorageFollow-ups
sqlite3,indexeddb, andexpo-sqliteto the same internal storage adapter pattern