mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-13 02:48:19 +00:00
Public release of the DLU server code!
Have fun!
This commit is contained in:
15
dDatabase/CDClientDatabase.cpp
Normal file
15
dDatabase/CDClientDatabase.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#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());
|
||||
}
|
Reference in New Issue
Block a user