Skip to main content

redb_append_log_default

Function redb_append_log_default 

Source
pub fn redb_append_log_default<T>(
    path: impl AsRef<Path>,
) -> Result<AppendLogStorage<RedbBackend, T, JsonCodec>, StorageError>
where T: Serialize + DeserializeOwned + Clone + Send + Sync + 'static,
Expand description

Append-log tier over a redb backend with default options (JsonCodec).

§Errors

Returns StorageError::BackendError if the database can’t be opened.