#include <mysqlpools.h>
Inherits PoolElementFactory< MYSQL * >.
Public Member Functions | |
MySqlConnectionFactory () | |
MYSQL * | create () |
Creates an element. | |
void | destroy (MYSQL *) |
Destroys an element. | |
bool | isValid (MYSQL *) |
Check it is still valid. | |
Public Attributes | |
std::string | host |
unsigned int | port |
std::string | user |
std::string | passwd |
int | dirspacereportdepth |
Factory for mysql connections This is just mechanics of how the Poolcontainer class works and wraps the creation of the actual mysql conns
dmlite::MySqlConnectionFactory::MySqlConnectionFactory | ( | ) |
MYSQL* dmlite::MySqlConnectionFactory::create | ( | ) | [virtual] |
Creates an element.
Implements dmlite::PoolElementFactory< MYSQL * >.
void dmlite::MySqlConnectionFactory::destroy | ( | MYSQL * | ) | [virtual] |
Destroys an element.
Implements dmlite::PoolElementFactory< MYSQL * >.
bool dmlite::MySqlConnectionFactory::isValid | ( | MYSQL * | ) | [virtual] |
Check it is still valid.
Implements dmlite::PoolElementFactory< MYSQL * >.
std::string dmlite::MySqlConnectionFactory::host |
std::string dmlite::MySqlConnectionFactory::passwd |
unsigned int dmlite::MySqlConnectionFactory::port |
std::string dmlite::MySqlConnectionFactory::user |