diff options
Diffstat (limited to 'py_bindings/src/lib.rs')
| -rw-r--r-- | py_bindings/src/lib.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/py_bindings/src/lib.rs b/py_bindings/src/lib.rs index 53544e2..9a14d19 100644 --- a/py_bindings/src/lib.rs +++ b/py_bindings/src/lib.rs @@ -374,6 +374,20 @@ impl DB { .map_err(|e| PyException::new_err(e.to_string()))?; Ok(()) } + + pub fn do_maintenance_tasks(&mut self) -> PyResult<()> { + self.db + .do_maintenance_tasks() + .map_err(|e| PyException::new_err(e.to_string()))?; + Ok(()) + } + + pub fn refresh_indexes(&mut self) -> PyResult<()> { + self.db + .refresh_indexes() + .map_err(|e| PyException::new_err(e.to_string()))?; + Ok(()) + } } #[pyclass(name = "Bound", eq)] |
