#include "connectionPool.h" #include template class AdHoc::ResourcePool; template class AdHoc::ResourceHandle; namespace DB { ConnectionPool::ConnectionPool(unsigned int m, unsigned int k, const std::string & t, const std::string & cs) : ResourcePool(m, k), factory(ConnectionFactory::get(t)), connectionString(cs) { } Connection * ConnectionPool::createResource() const { return factory->create(connectionString); } void ConnectionPool::testResource(const Connection * c) const { c->ping(); } }