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;
67 register_transaction();
70 virtual ~nontransaction()
override { close(); }
73 virtual void do_commit()
override {}
Connection to a database.
Definition: connection.hxx:230
nontransaction(connection &c, std::string_view tname=""sv)
Constructor.
Definition: nontransaction.hxx:64
Simple "transaction" class offering no transactional integrity.
Definition: nontransaction.hxx:56
Interface definition (and common code) for "transaction" classes.
Definition: transaction_base.hxx:150
The home of all libpqxx classes, functions, templates, etc.
Definition: array.cxx:27