1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-06-27 16:35:59 +00:00

Add memory_usage() to DatabaseEngine trait

This commit is contained in:
Andrej Kacian 2022-01-09 20:07:03 +01:00
parent e667b5da5f
commit dd8429bc7f

View file

@ -24,6 +24,9 @@ pub trait DatabaseEngine: Send + Sync {
fn cleanup(self: &Self) -> Result<()> { fn cleanup(self: &Self) -> Result<()> {
Ok(()) Ok(())
} }
fn memory_usage(self: &Self) -> Result<String> {
Ok("Current database engine does not support memory usage reporting.".to_string())
}
} }
pub trait Tree: Send + Sync { pub trait Tree: Send + Sync {