DragonNest/Server/DNLogServer/DNSQLConnectionManager.h
2024-12-20 16:56:44 +08:00

28 lines
1.2 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include "DNSQLConnection.h"
class CDNSQLConnectionManager
{
private:
CDNSQLConnection* m_LogDBArray[THREADMAX][WORLDCOUNTMAX];
CDNSQLConnection* m_ServerLogDBArray[THREADMAX];
bool CreateServerLogDB();
bool CreateLogDB();
public:
CDNSQLConnectionManager(void);
~CDNSQLConnectionManager(void);
void Clear();
bool CreateDB();
void DestroyDB();
CDNSQLConnection* FindServerLogDB(int nThreadIndex);
CDNSQLConnection* FindLogDB(int nThreadIndex, char cWorldID);
CDNSQLConnection* FindLogDB(int nThreadIndex);
};
extern CDNSQLConnectionManager g_SQLConnectionManager;