AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
AccountInfoQueryHolderPerRealm Class Reference
Inheritance diagram for AccountInfoQueryHolderPerRealm:
SQLQueryHolder< T > SQLQueryHolderBase

Public Types

enum  {
  GLOBAL_ACCOUNT_DATA = 0 ,
  TUTORIALS ,
  MAX_QUERIES
}
 

Public Member Functions

 AccountInfoQueryHolderPerRealm ()
 
bool Initialize (uint32 accountId)
 
- Public Member Functions inherited from SQLQueryHolder< T >
bool SetPreparedQuery (std::size_t index, PreparedStatement< T > *stmt)
 
- Public Member Functions inherited from SQLQueryHolderBase
 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)
 

Additional Inherited Members

- Protected Member Functions inherited from SQLQueryHolderBase
bool SetPreparedQueryImpl (std::size_t index, PreparedStatementBase *stmt)
 

Detailed Description

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
GLOBAL_ACCOUNT_DATA 
TUTORIALS 
MAX_QUERIES 
1423 {
1425 TUTORIALS,
1426
1428 };
@ MAX_QUERIES
Definition WorldSession.cpp:1427
@ TUTORIALS
Definition WorldSession.cpp:1425
@ GLOBAL_ACCOUNT_DATA
Definition WorldSession.cpp:1424

Constructor & Destructor Documentation

◆ AccountInfoQueryHolderPerRealm()

AccountInfoQueryHolderPerRealm::AccountInfoQueryHolderPerRealm ( )
inline
1430{ SetSize(MAX_QUERIES); }
void SetSize(std::size_t size)
Definition QueryHolder.cpp:69

Member Function Documentation

◆ Initialize()

bool AccountInfoQueryHolderPerRealm::Initialize ( uint32  accountId)
inline
1433 {
1434 bool ok = true;
1435
1437 stmt->SetData(0, accountId);
1438 ok = SetPreparedQuery(GLOBAL_ACCOUNT_DATA, stmt) && ok;
1439
1440 stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_TUTORIALS);
1441 stmt->SetData(0, accountId);
1442 ok = SetPreparedQuery(TUTORIALS, stmt) && ok;
1443
1444 return ok;
1445 }
@ CHAR_SEL_TUTORIALS
Definition CharacterDatabase.h:205
@ CHAR_SEL_ACCOUNT_DATA
Definition CharacterDatabase.h:198
DatabaseWorkerPool< CharacterDatabaseConnection > CharacterDatabase
Accessor to the character database.
Definition DatabaseEnv.cpp:21
Acore::Types::is_default< T > SetData(const uint8 index, T value)
Definition PreparedStatement.h:77
Definition PreparedStatement.h:157
bool SetPreparedQuery(std::size_t index, PreparedStatement< T > *stmt)
Definition QueryHolder.h:46

References CHAR_SEL_ACCOUNT_DATA, CHAR_SEL_TUTORIALS, CharacterDatabase, and PreparedStatementBase::SetData().


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