From 06a831f578d46d788066340aeffc788724069778 Mon Sep 17 00:00:00 2001 From: Jack Wills <32690432+mrjackwills@users.noreply.github.com> Date: Sat, 29 Jul 2023 21:23:00 +0100 Subject: [PATCH] fix: sqlx disable logging --- src-tauri/src/db/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/db/mod.rs b/src-tauri/src/db/mod.rs index f1339d8..a47e84e 100644 --- a/src-tauri/src/db/mod.rs +++ b/src-tauri/src/db/mod.rs @@ -13,7 +13,7 @@ async fn get_db(path: &PathBuf) -> Result { .filename(path) .create_if_missing(true) .journal_mode(SqliteJournalMode::Wal); - connect_options.disable_statement_logging(); + connect_options = connect_options.disable_statement_logging(); let db = sqlx::pool::PoolOptions::::new() .max_connections(1) .connect_with(connect_options)