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
Server: Allow choice of storage backend with feature #60
Conversation
5d46554
to
60b7049
Compare
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.
Thank you so much for this pull request!
There is just a problem with a use
directive in a test.
server/src/main.rs
Outdated
@@ -441,7 +442,7 @@ mod tests { | |||
use crate::handle_request; | |||
use async_std::task::block_on; | |||
use http_types::{Method, Request, StatusCode, Url}; | |||
use oxigraph::RocksDbStore; | |||
use oxigraph::Store; |
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.
Sadly, it does not work because Rust is looking for Store
in the oxigraph
crate directly.
I believe this works:
use oxigraph::Store; | |
use super::Store; |
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.
Note to self: always run the tests yourself. ;)
60b7049
to
18d2ba9
Compare
Implement rocksdb and sled features for the oxigraph_server crate.
18d2ba9
to
7e09b10
Compare
Thank you! |
As a side note: it would have been cleaner to make the code generic over |
I should maybe introduce a |
No description provided.