diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-17 10:46:13 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-17 10:46:13 +0100 |
commit | 7eb690e49dd995663e8ea35b1a1f5b14584b4509 (patch) | |
tree | ca6f5a3dd2be863c2d4060f791065998b446215c /src/storage/in_memory.rs | |
parent | 6da8b815b694a37d39a2be04c8e1585aac17954a (diff) | |
download | aerogramme-7eb690e49dd995663e8ea35b1a1f5b14584b4509.tar.gz aerogramme-7eb690e49dd995663e8ea35b1a1f5b14584b4509.zip |
introduce an "orphan" enum
Diffstat (limited to 'src/storage/in_memory.rs')
-rw-r--r-- | src/storage/in_memory.rs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/storage/in_memory.rs b/src/storage/in_memory.rs index a4436e6..0bdf9b1 100644 --- a/src/storage/in_memory.rs +++ b/src/storage/in_memory.rs @@ -7,6 +7,9 @@ pub struct MemStore {} pub struct MemRef {} pub struct MemValue {} +#[derive(Clone, Debug)] +pub struct MemOrphanRowRef {} + impl IBuilders for FullMem { fn row_store(&self) -> Result<RowStore, StorageError> { unimplemented!(); @@ -33,16 +36,24 @@ impl IRowStore for MemStore { fn rm(&self, selector: Selector) -> AsyncResult<()> { unimplemented!(); } + + fn from_orphan(&self, orphan: OrphanRowRef) -> RowRef { + unimplemented!(); + } } impl IRowRef for MemRef { + fn to_orphan(&self) -> OrphanRowRef { + unimplemented!() + } + fn key(&self) -> (&str, &str) { unimplemented!(); } - fn clone_boxed(&self) -> RowRef { + /*fn clone_boxed(&self) -> RowRef { unimplemented!(); - } + }*/ fn set_value(&self, content: Vec<u8>) -> RowValue { unimplemented!(); |