libpqxx  7.7.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-2022, 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/util.hxx"
15 
16 namespace pqxx
17 {
19 
22 enum class write_policy
23 {
24  read_only,
26 };
27 
28 
30 
62 {
63  // PostgreSQL only has the better isolation levels.
64  // read_uncommitted,
65 
69 };
70 } // namespace pqxx
71 #endif
Definition: isolation.hxx:67
write_policy
Should a transaction be read-only, or read-write?
Definition: isolation.hxx:22
Definition: isolation.hxx:68
isolation_level
Transaction isolation levels.
Definition: isolation.hxx:61
The home of all libpqxx classes, functions, templates, etc.
Definition: array.hxx:22
Definition: isolation.hxx:66