diff options
author | Joris | 2025-02-06 21:15:32 +0100 |
---|---|---|
committer | Joris | 2025-02-06 21:15:32 +0100 |
commit | fedb4e7c7ebf21619f89c29d011e288363a978e9 (patch) | |
tree | a1caf36b68fc672bf8bc0740ee05dbb6770d02a6 /src/db/utils.rs | |
parent | 2956aa5f5324e4183dbc87f81fbc71fd0f43dbf9 (diff) |
Use anyhow Error
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 |