PostgreSQL简单封装

来源:互联网 发布:sql server intersect 编辑:程序博客网 时间:2024/06/16 11:35

工作需要,虽然有libpqxx,但是目前为了刚刚够用,尽量不要引入第三方库。在网上找到简单的封装http://www.touspassagers.com/2010/12/a-postgresql-database-interface-wrapper-in-c/

 

直接贴上代码:

 

使用代码:

 

原创粉丝点击