2019-07-28 10:31:56 +08:00
|
|
|
#pragma once
|
2018-12-12 11:16:12 +08:00
|
|
|
#include "../acl_cpp_define.hpp"
|
|
|
|
#include "../db/db_pool.hpp"
|
|
|
|
|
2019-05-19 16:54:20 +08:00
|
|
|
#if !defined(ACL_CLIENT_ONLY) && !defined(ACL_DB_DISABLE)
|
2019-05-18 21:19:21 +08:00
|
|
|
|
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
|
2019-05-18 21:19:21 +08:00
|
|
|
|
2019-05-19 16:54:20 +08:00
|
|
|
#endif // !defined(ACL_CLIENT_ONLY) && !defined(ACL_DB_DISABLE)
|