libpqxx
The C++ client library for PostgreSQL
Toggle main menu visibility
Loading...
Searching...
No Matches
dbtransaction.hxx
Go to the documentation of this file.
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-2025, 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
22
namespace
pqxx
23
{
25
53
class
PQXX_LIBEXPORT
PQXX_NOVTABLE
dbtransaction :
public
transaction_base
54
{
55
protected
:
57
explicit
dbtransaction(connection &cx) : transaction_base{cx} {}
59
dbtransaction(connection &cx, std::string_view tname) :
60
transaction_base{cx, tname}
61
{}
63
dbtransaction(
64
connection &cx, std::string_view tname,
65
std::shared_ptr<std::string> rollback_cmd) :
66
transaction_base{cx, tname, rollback_cmd}
67
{}
68
};
69
}
// namespace pqxx
70
#endif
PQXX_LIBEXPORT
#define PQXX_LIBEXPORT
Definition
header-pre.hxx:157
PQXX_NOVTABLE
#define PQXX_NOVTABLE
Definition
header-pre.hxx:172
pqxx
The home of all libpqxx classes, functions, templates, etc.
Definition
array.cxx:27
transaction_base.hxx
include
pqxx
dbtransaction.hxx
Generated by
1.17.0