redb-extras 0.8.0

Use-case agnostic utilities for redb, featuring sharded roaring bitmap tables
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub mod dbcopy;
pub mod error;
pub mod key_buckets;
pub mod partition;
pub mod roaring;
pub mod table_buckets;

// Re-export common types for convenience
pub use error::{Error, Result};

/// Trait for merging values when consolidating bucket tables.
pub trait MergeableValue: Sized {
    /// Merge an incoming value with an existing value (if any).
    fn merge(existing: Option<Self>, incoming: Self) -> Self;
}