mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Add memory_usage() to DatabaseEngine trait
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user