13#ifndef PQXX_H_NONTRANSACTION
14#define PQXX_H_NONTRANSACTION
16#if !defined(PQXX_HEADER_PRE)
17# error "Include libpqxx headers as <pqxx/header>, not <pqxx/header.hxx>."
20#include "pqxx/connection.hxx"
21#include "pqxx/result.hxx"
22#include "pqxx/transaction.hxx"
26using namespace std::literals;
55class PQXX_LIBEXPORT nontransaction final :
public transaction_base
64 nontransaction(connection &c, std::string_view tname =
""sv) :
65 transaction_base{c, tname, std::shared_ptr<std::string>{}}
67 register_transaction();
70 virtual ~nontransaction()
override { close(); }
73 virtual void do_commit()
override {}
The home of all libpqxx classes, functions, templates, etc.
Definition array.cxx:27