Trait akd::storage::StorageUtil
source · pub trait StorageUtil: Storage {
fn batch_get_type_direct<'life0, 'async_trait, St>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<DbRecord>, StorageError>> + Send + 'async_trait>>
where
St: 'async_trait + Storable,
'life0: 'async_trait,
Self: 'async_trait;
fn batch_get_all_direct<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<DbRecord>, StorageError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Optional storage layer utility functions for debug and test purposes
Required Methods
sourcefn batch_get_type_direct<'life0, 'async_trait, St>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<DbRecord>, StorageError>> + Send + 'async_trait>>where
St: 'async_trait + Storable,
'life0: 'async_trait,
Self: 'async_trait,
fn batch_get_type_direct<'life0, 'async_trait, St>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<DbRecord>, StorageError>> + Send + 'async_trait>>where
St: 'async_trait + Storable,
'life0: 'async_trait,
Self: 'async_trait,
Retrieves all stored records of a given type from the data layer, ignoring any caching or transaction pending
sourcefn batch_get_all_direct<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<DbRecord>, StorageError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn batch_get_all_direct<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<DbRecord>, StorageError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves all stored records from the data layer, ignoring any caching or transaction pending