use config file instead of argument options

This commit is contained in:
yggverse 2026-01-10 16:37:28 +02:00
parent ec0cca64f3
commit 3e94399ccb
15 changed files with 162 additions and 123 deletions

View file

@ -8,7 +8,7 @@ pub struct Mysql {
pub host: String,
pub password: String,
pub port: u16,
pub user: String,
pub username: String,
}
#[derive(Debug, Deserialize)]

View file

@ -30,7 +30,7 @@ fn main() -> Result<()> {
let db = mysql::Database::pool(
&config.mysql.host,
config.mysql.port,
&config.mysql.user,
&config.mysql.username,
&config.mysql.password,
&config.mysql.database,
)?;