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