Rename DB traits

This commit is contained in:
Paul Hauner
2019-05-01 11:59:18 +10:00
parent 85266f8db0
commit 157d4900aa
2 changed files with 13 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
use super::{DBValue, Error, StoreDB};
use super::{DBValue, Error, Store};
use parking_lot::RwLock;
use std::collections::HashMap;
@@ -22,7 +22,7 @@ impl MemoryDB {
}
}
impl StoreDB for MemoryDB {
impl Store for MemoryDB {
/// Get the value of some key from the database. Returns `None` if the key does not exist.
fn get_bytes(&self, col: &str, key: &[u8]) -> Result<Option<DBValue>, Error> {
let column_key = MemoryDB::get_key_for_col(col, key);