Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.05 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.05 KB

datastore

Crates.io Docs.rs

A framework for generically storing data inside stores.

Usage

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.

License

Licensed under either The Apache License, Version 2.0 or MIT license at your option.