Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zcash_client_sqlite: Enable constructing WalletDb around references to rusqlite::Connection #1691

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

str4d
Copy link
Contributor

@str4d str4d commented Jan 30, 2025

This enables downstream wallets such as Zallet to implement connection pooling, or other strategies to enable multi-threaded WalletDb access.

str4d added 2 commits January 30, 2025 01:29
This commit on its own doesn't expand the public API, as such
`WalletDb`s cannot be constructed.
This requires `C: Borrow<rusqlite::Connection>` to ensure that at least
`WalletRead` is accessible. It enables construction of the following
additional types:
- `WalletDb<&rusqlite::Connection, _>`
- `WalletDb<&mut rusqlite::Connection, _>`
@str4d str4d requested a review from nuttycom January 30, 2025 01:36
Copy link
Contributor

@nuttycom nuttycom left a comment

Choose a reason for hiding this comment

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

utACK bef5fee

@str4d str4d merged commit b106a89 into main Jan 30, 2025
31 checks passed
@str4d str4d deleted the zcs-mutable-conn branch January 30, 2025 02:04
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 52.00%. Comparing base (3cc8a13) to head (bef5fee).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
zcash_client_sqlite/src/lib.rs 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1691      +/-   ##
==========================================
- Coverage   52.00%   52.00%   -0.01%     
==========================================
  Files         181      181              
  Lines       21192    21193       +1     
==========================================
  Hits        11021    11021              
- Misses      10171    10172       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants