aboutsummaryrefslogtreecommitdiff
path: root/database/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'database/src/lib.rs')
-rw-r--r--database/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/database/src/lib.rs b/database/src/lib.rs
index 465cb87..9bd4c06 100644
--- a/database/src/lib.rs
+++ b/database/src/lib.rs
@@ -17,6 +17,9 @@ pub type RowIter = Box<dyn Iterator<Item = Result<(RowNum, Vec<u8>)>>>;
pub trait Database: Send + Sync {
fn transaction(&self, f: &mut dyn FnMut(&mut dyn Transaction) -> Result<()>) -> Result<()>;
+ fn debug_info(&self) -> Result<String> {
+ Ok(String::new())
+ }
}
#[allow(clippy::type_complexity)]
@@ -31,7 +34,6 @@ pub trait Transaction {
) -> Result<Box<dyn Iterator<Item = Result<(RowNum, Vec<u8>)>> + 'a>>;
fn query_single(&mut self, query: Query) -> Result<Option<RowNum>>;
fn count(&mut self, query: Query) -> Result<u64>;
- fn debug_info(&self) -> Result<String>;
}
#[derive(Debug, Default, Clone, PartialEq)]