C++ client library for connecting to and querying PostgreSQL databases
C++ connector for PostgreSQL
libpqxx
$ g++ -o myapp myapp.cpp -lpqxx -lpq
$ echo '#include <pqxx/pqxx>' > test.cpp
$ pkg-config --modversion libpqxx