libpqxx
The C++ client library for PostgreSQL
connection-stream_to.hxx
Go to the documentation of this file.
1 #ifndef PQXX_INTERNAL_GATES_CONNECTION_STREAM_TO_HXX
2 #define PQXX_INTERNAL_GATES_CONNECTION_STREAM_TO_HXX
3 
5 
6 #include "pqxx/stream_to.hxx"
7 
8 
9 namespace pqxx::internal::gate
10 {
11 class PQXX_PRIVATE connection_stream_to final : callgate<connection>
12 {
13  friend class pqxx::stream_to;
14 
15  explicit constexpr connection_stream_to(reference x) noexcept : super(x) {}
16 
17  void write_copy_line(std::string_view line, sl loc)
18  {
19  home().write_copy_line(line, loc);
20  }
21  void end_copy_write(sl loc) { home().end_copy_write(loc); }
22 };
23 } // namespace pqxx::internal::gate
24 #endif
Connection to a database.
Definition: connection.hxx:273
Base class for call gates.
Definition: callgate.hxx:55
Definition: connection-stream_to.hxx:12
Efficiently write data directly to a database table.
Definition: stream_to.hxx:81
#define PQXX_PRIVATE
Definition: header-pre.hxx:207
Definition: connection.hxx:94
std::source_location sl
Convenience alias for std::source_location. It's just too long.
Definition: types.hxx:38