Fixed matching the BulkType
The serde to_string thing has "" around the strings.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user