libpqxx
The C++ client library for PostgreSQL
Loading...
Searching...
No Matches
transactor.hxx File Reference
#include <functional>
#include <type_traits>
#include "pqxx/connection.hxx"
#include "pqxx/transaction.hxx"

Go to the source code of this file.

Namespaces

namespace  pqxx
 The home of all libpqxx classes, functions, templates, etc.

Functions

template<typename TRANSACTION_CALLBACK>
auto pqxx::perform (TRANSACTION_CALLBACK &&callback, int attempts=3) -> std::invoke_result_t< TRANSACTION_CALLBACK >
 Simple way to execute a transaction with automatic retry.