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

#include <PreparedStatement.h>

+ Inheritance diagram for PreparedStatementTask:

Public Member Functions

 PreparedStatementTask (PreparedStatementBase *stmt, bool async=false)
 
 ~PreparedStatementTask ()
 
bool Execute () override
 
PreparedQueryResultFuture GetFuture ()
 
- Public Member Functions inherited from SQLOperation
 SQLOperation ()
 
virtual ~SQLOperation ()
 
virtual int call ()
 
virtual void SetConnection (MySQLConnection *con)
 

Protected Attributes

PreparedStatementBase * m_stmt
 
bool m_has_result
 
PreparedQueryResultPromise * m_result
 

Additional Inherited Members

- Public Attributes inherited from SQLOperation
MySQLConnection * m_conn
 

Detailed Description

Definition at line 119 of file PreparedStatement.h.

Constructor & Destructor Documentation

◆ PreparedStatementTask()

PreparedStatementTask::PreparedStatementTask ( PreparedStatementBase *  stmt,
bool  async = false 
)

Definition at line 130 of file PreparedStatement.cpp.

References m_has_result, and m_result.

◆ ~PreparedStatementTask()

PreparedStatementTask::~PreparedStatementTask ( )

Definition at line 138 of file PreparedStatement.cpp.

References m_has_result, m_result, and m_stmt.

Member Function Documentation

◆ Execute()

bool PreparedStatementTask::Execute ( )
overridevirtual

◆ GetFuture()

PreparedQueryResultFuture PreparedStatementTask::GetFuture ( )
inline

Definition at line 126 of file PreparedStatement.h.

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

Member Data Documentation

◆ m_has_result

bool PreparedStatementTask::m_has_result
protected

Definition at line 130 of file PreparedStatement.h.

Referenced by Execute(), PreparedStatementTask(), and ~PreparedStatementTask().

◆ m_result

PreparedQueryResultPromise* PreparedStatementTask::m_result
protected

Definition at line 131 of file PreparedStatement.h.

Referenced by Execute(), PreparedStatementTask(), and ~PreparedStatementTask().

◆ m_stmt

PreparedStatementBase* PreparedStatementTask::m_stmt
protected

Definition at line 129 of file PreparedStatement.h.

Referenced by Execute(), and ~PreparedStatementTask().


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