diff options
Diffstat (limited to 'src/db/utils.rs')
-rw-r--r-- | src/db/utils.rs | 12 |
1 files changed, 1 insertions, 11 deletions
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 |