pgstream is a C++ library that is built on top of
libpq for PostgreSQL v7.4 or higher. It aims at
providing programmers an easier interface than the
libpq C API when using C++. It provides classes
that support parameterized queries, exceptions for
catching database errors, transactions and
subtransactions, reading and writing bytea
columns, using prepared statements, SQL cursors,
and more.