mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Core/DBLayer:
- Implement deriviate classes of MySQLConnection for every database type (world, realm, characters) - Make DatabaseWorkerPool templatized and use the above mentioned classes as parameter - Implementation of the new types in code (This is in preparation of prepared statement interface) --HG-- branch : trunk
This commit is contained in:
@@ -23,14 +23,14 @@ class DatabaseWorker;
|
||||
|
||||
class MySQLConnection
|
||||
{
|
||||
friend class DatabaseWorkerPool;
|
||||
template <class T> friend class DatabaseWorkerPool;
|
||||
|
||||
public:
|
||||
MySQLConnection(); //! Constructor for synchroneous connections.
|
||||
MySQLConnection(ACE_Activation_Queue* queue); //! Constructor for asynchroneous connections.
|
||||
~MySQLConnection();
|
||||
|
||||
bool Open(const std::string& infoString); //! Connection details.
|
||||
virtual bool Open(const std::string& infoString); //! Connection details.
|
||||
|
||||
public:
|
||||
bool Execute(const char* sql);
|
||||
|
||||
Reference in New Issue
Block a user