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< SQLQueryHolderBasem_holder
 
QueryResultHolderPromise m_result
 

Additional Inherited Members

- Public Attributes inherited from SQLOperation
MySQLConnectionm_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.

+ Here is the call graph for this function:

◆ GetFuture()

QueryResultHolderFuture SQLQueryHolderTask::GetFuture ( )
inline

Definition at line 63 of file QueryHolder.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_holder

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

Definition at line 53 of file QueryHolder.h.

◆ m_result

QueryResultHolderPromise SQLQueryHolderTask::m_result
private

Definition at line 54 of file QueryHolder.h.


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