parity-zcash/db/src/kv/db.rs

8 lines
216 B
Rust

use kv::{Key, KeyState, Transaction, Value};
pub trait KeyValueDatabase: Send + Sync {
fn write(&self, tx: Transaction) -> Result<(), String>;
fn get(&self, key: &Key) -> Result<KeyState<Value>, String>;
}