Registry / database / libpqxx

libpqxx

JSON →
library8.0.1vcpkgunverified

The official* C++ client API for PostgreSQL. *) NB https://pqxx.org/libpqxx/faq/

vcpkg install libpqxx
INSTALL
IMPORT
SIG · LIBPQXX
L
libpqxx
databasecppv8.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pqxx/pqxx
#include <pqxx/pqxx>

Connect to PostgreSQL and execute a simple query

#include "pqxx/pqxx" #include <iostream> int main() { try { pqxx::connection conn("dbname=test user=postgres"); pqxx::work txn(conn); pqxx::result res = txn.exec("SELECT 1"); std::cout << "Result: " << res[0][0].as<int>() << std::endl; txn.commit(); } catch (const std::exception& e) { std::cerr << e.what() << std::endl; } return 0; }
Debug
Known issues
gotchalibpqxx requires libpq (PostgreSQL client library) to be installed separately.
fix
Install libpq-dev or postgresql-devel via your system package manager.
affects: *
Upgrade
Version history
8.0.1latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

libpqxx — pip install libpqxx · libregistry