libpqxx
The C++ client library for PostgreSQL
connection-stream_to.hxx
1 #include <pqxx/internal/callgate.hxx>
2 
3 #include "pqxx/stream_to.hxx"
4 
5 
6 namespace pqxx::internal::gate
7 {
8 class PQXX_PRIVATE connection_stream_to : callgate<connection>
9 {
10  friend class pqxx::stream_to;
11 
13 
14  void write_copy_line(std::string_view line) { home().write_copy_line(line); }
15  void end_copy_write() { home().end_copy_write(); }
16 };
17 } // namespace pqxx::internal::gate
Definition: connection-stream_to.hxx:8
Efficiently write data directly to a database table.
Definition: stream_to.hxx:80
Definition: connection.hxx:106
Base class for call gates.
Definition: callgate.hxx:54
Connection to a database.
Definition: connection.hxx:278