libpqxx
The C++ client library for PostgreSQL
row_ref-result.hxx
Go to the documentation of this file.
1 #ifndef PQXX_INTERNAL_GATES_ROW_REF_RESULT_HXX
2 #define PQXX_INTERNAL_GATES_ROW_REF_RESULT_HXX
3 
5 
6 namespace pqxx
7 {
8 class row_ref;
9 } // namespace pqxx
10 
11 
12 namespace pqxx::internal::gate
13 {
14 class PQXX_PRIVATE row_ref_result final : callgate<row_ref const>
15 {
16  friend class pqxx::result;
17 
18  explicit constexpr row_ref_result(reference x) noexcept : super(x) {}
19 
20  template<typename TUPLE> [[nodiscard]] TUPLE as_tuple(sl loc) const
21  {
22  return home().as_tuple<TUPLE>(loc);
23  }
24 };
25 } // namespace pqxx::internal::gate
26 #endif
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:15
Result set containing data returned by a query or command.
Definition: result.hxx:101
#define PQXX_PRIVATE
Definition: header-pre.hxx:207
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