DustData
A data concurrency control storage engine to Rustbase
Join our community and chat with other Rust users.
⚠️ Warning
This is a work in progress. The API is not stable yet.
🔗 Contribute
Click here to see how to Contribute
How to install
Add the following to your Cargo.toml:
[]
= "2.0.0-beta.2"
Usage
Initialize a new DustData instance with the default configuration:
use DustData;
let mut dustdata = new.unwrap;
Inserting data into a collection
let collection = dustdata.;
let user = User ;
// Creating a new transaction.
let mut transaction = collection.start;
// Inserting the user into the transaction.
transaction.insert;
// Committing the transaction.
collection.commit.unwrap;
// Done!
Reading data from a collection
let collection = dustdata..unwrap;
let user = collection.get.unwrap;
Authors
| @peeeuzin |
|---|