From 87d73e1dbbb32ddf2d80930b3d1c30e6e278baa9 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 29 Oct 2023 22:29:44 +0100 Subject: [PATCH] Added util.h#createConnection --- src/api/util.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/api/util.h b/src/api/util.h index bfeed1f..912efb8 100644 --- a/src/api/util.h +++ b/src/api/util.h @@ -2,6 +2,7 @@ #define BOT_UTIL_H #include +#include class util { public: @@ -22,6 +23,13 @@ public: * @return The default embed */ static dpp::embed getDefaultEmbed(EmbedType type = INFO); + + /** + * @brief Creates a connection to the database + * @param config The database config + * @return The connection + */ + static sql::Connection* createConnection(const json& config); };