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;
60class PQXX_LIBEXPORT nontransaction final :
public transaction_base
69 nontransaction(connection &cx, std::string_view tname =
""sv) :
70 transaction_base{cx, tname, std::shared_ptr<std::string>{}}
72 register_transaction();
75 virtual ~nontransaction()
override { close(); }
78 virtual void do_commit()
override {}
The home of all libpqxx classes, functions, templates, etc.
Definition array.cxx:27