aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_db/src/lib.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-06-09 12:25:27 +0000
committerFuwn <[email protected]>2021-06-09 12:25:27 +0000
commit6c516b132bd58c11a2380a28b2db2b2e6b81bc52 (patch)
tree0bc4b9bd6f0dac69ae84365f0013cdd343b84712 /crates/whirl_db/src/lib.rs
parentrefactor(config): rename `Whirl.toml` to `Config.toml` (diff)
downloadwhirl-6c516b132bd58c11a2380a28b2db2b2e6b81bc52.tar.xz
whirl-6c516b132bd58c11a2380a28b2db2b2e6b81bc52.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))
}