libpqxx
The C++ client library for PostgreSQL
Toggle main menu visibility
Loading...
Searching...
No Matches
isolation.hxx
Go to the documentation of this file.
1
/* Definitions for transaction isolation levels, and such.
2
*
3
* DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/isolation instead.
4
*
5
* Copyright (c) 2000-2025, Jeroen T. Vermeulen.
6
*
7
* See COPYING for copyright license. If you did not receive a file called
8
* COPYING with this source code, please notify the distributor of this
9
* mistake, or contact the author.
10
*/
11
#ifndef PQXX_H_ISOLATION
12
#define PQXX_H_ISOLATION
13
14
#if !defined(PQXX_HEADER_PRE)
15
# error "Include libpqxx headers as <pqxx/header>, not <pqxx/header.hxx>."
16
#endif
17
18
#include "
pqxx/util.hxx
"
19
20
namespace
pqxx
21
{
23
26
enum class
write_policy
27
{
28
read_only
,
29
read_write
30
};
31
32
34
65
enum
isolation_level
66
{
67
// PostgreSQL only has the better isolation levels.
68
// read_uncommitted,
69
70
read_committed
,
71
repeatable_read
,
72
serializable
,
73
};
74
}
// namespace pqxx
75
#endif
pqxx
The home of all libpqxx classes, functions, templates, etc.
Definition
array.cxx:27
pqxx::write_policy
write_policy
Should a transaction be read-only, or read-write?
Definition
isolation.hxx:27
pqxx::write_policy::read_write
@ read_write
Definition
isolation.hxx:29
pqxx::write_policy::read_only
@ read_only
Definition
isolation.hxx:28
pqxx::isolation_level
isolation_level
Transaction isolation levels.
Definition
isolation.hxx:66
pqxx::serializable
@ serializable
Definition
isolation.hxx:72
pqxx::read_committed
@ read_committed
Definition
isolation.hxx:70
pqxx::repeatable_read
@ repeatable_read
Definition
isolation.hxx:71
util.hxx
include
pqxx
isolation.hxx
Generated by
1.17.0