bee_storage_null/access/
batch.rs1use crate::Storage;
5
6use bee_storage::access::{Batch, BatchBuilder};
7
8#[derive(Default)]
9pub struct StorageBatch;
10
11impl BatchBuilder for Storage {
12 type Batch = StorageBatch;
13
14 fn batch_commit(&self, _batch: Self::Batch, _durability: bool) -> Result<(), Self::Error> {
15 Ok(())
16 }
17}
18
19impl<K, V> Batch<K, V> for Storage {
20 fn batch_insert(&self, _batch: &mut Self::Batch, _key: &K, _value: &V) -> Result<(), Self::Error> {
21 Ok(())
22 }
23
24 fn batch_delete(&self, _batch: &mut Self::Batch, _key: &K) -> Result<(), Self::Error> {
25 Ok(())
26 }
27}