Added util.h#createConnection

This commit is contained in:
Mathias Wagner 2023-10-29 22:29:44 +01:00
parent b0f4842168
commit 87d73e1dbb
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -2,6 +2,7 @@
#define BOT_UTIL_H
#include <dpp/dpp.h>
#include <mariadb/conncpp.hpp>
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);
};