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.
35 lines
722 B
35 lines
722 B
13 years ago
|
#ifndef MYSQL_CONNECTION_POOL_HPP
|
||
|
#define MYSQL_CONNECTION_POOL_HPP
|
||
|
|
||
|
#include "ObjectPool.hpp"
|
||
|
#include "MysqlClient.hpp"
|
||
|
|
||
|
|
||
|
class MysqlConnectionPool : public ObjectPool<MysqlClient *>
|
||
|
{
|
||
|
public:
|
||
|
|
||
13 years ago
|
MysqlConnectionPool( const char *host = NULL,
|
||
13 years ago
|
const char *user = NULL,
|
||
|
const char *passwd = NULL,
|
||
13 years ago
|
const char *db = NULL );
|
||
|
~MysqlConnectionPool();
|
||
|
|
||
|
void create();
|
||
|
|
||
|
|
||
|
private:
|
||
|
|
||
|
MysqlConnectionPool(const MysqlConnectionPool&);
|
||
|
MysqlConnectionPool& operator=(const MysqlConnectionPool&);
|
||
|
|
||
|
const char *m_host;
|
||
|
const char *m_user;
|
||
|
const char *m_passwd;
|
||
|
const char *m_db;
|
||
13 years ago
|
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif // MYSQL_CONNECTION_POOL_HPP
|