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:
parent
fa6d7f7ccd
commit
71431f330a
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue