krepver/libpqxx

Project ID: 25684

Description

Building latest libpqxx

Installation Instructions

Install

sudo dnf copr enable krepver/libpqxx sudo dnf update --refresh sudo dnf install libpqxx

Optional

sudo dnf install libpqxx-devel

Usage

main.cpp

#include <iostream> #include <pqxx/pqxx> using namespace pqxx; int main() { connection conn; nontransaction query(conn); auto res = query.exec("SELECT 1"); std::cout << res.size() << std::endl; return 0; }

CMakeLists.txt

cmake_minimum_required(VERSION 3.14) project(testpqxx) set(CMAKE_CXX_STANDARD 17) find_package(libpqxx 6.4 REQUIRED COMPONENTS pqxx) add_executable(testpqxx main.cpp) target_link_libraries(testpqxx PRIVATE libpqxx::pqxx_shared)

Active Releases

The following unofficial repositories are provided as-is by owner of this project. Contact the owner directly for bugs or issues (IE: not bugzilla).

Release Architectures Repo Download
Fedora 35 x86_64 (24)* Fedora 35 (0 downloads)
Fedora 36 x86_64 (24)* Fedora 36 (7 downloads)
Fedora 37 x86_64 (24)* Fedora 37 (1 downloads)
Fedora rawhide x86_64 (24)* Fedora rawhide (30 downloads)

* Total number of packages downloaded in the last seven days.