Skip to content

Commit 1936683

Browse files
committed
fix: remove file extension before loading
1 parent 631ef30 commit 1936683

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • standalone/src-tauri/src

standalone/src-tauri/src/db.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ impl DatabaseHandle {
8282
log::error!("Failed to enable SQLite extension loading: {:#}", err);
8383
return Err(err);
8484
}
85+
// remove the extension part from the path
86+
let extension_path_no_ext = extension_path.unwrap().with_extension("");
8587
if let Err(err) = conn
8688
.load_extension(
87-
extension_path.unwrap().to_string_lossy().as_ref(),
89+
extension_path_no_ext.to_string_lossy().as_ref(),
8890
Some("sqlite3_absurd_init"),
8991
)
9092
.context("load SQLite extension")

0 commit comments

Comments
 (0)