AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "QueryHolder.h"
Public Member Functions | |
SQLQueryHolderBase ()=default | |
virtual | ~SQLQueryHolderBase () |
void | SetSize (std::size_t size) |
PreparedQueryResult | GetPreparedResult (std::size_t index) const |
void | SetPreparedResult (std::size_t index, PreparedResultSet *result) |
Protected Member Functions | |
bool | SetPreparedQueryImpl (std::size_t index, PreparedStatementBase *stmt) |
Private Attributes | |
std::vector< std::pair< PreparedStatementBase *, PreparedQueryResult > > | m_queries |
Friends | |
class | SQLQueryHolderTask |
|
default |
|
virtual |
if the result was never used, free the resources results used already (getresult called) are expected to be deleted
References m_queries.
PreparedQueryResult SQLQueryHolderBase::GetPreparedResult | ( | std::size_t | index | ) | const |
References ASSERT, and m_queries.
Referenced by WorldSession::HandlePlayerLoginFromDB(), WorldSession::InitializeSessionCallback(), Player::LoadFromDB(), and Pet::LoadPetFromDB().
|
protected |
References LOG_ERROR, and m_queries.
Referenced by SQLQueryHolder< T >::SetPreparedQuery().
void SQLQueryHolderBase::SetPreparedResult | ( | std::size_t | index, |
PreparedResultSet * | result | ||
) |
store the result in the holder
References PreparedResultSet::GetRowCount(), and m_queries.
void SQLQueryHolderBase::SetSize | ( | std::size_t | size | ) |
to optimize push_back, reserve the number of queries about to be executed
References m_queries.
Referenced by LoginQueryHolder::Initialize(), and PetLoadQueryHolder::PetLoadQueryHolder().
|
friend |
|
private |
Referenced by GetPreparedResult(), SetPreparedQueryImpl(), SetPreparedResult(), SetSize(), and ~SQLQueryHolderBase().