libpqxx/7.9.0

The official C++ client API for PostgreSQL
Recipe info
2024-02-18

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
libpqxx/7.9.0

Using libpqxx

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
libpqxx/7.9.0
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("libpqxx/7.9.0")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): libpqxx
  • CMake target name(s): libpqxx::pqxx
  • pqxx => libpqxx::pqxx
    
  • pkg-config file name(s): libpqxx.pc
  • pqxx => libpqxx.pc
    

A simple use case using the CMake file name and the global target:

# ...
find_package(libpqxx REQUIRED)
# ...
target_link_libraries(YOUR_TARGET libpqxx::pqxx)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the libpqxx homepage listed above:

#include "pqxx/array"
#include "pqxx/array.hxx"
#include "pqxx/binarystring"
#include "pqxx/binarystring.hxx"
#include "pqxx/blob"
#include "pqxx/blob.hxx"
#include "pqxx/composite"
#include "pqxx/composite.hxx"
#include "pqxx/config-public-compiler.h"
#include "pqxx/connection"
#include "pqxx/connection.hxx"
#include "pqxx/cursor"
#include "pqxx/cursor.hxx"
#include "pqxx/dbtransaction"
#include "pqxx/dbtransaction.hxx"
#include "pqxx/errorhandler"
#include "pqxx/errorhandler.hxx"
#include "pqxx/except"
#include "pqxx/except.hxx"
#include "pqxx/field"
#include "pqxx/field.hxx"
#include "pqxx/internal/array-composite.hxx"
#include "pqxx/internal/callgate.hxx"
#include "pqxx/internal/concat.hxx"
#include "pqxx/internal/conversions.hxx"
#include "pqxx/internal/encoding_group.hxx"
#include "pqxx/internal/encodings.hxx"
#include "pqxx/internal/gates/connection-errorhandler.hxx"
#include "pqxx/internal/gates/connection-largeobject.hxx"
#include "pqxx/internal/gates/connection-notification_receiver.hxx"
#include "pqxx/internal/gates/connection-pipeline.hxx"
#include "pqxx/internal/gates/connection-sql_cursor.hxx"
#include "pqxx/internal/gates/connection-stream_from.hxx"
#include "pqxx/internal/gates/connection-stream_to.hxx"
#include "pqxx/internal/gates/connection-transaction.hxx"
#include "pqxx/internal/gates/errorhandler-connection.hxx"
#include "pqxx/internal/gates/icursor_iterator-icursorstream.hxx"
#include "pqxx/internal/gates/icursorstream-icursor_iterator.hxx"
#include "pqxx/internal/gates/result-connection.hxx"
#include "pqxx/internal/gates/result-creation.hxx"
#include "pqxx/internal/gates/result-pipeline.hxx"
#include "pqxx/internal/gates/result-sql_cursor.hxx"
#include "pqxx/internal/gates/transaction-sql_cursor.hxx"
#include "pqxx/internal/gates/transaction-transaction_focus.hxx"
#include "pqxx/internal/header-post.hxx"
#include "pqxx/internal/header-pre.hxx"
#include "pqxx/internal/ignore-deprecated-post.hxx"
#include "pqxx/internal/ignore-deprecated-pre.hxx"
#include "pqxx/internal/libpq-forward.hxx"
#include "pqxx/internal/result_iter.hxx"
#include "pqxx/internal/result_iterator.hxx"
#include "pqxx/internal/sql_cursor.hxx"
#include "pqxx/internal/statement_parameters.hxx"
#include "pqxx/internal/stream_iterator.hxx"
#include "pqxx/internal/stream_query.hxx"
#include "pqxx/internal/stream_query_impl.hxx"
#include "pqxx/internal/wait.hxx"
#include "pqxx/isolation"
#include "pqxx/isolation.hxx"
#include "pqxx/largeobject"
#include "pqxx/largeobject.hxx"
#include "pqxx/nontransaction"
#include "pqxx/nontransaction.hxx"
#include "pqxx/notification"
#include "pqxx/notification.hxx"
#include "pqxx/params"
#include "pqxx/params.hxx"
#include "pqxx/pipeline"
#include "pqxx/pipeline.hxx"
#include "pqxx/pqxx"
#include "pqxx/prepared_statement"
#include "pqxx/prepared_statement.hxx"
#include "pqxx/range"
#include "pqxx/range.hxx"
#include "pqxx/result"
#include "pqxx/result.hxx"
#include "pqxx/robusttransaction"
#include "pqxx/robusttransaction.hxx"
#include "pqxx/row"
#include "pqxx/row.hxx"
#include "pqxx/separated_list"
#include "pqxx/separated_list.hxx"
#include "pqxx/strconv"
#include "pqxx/strconv.hxx"
#include "pqxx/stream_from"
#include "pqxx/stream_from.hxx"
#include "pqxx/stream_to"
#include "pqxx/stream_to.hxx"
#include "pqxx/subtransaction"
#include "pqxx/subtransaction.hxx"
#include "pqxx/time"
#include "pqxx/time.hxx"
#include "pqxx/transaction"
#include "pqxx/transaction.hxx"
#include "pqxx/transaction_base"
#include "pqxx/transaction_base.hxx"
#include "pqxx/transaction_focus"
#include "pqxx/transaction_focus.hxx"
#include "pqxx/transactor"
#include "pqxx/transactor.hxx"
#include "pqxx/types"
#include "pqxx/types.hxx"
#include "pqxx/util"
#include "pqxx/util.hxx"
#include "pqxx/version"
#include "pqxx/version.hxx"
#include "pqxx/zview"
#include "pqxx/zview.hxx"