1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-11-05 03:48:52 +01:00

Add memory_usage() to DatabaseEngine trait

This commit is contained in:
Andrej Kacian 2022-01-09 20:07:03 +01:00 committed by Timo Kösters
parent fa6d7f7ccd
commit 71431f330a
No known key found for this signature in database
GPG key ID: 356E705610F626D5

View file

@ -27,6 +27,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 {