Directories for database file, backups and logs are defined in configuration file now

This commit is contained in:
Greg Burri 2025-04-12 15:58:19 +02:00
parent 18e4f846fb
commit b4411ae892
6 changed files with 118 additions and 44 deletions

View file

@ -11,10 +11,6 @@ pub const FILE_CONF: &str = "conf.ron";
/// it's located in the current directory.
pub const TRANSLATION_FILE: &str = "translation.ron";
/// Directory where the database is stored.
/// It's located in the current directory.
pub const DB_DIRECTORY: &str = "data";
/// Filename of the database.
/// It's located in the `DB_DIRECTORY` directory.
pub const DB_FILENAME: &str = "recipes.sqlite";