AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
SQLOperation Class Referenceabstract

#include "SQLOperation.h"

Inheritance diagram for SQLOperation:
BasicStatementTask PingOperation PreparedStatementTask SQLQueryHolderTask TransactionTask TransactionWithResultTask

Public Member Functions

 SQLOperation ()=default
 
virtual ~SQLOperation ()=default
 
virtual int call ()
 
virtual bool Execute ()=0
 
virtual void SetConnection (MySQLConnection *con)
 

Public Attributes

MySQLConnectionm_conn {nullptr}
 

Private Member Functions

 SQLOperation (SQLOperation const &right)=delete
 
SQLOperationoperator= (SQLOperation const &right)=delete
 

Detailed Description

Constructor & Destructor Documentation

◆ SQLOperation() [1/2]

SQLOperation::SQLOperation ( )
default

◆ ~SQLOperation()

virtual SQLOperation::~SQLOperation ( )
virtualdefault

◆ SQLOperation() [2/2]

SQLOperation::SQLOperation ( SQLOperation const &  right)
privatedelete

Member Function Documentation

◆ call()

virtual int SQLOperation::call ( )
inlinevirtual
48 {
49 Execute();
50 return 0;
51 }
virtual bool Execute()=0

Referenced by DatabaseWorker::WorkerThread().

◆ Execute()

virtual bool SQLOperation::Execute ( )
pure virtual

◆ operator=()

SQLOperation & SQLOperation::operator= ( SQLOperation const &  right)
privatedelete

◆ SetConnection()

virtual void SQLOperation::SetConnection ( MySQLConnection con)
inlinevirtual
54{ m_conn = con; }
MySQLConnection * m_conn
Definition: SQLOperation.h:56

Referenced by DatabaseWorker::WorkerThread().

Member Data Documentation

◆ m_conn