Struct taple_core::MemoryCollection
source · pub struct MemoryCollection { /* private fields */ }
Expand description
Collection for in-memory database implementation. It must be created through MemoryManager.
Trait Implementations§
source§impl DatabaseCollection for MemoryCollection
impl DatabaseCollection for MemoryCollection
source§fn get(&self, key: &str) -> Result<Vec<u8>, Error>
fn get(&self, key: &str) -> Result<Vec<u8>, Error>
Retrieves the value associated with the given key.
source§fn put(&self, key: &str, data: Vec<u8>) -> Result<(), Error>
fn put(&self, key: &str, data: Vec<u8>) -> Result<(), Error>
Associates the given value with the given key.
source§impl DatabaseManager<MemoryCollection> for MemoryManager
impl DatabaseManager<MemoryCollection> for MemoryManager
source§fn default() -> Self
fn default() -> Self
Default constructor for the database manager. Is is mainly used for the battery test
source§fn create_collection(&self, _identifier: &str) -> MemoryCollection
fn create_collection(&self, _identifier: &str) -> MemoryCollection
Creates a database collection Read more
Auto Trait Implementations§
impl RefUnwindSafe for MemoryCollection
impl Send for MemoryCollection
impl Sync for MemoryCollection
impl Unpin for MemoryCollection
impl UnwindSafe for MemoryCollection
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more