admin/maintenance: sqlite vacuum
This commit is contained in:
parent
ff6c910b2f
commit
37c5127bbc
6 changed files with 52 additions and 12 deletions
|
|
@ -536,6 +536,16 @@
|
|||
},
|
||||
"query": "update totp_login_requests\n\nset used_at = CURRENT_TIMESTAMP\n\nwhere token is ?"
|
||||
},
|
||||
"657fdc2b228b14a6aba717e5083daf48204274ab62d73ec8968bcd0c7568b157": {
|
||||
"describe": {
|
||||
"columns": [],
|
||||
"nullable": [],
|
||||
"parameters": {
|
||||
"Right": 0
|
||||
}
|
||||
},
|
||||
"query": "vacuum"
|
||||
},
|
||||
"68cfa3d135eb4cdbdbcb3b943518b4ac09c371af689c444eb439a37f91ecf7a5": {
|
||||
"describe": {
|
||||
"columns": [],
|
||||
|
|
|
|||
|
|
@ -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