1
0
mirror of https://gitee.com/acl-dev/acl.git synced 2024-12-15 17:30:53 +08:00
acl/lib_acl_cpp/include/acl_cpp/db/pgsql_pool.hpp

29 lines
512 B
C++
Raw Normal View History

#pragma once
2018-12-12 11:16:12 +08:00
#include "../acl_cpp_define.hpp"
#include "../db/db_pool.hpp"
#if !defined(ACL_CLIENT_ONLY) && !defined(ACL_DB_DISABLE)
2018-12-12 11:16:12 +08:00
namespace acl {
class db_handle;
class pgsql_conf;
class ACL_CPP_API pgsql_pool : public db_pool
{
public:
pgsql_pool(const pgsql_conf& conf);
~pgsql_pool(void);
protected:
// @override
connect_client* create_connect(void);
private:
pgsql_conf* conf_;
};
} // namespace acl
#endif // !defined(ACL_CLIENT_ONLY) && !defined(ACL_DB_DISABLE)