pub trait LocalWritableKeyValueStore: WithError {
const MAX_VALUE_SIZE: usize;
// Required methods
async fn write_batch(&self, batch: Batch) -> Result<(), Self::Error>;
async fn clear_journal(&self) -> Result<(), Self::Error>;
}
Expand description
Low-level, asynchronous write key-value operations. Useful for storage APIs not based on views.
Required Associated Constants§
sourceconst MAX_VALUE_SIZE: usize
const MAX_VALUE_SIZE: usize
The maximal size of values that can be stored.
Required Methods§
sourceasync fn write_batch(&self, batch: Batch) -> Result<(), Self::Error>
async fn write_batch(&self, batch: Batch) -> Result<(), Self::Error>
Writes the batch
in the database.
sourceasync fn clear_journal(&self) -> Result<(), Self::Error>
async fn clear_journal(&self) -> Result<(), Self::Error>
Clears any journal entry that may remain.
The journal is located at the root_key
.
Object Safety§
This trait is not object safe.