From 78955e3199fdcf94d9711efeac60324f10d61542 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Sun, 3 Nov 2019 14:03:27 +0200 Subject: [PATCH] sqlite3: rename index db to index.db --- ui/src/sqlite3.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/src/sqlite3.rs b/ui/src/sqlite3.rs index 60d56f5c..fa8b4b30 100644 --- a/ui/src/sqlite3.rs +++ b/ui/src/sqlite3.rs @@ -67,7 +67,7 @@ pub fn open_db(context: &crate::state::Context) -> Result { xdg::BaseDirectories::with_prefix("meli").map_err(|e| MeliError::new(e.to_string()))?; let conn = Connection::open( data_dir - .place_data_file("meli.db") + .place_data_file("index.db") .map_err(|e| MeliError::new(e.to_string()))?, ) .map_err(|e| MeliError::new(e.to_string()))?; @@ -167,7 +167,7 @@ pub fn insert(context: &mut crate::state::Context) -> Result<()> { xdg::BaseDirectories::with_prefix("meli").map_err(|e| MeliError::new(e.to_string()))?; let conn = Connection::open( data_dir - .place_data_file("meli.db") + .place_data_file("index.db") .map_err(|e| MeliError::new(e.to_string()))?, ) .map_err(|e| MeliError::new(e.to_string()))?; @@ -271,7 +271,7 @@ pub fn search( xdg::BaseDirectories::with_prefix("meli").map_err(|e| MeliError::new(e.to_string()))?; let conn = Connection::open( data_dir - .place_data_file("meli.db") + .place_data_file("index.db") .map_err(|e| MeliError::new(e.to_string()))?, ) .map_err(|e| MeliError::new(e.to_string()))?; @@ -311,7 +311,7 @@ pub fn from(term: &str) -> Result> { xdg::BaseDirectories::with_prefix("meli").map_err(|e| MeliError::new(e.to_string()))?; let conn = Connection::open_with_flags( data_dir - .place_data_file("meli.db") + .place_data_file("index.db") .map_err(|e| MeliError::new(e.to_string()))?, rusqlite::OpenFlags::SQLITE_OPEN_READ_ONLY, )