Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Skyfire::DatabaseQueue Class Reference

#include <DatabaseQueue.h>

Classes

struct  Impl

Public Member Functions

void close ()
 DatabaseQueue ()
void enqueue (SQLOperation *operation)
int run (MySQLConnection *connection)
void wait ()
 ~DatabaseQueue ()

Private Member Functions

void BindConnection (MySQLConnection *connection)
void ClearConnection ()
 DatabaseQueue (DatabaseQueue const &right)=delete
Asio::IoContextExecutorGetExecutor ()
DatabaseQueueoperator= (DatabaseQueue const &right)=delete

Private Attributes

std::unique_ptr< Impl_impl

Friends

class ::DatabaseWorker

Detailed Description

Definition at line 22 of file DatabaseQueue.h.

Constructor & Destructor Documentation

◆ DatabaseQueue() [1/2]

Skyfire::DatabaseQueue::DatabaseQueue ( )

Definition at line 33 of file DatabaseQueue.cpp.

References _impl.

Referenced by DatabaseQueue(), and operator=().

◆ ~DatabaseQueue()

Skyfire::DatabaseQueue::~DatabaseQueue ( )

Definition at line 38 of file DatabaseQueue.cpp.

References close().

◆ DatabaseQueue() [2/2]

Skyfire::DatabaseQueue::DatabaseQueue ( DatabaseQueue const & right)
privatedelete

References DatabaseQueue().

Member Function Documentation

◆ BindConnection()

void Skyfire::DatabaseQueue::BindConnection ( MySQLConnection * connection)
private

Definition at line 107 of file DatabaseQueue.cpp.

Referenced by run().

◆ ClearConnection()

void Skyfire::DatabaseQueue::ClearConnection ( )
private

Definition at line 112 of file DatabaseQueue.cpp.

Referenced by run().

◆ close()

void Skyfire::DatabaseQueue::close ( )

Definition at line 72 of file DatabaseQueue.cpp.

References _impl.

Referenced by ~DatabaseQueue().

◆ enqueue()

void Skyfire::DatabaseQueue::enqueue ( SQLOperation * operation)

Definition at line 43 of file DatabaseQueue.cpp.

References _impl, SQLOperation::call(), and SQLOperation::SetConnection().

◆ GetExecutor()

Asio::IoContextExecutor & Skyfire::DatabaseQueue::GetExecutor ( )
private

Definition at line 102 of file DatabaseQueue.cpp.

References _impl.

◆ operator=()

DatabaseQueue & Skyfire::DatabaseQueue::operator= ( DatabaseQueue const & right)
privatedelete

References DatabaseQueue().

◆ run()

int Skyfire::DatabaseQueue::run ( MySQLConnection * connection)

Definition at line 61 of file DatabaseQueue.cpp.

References _impl, BindConnection(), and ClearConnection().

◆ wait()

void Skyfire::DatabaseQueue::wait ( )

Definition at line 82 of file DatabaseQueue.cpp.

References _impl.

◆ ::DatabaseWorker

friend class ::DatabaseWorker
friend

Definition at line 42 of file DatabaseQueue.h.

Member Data Documentation

◆ _impl

std::unique_ptr<Impl> Skyfire::DatabaseQueue::_impl
private

Definition at line 36 of file DatabaseQueue.h.

Referenced by close(), DatabaseQueue(), enqueue(), GetExecutor(), run(), and wait().


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