admin/maintenance: sqlite vacuum
This commit is contained in:
parent
ff6c910b2f
commit
37c5127bbc
6 changed files with 52 additions and 12 deletions
|
|
@ -38,6 +38,15 @@ impl Settings {
|
|||
.map_err(handle_error)
|
||||
}
|
||||
|
||||
pub async fn vacuum(conn: impl SqliteExecutor<'_>) -> Result<(), Error> {
|
||||
sqlx::query!("vacuum")
|
||||
.execute(conn)
|
||||
.await
|
||||
.map_err(handle_error)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn set_business_name(
|
||||
conn: impl SqliteExecutor<'_>,
|
||||
value: Option<&str>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue