TrinityCore
Loading...
Searching...
No Matches
SQLQueryHolderTask Class Reference

#include <QueryHolder.h>

+ Inheritance diagram for SQLQueryHolderTask:

Public Member Functions

 SQLQueryHolderTask (std::shared_ptr< SQLQueryHolderBase > holder)
 
 ~SQLQueryHolderTask ()
 
bool Execute () override
 
QueryResultHolderFuture GetFuture ()
 
- Public Member Functions inherited from SQLOperation
 SQLOperation ()
 
virtual ~SQLOperation ()
 
virtual int call ()
 
virtual void SetConnection (MySQLConnection *con)
 

Private Attributes

std::shared_ptr< SQLQueryHolderBase > m_holder
 
QueryResultHolderPromise m_result
 

Additional Inherited Members

- Public Attributes inherited from SQLOperation
MySQLConnection * m_conn
 

Detailed Description

Definition at line 50 of file QueryHolder.h.

Constructor & Destructor Documentation

◆ SQLQueryHolderTask()

SQLQueryHolderTask::SQLQueryHolderTask ( std::shared_ptr< SQLQueryHolderBase >  holder)
inlineexplicit

Definition at line 57 of file QueryHolder.h.

◆ ~SQLQueryHolderTask()

SQLQueryHolderTask::~SQLQueryHolderTask ( )
default

Member Function Documentation

◆ Execute()

bool SQLQueryHolderTask::Execute ( )
overridevirtual

execute all queries in the holder and pass the results

Implements SQLOperation.

Definition at line 77 of file QueryHolder.cpp.

References SQLOperation::m_conn, m_holder, m_result, and MySQLConnection::Query().

◆ GetFuture()

QueryResultHolderFuture SQLQueryHolderTask::GetFuture ( )
inline

Definition at line 63 of file QueryHolder.h.

Referenced by DatabaseWorkerPool< T >::DelayQueryHolder().

Member Data Documentation

◆ m_holder

std::shared_ptr<SQLQueryHolderBase> SQLQueryHolderTask::m_holder
private

Definition at line 53 of file QueryHolder.h.

Referenced by Execute().

◆ m_result

QueryResultHolderPromise SQLQueryHolderTask::m_result
private

Definition at line 54 of file QueryHolder.h.

Referenced by Execute().


The documentation for this class was generated from the following files: