pub trait ReadableConnection {
// Required methods
fn get(&self, key: &[u8]) -> Result<Option<Vec<u8>>>;
fn scan(&self, prefix: &[u8]) -> Result<Vec<(Vec<u8>, Vec<u8>)>>;
// Provided methods
fn get_path(&self, path: &str) -> Result<Option<Vec<u8>>> { ... }
fn scan_path(&self, prefix: &str) -> Result<Vec<(String, Vec<u8>)>> { ... }
}Expand description
Trait for read operations (shared by ReadOnly and ReadWrite connections)