aboutsummaryrefslogtreecommitdiff
path: root/src/storage/in_memory.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-02 12:18:43 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-02 12:18:43 +0100
commit3b363b2a7803564231e001c215ab427c99c9435b (patch)
tree01322398a509142babfb60415315da4e0d4c6527 /src/storage/in_memory.rs
parent553ea25f1854706b60ce6f087545968533ef6140 (diff)
downloadaerogramme-3b363b2a7803564231e001c215ab427c99c9435b.tar.gz
aerogramme-3b363b2a7803564231e001c215ab427c99c9435b.zip
implement equality+cmp for builders based on url
Diffstat (limited to 'src/storage/in_memory.rs')
-rw-r--r--src/storage/in_memory.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/storage/in_memory.rs b/src/storage/in_memory.rs
index 80e7fdf..5cc8ef8 100644
--- a/src/storage/in_memory.rs
+++ b/src/storage/in_memory.rs
@@ -1,13 +1,13 @@
use futures::FutureExt;
use crate::storage::*;
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Hash)]
pub struct FullMem {}
pub struct MemStore {}
pub struct MemRef {}
pub struct MemValue {}
-impl IBuilder for FullMem {
+impl IBuilders for FullMem {
fn row_store(&self) -> Result<RowStore, StorageError> {
unimplemented!();
}
@@ -15,6 +15,10 @@ impl IBuilder for FullMem {
fn blob_store(&self) -> Result<BlobStore, StorageError> {
unimplemented!();
}
+
+ fn url(&self) -> &str {
+ return "mem://unimplemented;"
+ }
}
impl IRowStore for MemStore {