Aaron Brager
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
src/db/mod.rs
|
|
|
@ -403,6 +403,7 @@ pub fn backup_sqlite() -> Result<String, Error> { |
|
|
|
diesel::sql_query("VACUUM INTO ?") |
|
|
|
.bind::<diesel::sql_types::Text, _>(&backup_file) |
|
|
|
.execute(&mut conn) |
|
|
|
.map(|_| ()) |
|
|
|
.map_res("VACUUM INTO failed")?; |
|
|
|
|
|
|
|
Ok(backup_file) |
|
|
|
|