summaryrefslogtreecommitdiff
path: root/src/config.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-04-30 00:57:09 +0500
committerilotterytea <iltsu@alright.party>2024-04-30 00:57:09 +0500
commit4eb4d18ea4ddaf927f8a37bc702228f7ef468c40 (patch)
tree87c1e474d116fad3bd252732ec9cfca05026a117 /src/config.hpp
parentd8d62ca07f55b88674b3c59d95c7eb7e8b2e4f4d (diff)
feat: database configuration
Diffstat (limited to 'src/config.hpp')
-rw-r--r--src/config.hpp9
1 files changed, 9 insertions, 0 deletions
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 <string>
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<Configuration> parse_configuration_from_file(