diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-02-10 21:48:19 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-02-10 21:55:45 +0200 |
| commit | 5020bc4204cb470146e4c934018b965f1cf9eba2 (patch) | |
| tree | c73353c0e34a155d038cb72eaaabad1bef2de270 /py_bindings/src | |
| parent | 591053c55753e00341bd739c00f9ff09ae6e8141 (diff) | |
Add missing bindings and update existing
Diffstat (limited to 'py_bindings/src')
| -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)] |
