ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
npostgresql.cpp File Reference

实现PostgreSQL连接生命周期管理和查询执行 More...

#include "tools/db/sql/postgresql/npostgresql.h"
#include "actor/protocol/nprotocol.h"
#include "tools/log/nlog.h"
#include <iostream>

Detailed Description

实现PostgreSQL连接生命周期管理和查询执行

基于libpq封装的PostgreSQL客户端,提供:

  1. 连接建立和关闭
  2. 普通SQL命令执行(PQexec)
  3. 参数化查询及结果集回调(PQexecParams)
See also
npostgresql.h