summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/config.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.hpp b/src/config.hpp
index 6f4c765..2e02f1d 100644
--- a/src/config.hpp
+++ b/src/config.hpp
@@ -3,6 +3,11 @@
#include <optional>
#include <string>
+#define GET_DATABASE_CONNECTION_URL(c) \
+ "dbname = " + c.database.name + " user = " + c.database.user + \
+ " password = " + c.database.password + " host = " + c.database.host + \
+ " port = " + c.database.port
+
namespace bot {
struct DatabaseConfiguration {
std::string name;