libpqxx
The C++ client library for PostgreSQL
version.hxx
Go to the documentation of this file.
1 /* Version info for libpqxx.
2  *
3  * DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/version instead.
4  *
5  * Copyright (c) 2000-2026, 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_VERSION_HXX
12 #define PQXX_VERSION_HXX
13 
14 #if !defined(PQXX_HEADER_PRE)
15 # error "Include libpqxx headers as <pqxx/header>, not <pqxx/header.hxx>."
16 #endif
17 
18 #include <string_view>
19 
20 
21 namespace pqxx
22 {
24 constexpr inline std::string_view const version{"8.0.1"};
25 
26 
28 
34 constexpr inline std::string_view const abi_version{"8.0"};
35 
36 
38 constexpr inline int const version_major{8};
39 
40 
42 constexpr inline int const version_minor{0};
43 
44 
46 
49 constexpr inline int const version_patch{1};
50 } // namespace pqxx
51 
52 
53 // NOLINTBEGIN(modernize-macro-to-enum)
54 
56 #define PQXX_VERSION "8.0.1"
58 #define PQXX_ABI "8.0"
60 #define PQXX_VERSION_MAJOR 8
62 #define PQXX_VERSION_MINOR 0
63 
64 // NOLINTEND(modernize-macro-to-enum)
65 
66 #endif
The home of all libpqxx classes, functions, templates, etc.
Definition: array.cxx:26
constexpr std::string_view const abi_version
Libpqxx ABI version string: major and minor version, but no patch.
Definition: version.hxx:34
constexpr int const version_patch
Libpqxx patch version number. (E.g. for libpqxx 9.3.1, this will be 1.)
Definition: version.hxx:49
constexpr int const version_minor
Minor libpqxx version number. (E.g. for libpqxx 9.3.1, this will be 3.)
Definition: version.hxx:42
constexpr int const version_major
Major libpqxx version number. (E.g. for libpqxx 9.3.1, this will be 9.)
Definition: version.hxx:38
constexpr std::string_view const version
Full libpqxx version string.
Definition: version.hxx:24