12 #if !defined(PQXX_HEADER_PRE)
13 # error "Include libpqxx headers as <pqxx/header>, not <pqxx/header.hxx>."
20 #if defined(PQXX_HAVE_CONCEPTS) && __has_include(<ranges>)
50 class const_result_iterator;
51 class const_reverse_result_iterator;
90 template<
typename TYPE>
91 using strip_t = std::remove_cv_t<std::remove_reference_t<TYPE>>;
94 #if defined(PQXX_HAVE_CONCEPTS)
99 template<std::ranges::range CONTAINER>
106 template<
typename CONTAINER>
111 #if defined(PQXX_HAVE_CONCEPTS)
113 template<
typename STRING>
114 concept char_string = std::ranges::contiguous_range<STRING> and
115 std::same_as < strip_t<value_type<STRING>>,
119 template<
typename RANGE>
120 concept char_strings =
121 std::ranges::range<RANGE> and char_string<strip_t<value_type<RANGE>>>;
124 template<
typename DATA>
125 concept potential_binary = std::ranges::contiguous_range<DATA> and
131 #if defined(PQXX_HAVE_CONCEPTS)
137 # define PQXX_RANGE_ARG std::ranges::range
143 # define PQXX_CHAR_STRING_ARG pqxx::char_string
149 # define PQXX_CHAR_STRINGS_ARG pqxx::char_strings
157 # define PQXX_RANGE_ARG typename
163 # define PQXX_CHAR_STRING_ARG typename
169 # define PQXX_CHAR_STRINGS_ARG typename
The home of all libpqxx classes, functions, templates, etc.
Definition: array.hxx:33
int row_size_type
Number of fields in a row of database data.
Definition: types.hxx:34
std::remove_cv_t< std::remove_reference_t< TYPE > > strip_t
Remove any constness, volatile, and reference-ness from a type.
Definition: types.hxx:91
int row_difference_type
Difference between row sizes.
Definition: types.hxx:37
std::size_t field_size_type
Number of bytes in a field of database data.
Definition: types.hxx:40
int result_difference_type
Difference between result sizes.
Definition: types.hxx:31
strip_t< decltype(*std::begin(std::declval< CONTAINER >()))> value_type
The type of a container's elements.
Definition: types.hxx:107
int result_size_type
Number of rows in a result set.
Definition: types.hxx:28
int64_t large_object_size_type
Number of bytes in a large object.
Definition: types.hxx:43
format
Format code: is data text or binary?
Definition: types.hxx:81
Binary data corresponding to PostgreSQL's "BYTEA" binary-string type.
Definition: binarystring.hxx:59
Connection to a database.
Definition: connection.hxx:250
Abstract transaction base class: bracket transactions on the database.
Definition: dbtransaction.hxx:54
Something is out of range, similar to std::out_of_range.
Definition: except.hxx:305
Reference to a field in a result set.
Definition: field.hxx:35
Accessor for large object's contents.
Definition: largeobject.hxx:154
Definition: notification.hxx:57
Result set containing data returned by a query or command.
Definition: result.hxx:73
Reference to one row in a result.
Definition: row.hxx:47
Iterator for fields in a row. Use as row::const_iterator.
Definition: row.hxx:283
Reverse iterator for a row. Use as row::const_reverse_iterator.
Definition: row.hxx:404
Stream data from the database.
Definition: stream_from.hxx:79
Interface definition (and common code) for "transaction" classes.
Definition: transaction_base.hxx:88
Marker for stream_from constructors: "stream from table.".
Definition: types.hxx:68
Marker for stream_from constructors: "stream from query.".
Definition: types.hxx:74