A framework for generically storing data inside stores.
Add datastore
to your Cargo.toml
:
datastore = { version = "0.1.5", features = ["derive"] }
Define some data using the StoreData
macro:
use datastore::StoreData;
#[derive(StoreData)]
struct Person {
id: i64,
name: String,
}
datastore only defines a format describing how to read/write some data from/to a store. To use the defined format you need a crate with a Store
driver. See datastore-mysql for an example store implementation.
Licensed under either The Apache License, Version 2.0 or MIT license at your option.