-
Notifications
You must be signed in to change notification settings - Fork 18
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
[WIP] Surreal backend #8
Conversation
} | ||
|
||
async fn store(&mut self, key: Bytes, value: Bytes) -> Result<(), Self::Error> { | ||
let mut tx = self.surreal.transaction(true, false).await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(unrelated) that's not a very intuitive API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YEah, too flaggy...not rusty
} | ||
|
||
async fn load(&mut self, key: &[u8]) -> Result<Option<Bytes>, Self::Error> { | ||
let mut tx = self.surreal.transaction(true, false).await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not a write
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need rebase after latest changes on master, otherwise looks good
I'm stalling this for the moment, as it is incompatible in windows. Waku uses mingw-gcc target only while |
6ad3e72
to
13eaaeb
Compare
I'm closing this. Not really needed, and the bothersome it brings to the build system is not worth the price (at least for the time being). |
Add SurrealDB as storage backend.