From fedb4e7c7ebf21619f89c29d011e288363a978e9 Mon Sep 17 00:00:00 2001 From: Joris Date: Thu, 6 Feb 2025 21:15:32 +0100 Subject: Use anyhow Error --- src/db/utils.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/db/utils.rs') diff --git a/src/db/utils.rs b/src/db/utils.rs index bd4d867..2ff0f13 100644 --- a/src/db/utils.rs +++ b/src/db/utils.rs @@ -1,15 +1,5 @@ use crate::model::report::Report; -use tokio_rusqlite::{Connection, Row}; - -pub async fn support_foreign_keys(conn: &Connection) { - let res = conn - .call(move |conn| Ok(conn.pragma_update(None, "foreign_keys", "ON"))) - .await; - - if let Err(err) = res { - log::error!("Error supporting foreign keys: {err:?}"); - } -} +use tokio_rusqlite::Row; pub fn format_key_for_search(value: &str) -> String { // Lower doesn’t work on accentuated letters, hence the need to remove manually accents for -- cgit v1.2.3