Skip to content

Commit a40c0e6

Browse files
committed
feat(ffi) Add Client::optimize_stores method
1 parent ca4e42c commit a40c0e6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bindings/matrix-sdk-ffi/src/client.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,12 @@ impl Client {
359359

360360
#[matrix_sdk_ffi_macros::export]
361361
impl Client {
362+
/// Perform database optimizations if any are available, i.e. vacuuming in
363+
/// SQLite.
364+
pub async fn optimize_stores(&self) -> Result<(), ClientError> {
365+
Ok(self.inner.optimize_stores().await?)
366+
}
367+
362368
/// Information about login options for the client's homeserver.
363369
pub async fn homeserver_login_details(&self) -> Arc<HomeserverLoginDetails> {
364370
let oauth = self.inner.oauth();

0 commit comments

Comments
 (0)