#rocksdb #distributed #database

yanked datacake-rocks

A pre-built implementation of the require Metastore and Datastore traits for the Datacake cluster. Built on top of RocksDB.

0.0.1 Oct 2, 2022

#79 in #rocksdb

MIT license

325KB
7.5K SLoC

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.");    
}

Dependencies

~32–46MB
~807K SLoC