Registry / database / libodb-pgsql

libodb-pgsql

JSON →
library2.4.0vcpkgunverified

PostgreSQL support for the ODB ORM library.

vcpkg install libodb-pgsql
INSTALL
IMPORT
SIG · LIBODB-PGSQL
L
libodb-pgsql
databasecppv2.4.0
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.

odb/pgsql/database.hxx
#include <odb/pgsql/database.hxx>

Create a PostgreSQL database connection using ODB

#include <odb/pgsql/database.hxx> #include <iostream> int main() { auto db = std::make_shared<odb::pgsql::database>("user", "password", "dbname", "host"); std::cout << "ODB PostgreSQL database created" << std::endl; return 0; }
Debug
Known issues
gotchaRequires ODB compiler (odbc) to generate database support code from headers
fix
Run odb compiler on your persistent classes before building; add custom command in CMake
affects: *
Upgrade
Version history
2.4.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
Resources

No resource links recorded.

libodb-pgsql — pip install libodb-pgsql · libregistry