You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
603 B
32 lines
603 B
#include "MysqlConnectionPool.hpp"
|
|
|
|
#include "Logger.hpp"
|
|
|
|
|
|
MysqlConnectionPool::MysqlConnectionPool( const char *host,
|
|
const char *user,
|
|
const char *passwd,
|
|
const char *db )
|
|
: m_host(host)
|
|
, m_user(user)
|
|
, m_passwd(passwd)
|
|
, m_db(db)
|
|
{
|
|
TRACE;
|
|
}
|
|
|
|
MysqlConnectionPool::~MysqlConnectionPool()
|
|
{
|
|
TRACE;
|
|
}
|
|
|
|
|
|
void MysqlConnectionPool::create()
|
|
{
|
|
TRACE;
|
|
|
|
MysqlClient *client = new MysqlClient ( m_host, m_user, m_passwd, m_db );
|
|
client->connect();
|
|
add(client);
|
|
}
|