libpqxx
The C++ client library for PostgreSQL
connection-stream_from.hxx
Go to the documentation of this file.
1 #ifndef PQXX_INTERNAL_GATES_CONNECTION_STREAM_FROM_HXX
2 #define PQXX_INTERNAL_GATES_CONNECTION_STREAM_FROM_HXX
3 
5 
6 namespace pqxx::internal
7 {
8 template<typename... TYPE> class stream_query;
9 } // namespace pqxx::internal
10 
11 
12 #include "pqxx/connection.hxx"
13 
14 namespace pqxx::internal::gate
15 {
16 class PQXX_PRIVATE connection_stream_from final : callgate<connection>
17 {
18  friend class pqxx::stream_from;
19  template<typename... TYPE> friend class pqxx::internal::stream_query;
20 
21  explicit constexpr connection_stream_from(reference x) noexcept : super{x} {}
22 
23  auto read_copy_line(sl loc) { return home().read_copy_line(loc); }
24 };
25 } // namespace pqxx::internal::gate
26 #endif
Connection to a database.
Definition: connection.hxx:273
Base class for call gates.
Definition: callgate.hxx:55
Definition: connection-stream_from.hxx:17
Stream query results from the database. Used by transaction_base::stream.
Definition: stream_query.hxx:68
Stream data from the database.
Definition: stream_from.hxx:79
#define PQXX_PRIVATE
Definition: header-pre.hxx:207
Definition: connection.hxx:94
Private namespace for libpqxx's internal use; do not access.
Definition: connection.cxx:333
std::source_location sl
Convenience alias for std::source_location. It's just too long.
Definition: types.hxx:38