summaryrefslogtreecommitdiff
path: root/src/config.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.hpp')
-rw-r--r--src/config.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.hpp b/src/config.hpp
index 25519c3..323e18f 100644
--- a/src/config.hpp
+++ b/src/config.hpp
@@ -8,6 +8,11 @@
" password = " + c.database.password + " host = " + c.database.host + \
" port = " + c.database.port
+#define GET_DATABASE_CONNECTION_URL_POINTER(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;