datacake-rocks

Crates.iodatacake-rocks
lib.rsdatacake-rocks
version0.0.1
sourcesrc
created_at2022-10-02 10:49:06.220617
updated_at2022-10-02 10:49:06.220617
descriptionA pre-built implementation of the require Metastore and Datastore traits for the Datacake cluster. Built on top of RocksDB.
homepage
repositoryhttps://github.com/lnx-search/datacake
max_upload_size
id678230
size30,858
Harrison Burt (ChillFish8)

documentation

README

Datacake Rocks

Datacake Rocks is a pre-made implementation of the Datacake Cluster Docstore and Metastore traits, built upon a sharded storage design and RocksDB allowing you get setup and start using Datacake without worrying about implementing the required traits.

Basic Example

use anyhow::Result;
use datacake_rocks::open_store_with_options;

#[tokio::main]
async fn main() -> Result<()> {
    let mut options = rocksdb::Options::default();
    
    // We can now use this store to be our backend in a DatacakeCluster.
    let my_store = open_store_with_options(12, options, "/my-data/path-here")
        .await
        .expect("Open our database.");    
}
Commit count: 228

cargo fmt