NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
pgsql_factory类 参考final

PostgreSQL连接工厂类 更多...

#include <pgsql_connect.hpp>

类 pgsql_factory 继承关系图:
[图例]

Public 成员函数

 pgsql_factory (db_config config)
 构造函数
 ~pgsql_factory () override=default
 析构函数
idb_connectcreate_connect () override
 创建PostgreSQL连接对象
idb_resultcreate_result (void *native_result) override
 创建PostgreSQL结果集对象
Public 成员函数 继承自 idb_factory
 idb_factory (db_config config)
 构造函数

额外继承的成员函数

Protected 属性 继承自 idb_factory
db_config config_
 数据库配置

详细描述

PostgreSQL连接工厂类

实现idb_factory接口,用于创建PostgreSQL连接和结果集对象。

在文件 pgsql_connect.hpp153 行定义.

构造及析构函数说明

◆ pgsql_factory()

pgsql_factory::pgsql_factory ( db_config config)
inlineexplicit

构造函数

参数
config数据库配置

在文件 pgsql_connect.hpp159 行定义.

引用了 idb_factory::idb_factory() , 以及 move().

成员函数说明

◆ create_connect()

idb_connect * pgsql_factory::create_connect ( )
overridevirtual

创建PostgreSQL连接对象

返回
连接对象指针

实现了 idb_factory.

◆ create_result()

idb_result * pgsql_factory::create_result ( void * native_result)
overridevirtual

创建PostgreSQL结果集对象

参数
native_result原生PGresult指针
返回
结果集对象指针

实现了 idb_factory.


该类的文档由以下文件生成: