libpqxx  7.2.0
isolation.hxx
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-2020, 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 #include "pqxx/compiler-public.hxx"
15 #include "pqxx/internal/compiler-internal-pre.hxx"
16 
17 #include "pqxx/util.hxx"
18 
19 namespace pqxx
20 {
22 
25 enum class write_policy
26 {
27  read_only,
29 };
30 
31 
33 
65 {
66  // PostgreSQL only has the better isolation levels.
67  // read_uncommitted,
68 
72 };
73 } // namespace pqxx
74 
75 #include "pqxx/internal/compiler-internal-post.hxx"
76 #endif
Definition: isolation.hxx:71
Definition: isolation.hxx:70
The home of all libpqxx classes, functions, templates, etc.
Definition: array.hxx:25
write_policy
Should a transaction be read-only, or read-write?
Definition: isolation.hxx:25
Definition: isolation.hxx:69
isolation_level
Transaction isolation levels.
Definition: isolation.hxx:64