[][src]Module acid_store::store

Low-level backends for data storage.

Examples

Open a data store which stores data in a directory of the local file system. Create the data store if it doesn't already exist, and truncate it if it does.

use acid_store::store::{DirectoryStore, Open, OpenOption};

let store = DirectoryStore::open(
    "/home/lostatc/store".into(),
    OpenOption::CREATE | OpenOption::TRUNCATE
).unwrap();

Structs

MemoryStore

A DataStore which stores data in memory.

OpenOption

Options for opening a resource.

Traits

DataStore

A persistent store for blocks of data.

Open

A resource which can be opened.