Added util.h#createConnection
This commit is contained in:
parent
b0f4842168
commit
87d73e1dbb
@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user