aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_db/src/lib.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-06-09 12:25:27 -0700
committerFuwn <[email protected]>2021-06-09 12:25:27 -0700
commit12c34f165990656fbbd0f043fb8103b5d7c326f0 (patch)
tree3d529d8b89c49959847bcf209998f92e03d403ae /crates/whirl_db/src/lib.rs
parentrefactor(config): rename `Whirl.toml` to `Config.toml` (diff)
downloadwhirl-12c34f165990656fbbd0f043fb8103b5d7c326f0.tar.xz
whirl-12c34f165990656fbbd0f043fb8103b5d7c326f0.zip
refactor(database): rename database file
The file name `whirl.sqlite3` is redundant as the file is already in the `.whirl` directory. BREAKING CHANGE: Database file renamed
Diffstat (limited to 'crates/whirl_db/src/lib.rs')
-rw-r--r--crates/whirl_db/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/whirl_db/src/lib.rs b/crates/whirl_db/src/lib.rs
index 41b2863..d2c6b33 100644
--- a/crates/whirl_db/src/lib.rs
+++ b/crates/whirl_db/src/lib.rs
@@ -38,7 +38,7 @@ use diesel::prelude::*;
#[must_use]
pub fn establish_connection() -> SqliteConnection {
let database_url =
- std::env::var("DATABASE_URL").unwrap_or_else(|_| ".whirl/whirl.sqlite3".to_string());
+ std::env::var("DATABASE_URL").unwrap_or_else(|_| ".whirl/db.sqlite3".to_string());
SqliteConnection::establish(&database_url)
.unwrap_or_else(|_| panic!("error connecting to {}", database_url))
}