| Crates.io | datacake-rocks |
| lib.rs | datacake-rocks |
| version | 0.0.1 |
| created_at | 2022-10-02 10:49:06.220617+00 |
| updated_at | 2022-10-02 10:49:06.220617+00 |
| description | A pre-built implementation of the require Metastore and Datastore traits for the Datacake cluster. Built on top of RocksDB. |
| homepage | |
| repository | https://github.com/lnx-search/datacake |
| max_upload_size | |
| id | 678230 |
| size | 30,858 |
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.
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.");
}