admin/maintenance: sqlite vacuum
This commit is contained in:
parent
ff6c910b2f
commit
37c5127bbc
6 changed files with 52 additions and 12 deletions
|
|
@ -41,6 +41,10 @@ impl Settings {
|
|||
.map(human_bytes))
|
||||
}
|
||||
|
||||
pub async fn vacuum(conn: impl SqliteExecutor<'_>) -> Result<(), Error> {
|
||||
Ok(DatabaseSettings::vacuum(conn).await?)
|
||||
}
|
||||
|
||||
pub async fn set_business_name(
|
||||
conn: impl SqliteExecutor<'_>,
|
||||
business_name: &str,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue