mirror of
https://git.meli.delivery/meli/meli
synced 2024-11-17 03:26:20 +00:00
sqlite3: rename index db to index.db
This commit is contained in:
parent
d0c9774fe2
commit
78955e3199
@ -67,7 +67,7 @@ pub fn open_db(context: &crate::state::Context) -> Result<Connection> {
|
|||||||
xdg::BaseDirectories::with_prefix("meli").map_err(|e| MeliError::new(e.to_string()))?;
|
xdg::BaseDirectories::with_prefix("meli").map_err(|e| MeliError::new(e.to_string()))?;
|
||||||
let conn = Connection::open(
|
let conn = Connection::open(
|
||||||
data_dir
|
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()))?,
|
||||||
)
|
)
|
||||||
.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()))?;
|
xdg::BaseDirectories::with_prefix("meli").map_err(|e| MeliError::new(e.to_string()))?;
|
||||||
let conn = Connection::open(
|
let conn = Connection::open(
|
||||||
data_dir
|
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()))?,
|
||||||
)
|
)
|
||||||
.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()))?;
|
xdg::BaseDirectories::with_prefix("meli").map_err(|e| MeliError::new(e.to_string()))?;
|
||||||
let conn = Connection::open(
|
let conn = Connection::open(
|
||||||
data_dir
|
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()))?,
|
||||||
)
|
)
|
||||||
.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<StackVec<EnvelopeHash>> {
|
|||||||
xdg::BaseDirectories::with_prefix("meli").map_err(|e| MeliError::new(e.to_string()))?;
|
xdg::BaseDirectories::with_prefix("meli").map_err(|e| MeliError::new(e.to_string()))?;
|
||||||
let conn = Connection::open_with_flags(
|
let conn = Connection::open_with_flags(
|
||||||
data_dir
|
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()))?,
|
||||||
rusqlite::OpenFlags::SQLITE_OPEN_READ_ONLY,
|
rusqlite::OpenFlags::SQLITE_OPEN_READ_ONLY,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user