aboutsummaryrefslogtreecommitdiff
path: root/kv/src/lib.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-03-11 17:26:32 +0100
committermetamuffin <metamuffin@disroot.org>2026-03-11 17:26:32 +0100
commite1286892e59a6ca2fc44a58473ca45292e623a10 (patch)
tree36389b06f5be667e4f13cfb1e62db4d228e75343 /kv/src/lib.rs
parent578b32c9119692fb049fa56c7d52f2fbb8d485d7 (diff)
downloadjellything-e1286892e59a6ca2fc44a58473ca45292e623a10.tar
jellything-e1286892e59a6ca2fc44a58473ca45292e623a10.tar.bz2
jellything-e1286892e59a6ca2fc44a58473ca45292e623a10.tar.zst
debug info page for db kv and cache kv
Diffstat (limited to 'kv/src/lib.rs')
-rw-r--r--kv/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/kv/src/lib.rs b/kv/src/lib.rs
index 83f2635..dd30460 100644
--- a/kv/src/lib.rs
+++ b/kv/src/lib.rs
@@ -20,6 +20,9 @@ use anyhow::Result;
pub trait Store: Send + Sync + 'static {
fn transaction(&self, f: &mut dyn FnMut(&mut dyn Transaction) -> Result<()>) -> Result<()>;
+ fn debug_info(&self) -> Result<String> {
+ Ok(String::new())
+ }
}
pub trait Transaction {
fn set(&mut self, key: &[u8], value: &[u8]) -> Result<()>;
@@ -35,4 +38,7 @@ pub trait Transaction {
pub trait BlobStorage: Send + Sync + 'static {
fn store(&self, key: &str, value: &[u8]) -> Result<()>;
fn read(&self, key: &str) -> Result<Option<Vec<u8>>>;
+ fn debug_info(&self) -> Result<String> {
+ Ok(String::new())
+ }
}