mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-14 12:18:22 +00:00
16 lines
425 B
C++
16 lines
425 B
C++
|
#include "CDClientDatabase.h"
|
||
|
#include "CDComponentsRegistryTable.h"
|
||
|
|
||
|
// Static Variables
|
||
|
static CppSQLite3DB * conn = new CppSQLite3DB();
|
||
|
|
||
|
//! Opens a connection with the CDClient
|
||
|
void CDClientDatabase::Connect(const std::string& filename) {
|
||
|
conn->open(filename.c_str());
|
||
|
}
|
||
|
|
||
|
//! Queries the CDClient
|
||
|
CppSQLite3Query CDClientDatabase::ExecuteQuery(const std::string& query) {
|
||
|
return conn->execQuery(query.c_str());
|
||
|
}
|