DDraceNetwork Docs
mysql.cpp File Reference
#include "connection.h"
#include <engine/server/databases/connection_pool.h>
#include <mysql.h>
#include <base/tl/threading.h>
#include <engine/console.h>
#include <atomic>
#include <memory>
#include <vector>
Include dependency graph for mysql.cpp:

Classes

class  CMysqlConnection
 
class  CMysqlConnection::CStmtDeleter
 
union  CMysqlConnection::UParameterExtra
 

Enumerations

enum  { MYSQLSTATE_UNINITIALIZED , MYSQLSTATE_INITIALIZED , MYSQLSTATE_SHUTTINGDOWN }
 

Functions

bool MysqlAvailable ()
 
int MysqlInit ()
 
void MysqlUninit ()
 
std::unique_ptr< IDbConnectionCreateMysqlConnection (CMysqlConfig Config)
 

Variables

std::atomic_int g_MysqlState = {MYSQLSTATE_UNINITIALIZED}
 
std::atomic_int g_MysqlNumConnections
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MYSQLSTATE_UNINITIALIZED 
MYSQLSTATE_INITIALIZED 
MYSQLSTATE_SHUTTINGDOWN 

Function Documentation

◆ CreateMysqlConnection()

std::unique_ptr< IDbConnection > CreateMysqlConnection ( CMysqlConfig  Config)

◆ MysqlAvailable()

bool MysqlAvailable ( )

◆ MysqlInit()

int MysqlInit ( )

◆ MysqlUninit()

void MysqlUninit ( )

Variable Documentation

◆ g_MysqlNumConnections

std::atomic_int g_MysqlNumConnections

◆ g_MysqlState

std::atomic_int g_MysqlState = {MYSQLSTATE_UNINITIALIZED}