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:
parent
e667b5da5f
commit
dd8429bc7f
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ pub trait DatabaseEngine: Send + Sync {
|
|||
fn cleanup(self: &Self) -> Result<()> {
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue