libpqxx 7.9.0
dbtransaction.hxx
1/* Definition of the pqxx::dbtransaction abstract base class.
2 *
3 * pqxx::dbransaction defines a real transaction on the database.
4 *
5 * DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/dbtransaction instead.
6 *
7 * Copyright (c) 2000-2024, Jeroen T. Vermeulen.
8 *
9 * See COPYING for copyright license. If you did not receive a file called
10 * COPYING with this source code, please notify the distributor of this
11 * mistake, or contact the author.
12 */
13#ifndef PQXX_H_DBTRANSACTION
14#define PQXX_H_DBTRANSACTION
15
16#if !defined(PQXX_HEADER_PRE)
17# error "Include libpqxx headers as <pqxx/header>, not <pqxx/header.hxx>."
18#endif
19
20#include "pqxx/transaction_base.hxx"
21
22namespace pqxx
23{
25
54{
55protected:
59 dbtransaction(connection &c, std::string_view tname) :
61 {}
64 connection &c, std::string_view tname,
65 std::shared_ptr<std::string> rollback_cmd) :
67 {}
68};
69} // namespace pqxx
70#endif
The home of all libpqxx classes, functions, templates, etc.
Definition array.hxx:33
constexpr char array_separator
Element separator between SQL array elements of this type.
Definition strconv.hxx:557
Connection to a database.
Definition connection.hxx:233
Abstract transaction base class: bracket transactions on the database.
Definition dbtransaction.hxx:54
dbtransaction(connection &c, std::string_view tname, std::shared_ptr< std::string > rollback_cmd)
Begin transaction.
Definition dbtransaction.hxx:63
dbtransaction(connection &c)
Begin transaction.
Definition dbtransaction.hxx:57
dbtransaction(connection &c, std::string_view tname)
Begin transaction.
Definition dbtransaction.hxx:59
Interface definition (and common code) for "transaction" classes.
Definition transaction_base.hxx:88