diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-03-11 17:26:32 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-03-11 17:26:32 +0100 |
| commit | e1286892e59a6ca2fc44a58473ca45292e623a10 (patch) | |
| tree | 36389b06f5be667e4f13cfb1e62db4d228e75343 /database/src/lib.rs | |
| parent | 578b32c9119692fb049fa56c7d52f2fbb8d485d7 (diff) | |
| download | jellything-e1286892e59a6ca2fc44a58473ca45292e623a10.tar jellything-e1286892e59a6ca2fc44a58473ca45292e623a10.tar.bz2 jellything-e1286892e59a6ca2fc44a58473ca45292e623a10.tar.zst | |
debug info page for db kv and cache kv
Diffstat (limited to 'database/src/lib.rs')
| -rw-r--r-- | database/src/lib.rs | 4 |
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)] |