libpqxx
The C++ client library for PostgreSQL
row_ref-result.hxx
Go to the documentation of this file.
2 
3 namespace pqxx
4 {
5 class row_ref;
6 } // namespace pqxx
7 
8 
9 namespace pqxx::internal::gate
10 {
11 class PQXX_PRIVATE row_ref_result final : callgate<row_ref const>
12 {
13  friend class pqxx::result;
14 
15  constexpr row_ref_result(reference x) noexcept : super(x) {}
16 
17  template<typename TUPLE> [[nodiscard]] TUPLE as_tuple(sl loc) const
18  {
19  return home().as_tuple<TUPLE>(loc);
20  }
21 };
22 } // namespace pqxx::internal::gate
Base class for call gates.
Definition: callgate.hxx:55
row_ref const & reference
A reference to the host class. Helps keep constructors easy.
Definition: callgate.hxx:60
Definition: row_ref-result.hxx:12
Result set containing data returned by a query or command.
Definition: result.hxx:98
#define PQXX_PRIVATE
Definition: header-pre.hxx:206
Definition: connection.hxx:94
The home of all libpqxx classes, functions, templates, etc.
Definition: array.cxx:26
std::source_location sl
Convenience alias for std::source_location. It's just too long.
Definition: types.hxx:38