readb 0.4.1

A simple, efficient, and modular embedded read-first key-value database in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod tests {
    use readb::{Database, DatabaseSettings, DefaultDatabase, IndexType};

    // TODO: Remove test and unwrap with 1.0
    #[allow(deprecated)]
    #[test]
    fn test_unwrap_creation() {
        let dir = tempfile::tempdir().unwrap();

        let _ = DefaultDatabase::new(DatabaseSettings {
            path: Some(dir.path().to_path_buf()),
            cache_size: None,
            index_type: IndexType::HashMap,
            ..Default::default()
        })
        .unwrap();
    }
}