TrinityCore
Loading...
Searching...
No Matches
TransactionData Struct Reference

#include <Transaction.h>

Public Member Functions

template<typename... Args>
 TransactionData (Args &&... args)
 
 TransactionData (TransactionData const &)=delete
 
 TransactionData (TransactionData &&) noexcept=default
 
TransactionDataoperator= (TransactionData const &)=delete
 
TransactionDataoperator= (TransactionData &&) noexcept=default
 
 ~TransactionData ()
 

Static Public Member Functions

static PreparedStatementBaseToExecutable (std::unique_ptr< PreparedStatementBase > const &stmt)
 
static char const * ToExecutable (std::string const &sql)
 

Public Attributes

std::variant< std::unique_ptr< PreparedStatementBase >, std::string > query
 

Detailed Description

Definition at line 32 of file Transaction.h.

Constructor & Destructor Documentation

◆ TransactionData() [1/3]

template<typename... Args>
TransactionData::TransactionData ( Args &&...  args)
inline

Definition at line 37 of file Transaction.h.

◆ TransactionData() [2/3]

TransactionData::TransactionData ( TransactionData const &  )
delete

◆ TransactionData() [3/3]

TransactionData::TransactionData ( TransactionData &&  )
defaultnoexcept

◆ ~TransactionData()

TransactionData::~TransactionData ( )
default

Member Function Documentation

◆ operator=() [1/2]

TransactionData & TransactionData::operator= ( TransactionData &&  )
defaultnoexcept

◆ operator=() [2/2]

TransactionData & TransactionData::operator= ( TransactionData const &  )
delete

◆ ToExecutable() [1/2]

static char const * TransactionData::ToExecutable ( std::string const &  sql)
inlinestatic

Definition at line 45 of file Transaction.h.

◆ ToExecutable() [2/2]

static PreparedStatementBase * TransactionData::ToExecutable ( std::unique_ptr< PreparedStatementBase > const &  stmt)
inlinestatic

Definition at line 44 of file Transaction.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ query

std::variant<std::unique_ptr<PreparedStatementBase>, std::string> TransactionData::query

Definition at line 34 of file Transaction.h.


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