diff options
author | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-14 18:35:22 -0600 |
---|---|---|
committer | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-14 18:35:22 -0600 |
commit | 6bcb3620d8be2f3bcfe72432d17955827894bb6e (patch) | |
tree | e2429d5791ab1cdb90dce7c76e9241e2c7405cd0 /src/settings.rs | |
parent | 19b851c71ee8c7499046936771446e6ae6e60c16 (diff) | |
download | tosin-6bcb3620d8be2f3bcfe72432d17955827894bb6e.tar.gz tosin-6bcb3620d8be2f3bcfe72432d17955827894bb6e.zip |
make backend more explicit
Diffstat (limited to 'src/settings.rs')
-rw-r--r-- | src/settings.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/settings.rs b/src/settings.rs index 9d34c0d..37a3395 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -1,13 +1,17 @@ +use crate::db::backend::DbBackend; + pub struct Settings { pub installed_apps: &'static [&'static crate::apps::AppConfig], - pub database_url: &'static str, + pub database: DbBackend, } impl Default for Settings { fn default() -> Self { Self { installed_apps: &[], - database_url: "", + database: DbBackend::Sqlite { + db_file: "db.sqlite3", + }, } } } |