1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 08:25:16 +00:00

Can log select queries

This commit is contained in:
2020-07-08 13:33:55 +02:00
parent 11051b28a0
commit df1e2ffd7b
3 changed files with 44 additions and 2 deletions

View File

@ -11,6 +11,7 @@ pub struct DatabaseConfig {
pub name: String,
pub username: String,
pub password: String,
pub log_all_queries: bool,
}
#[derive(Debug)]
@ -59,6 +60,7 @@ impl Config {
name: Config::yaml_str(parsed_db, "name"),
username: Config::yaml_str(parsed_db, "username"),
password: Config::yaml_str(parsed_db, "password"),
log_all_queries: Config::yaml_bool(parsed_db, "log_all_queries"),
};
let proxy = Config::yaml_str(parsed, "proxy");