Skip to content

feat: add unified keystore connection [WPB-23773]#1933

Draft
coriolinus wants to merge 6 commits intomainfrom
prgn/feat/23773-unified-keystore-connection
Draft

feat: add unified keystore connection [WPB-23773]#1933
coriolinus wants to merge 6 commits intomainfrom
prgn/feat/23773-unified-keystore-connection

Conversation

@coriolinus
Copy link
Contributor

What's new in this PR

Create a rusqlite connection for the keystore that's usable both in native and wasm compilation environments.


PR Submission Checklist for internal contributors
  • The PR Title
    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

This isn't really part of the connection anyway.
This type wraps a bare rusqlite `Connection` when in memory or running
locally, and one with a IDB VFS when on `target_os = "unknown"`.
It also refactors the initialization a bit to minimize code duplication.

The `ConnectionWrapper` and `RusqliteConnection` items aren't really final;
they work for the moment, but I don't love them. Need to put a bit more
thought into how precisely I want this all to work.
…ction

This may not be the optimal placement for these; I want to revisit the
project layout again after we have deleted the old connection code.
For now, they're all in place at least.
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.

1 participant