summaryrefslogtreecommitdiff
path: root/src/config.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-05-09 00:36:56 +0500
committerilotterytea <iltsu@alright.party>2024-05-09 00:36:56 +0500
commit54e2744e3135f0eab9c9ec1e2cb84d831233df68 (patch)
tree93727773bff284a16afbb915b26a066c0c9fb5a8 /src/config.hpp
parent8c9f4843fc904f53197d6008c29df7ba5b1353e9 (diff)
feat: handler for timers
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;