Fixed matching the BulkType

The serde to_string thing has "" around the strings.
This commit is contained in:
2025-08-16 02:21:43 +01:00
parent 1462401787
commit 9c2d9c1fb7
3 changed files with 34 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ use sqlite;
use std::fs;
use std::path::PathBuf;
use super::utils::get_local_cache_folder;
use super::utils::{create_cache_folder, get_local_data_folder, SQLITE_FILENAME};
fn get_local_data_sqlite_file() -> PathBuf {
@@ -30,6 +31,8 @@ pub fn init_db() -> bool {
create_cache_folder();
let sqlite_file = get_local_data_sqlite_file();
println!("sqlite file location: {}", sqlite_file.display());
// TESTING
println!("cache folder: {}", get_local_cache_folder().display());
let _res = fs::remove_file(&sqlite_file);
// TODO actually check result for whether it was a permissions thing or something
let connection = sqlite::open(sqlite_file).unwrap();