From 4eb4d18ea4ddaf927f8a37bc702228f7ef468c40 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 30 Apr 2024 00:57:09 +0500 Subject: feat: database configuration --- src/config.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/config.hpp') diff --git a/src/config.hpp b/src/config.hpp index 3c10d86..6f4c765 100644 --- a/src/config.hpp +++ b/src/config.hpp @@ -4,9 +4,18 @@ #include namespace bot { + struct DatabaseConfiguration { + std::string name; + std::string user; + std::string password; + std::string host; + std::string port; + }; + struct Configuration { std::string bot_username; std::string bot_password; + DatabaseConfiguration database; }; std::optional parse_configuration_from_file( -- cgit v1.2.3