Loading...
Searching...
No Matches
isolation.hxx
/* Definitions for transaction isolation levels, and such.
*
* DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/isolation instead.
*
* Copyright (c) 2000-2024, Jeroen T. Vermeulen.
*
* See COPYING for copyright license. If you did not receive a file called
* COPYING with this source code, please notify the distributor of this
* mistake, or contact the author.
*/
#ifndef PQXX_H_ISOLATION
#define PQXX_H_ISOLATION
#if !defined(PQXX_HEADER_PRE)
# error "Include libpqxx headers as <pqxx/header>, not <pqxx/header.hxx>."
#endif
#include "pqxx/util.hxx"
namespace pqxx
{
enum class write_policy
{
read_only,
read_write
};
enum isolation_level
{
// PostgreSQL only has the better isolation levels.
// read_uncommitted,
read_committed,
repeatable_read,
serializable,
};
} // namespace pqxx
#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::isolation_level
isolation_level
Transaction isolation levels.
Definition isolation.hxx:66