Module disk

Module disk 

Source
Expand description

Disk storage for blocks on disk

Currently this uses sqlite. In testing sqlite wasn’t the fastest, but it seemed to be the best behaved in terms of both on-disk space usage and memory usage.

let store = DiskBuilder::new()
    .with_cache_size_mb(32)
    .with_max_stored_mb(1024) // errors when >1GiB of processed blocks are inserted
    .open("/some/path.db".into()).await?;

Structs§

DiskBuilder
Builder-style disk store setup
DiskStore
On-disk block storage

Enums§

DiskError