13#ifndef PQXX_H_STREAM_TO
14#define PQXX_H_STREAM_TO
16#include "pqxx/compiler-public.hxx"
17#include "pqxx/compiler-internal-pre.hxx"
18#include "pqxx/transaction_base.hxx"
19#include "pqxx/stream_base.hxx"
20#include "pqxx/stream_from.hxx"
21#include "pqxx/internal/type_utils.hxx"
75 const std::string &table_name,
76 const Columns& columns
82 const std::string &table_name,
96 void complete()
override;
117 void write_raw_line(
const std::string &);
122 const std::string &table_name,
123 const std::string &columns
126 void close()
override;
132 const std::string &table_name,
133 const Columns& columns
145 const std::string &table_name,
149 namedclass{
"stream_from", table_name},
165 static std::string
escape(
const std::string &);
167 template<
typename T> std::string
operator()(
const T* t)
const
174template<>
inline std::string TypedCopyEscaper::operator()<std::nullptr_t>(
175 const std::nullptr_t*
191#include "pqxx/compiler-internal-post.hxx"
The home of all libpqxx classes, functions, templates, etc.
Definition: array.hxx:26
std::basic_ostream< CHAR > & operator<<(std::basic_ostream< CHAR > &S, const field &F)
Write a result field to any type of stream.
Definition: field.hxx:355
std::string to_string(const field &Obj)
Convert a field to a string.
Definition: result.cxx:451
std::string separated_list(const std::string &sep, ITER begin, ITER end, ACCESS access)
Represent sequence of values as a string, joined by a given separator.
Definition: util.hxx:95
std::string escape(const std::string &s, const std::string &null)
Definition: tablewriter.cxx:131
Traits class for use in string conversions.
Definition: strconv.hxx:51
Definition: stream_base.hxx:29
static std::string columnlist(const C &)
Definition: stream_base.hxx:48
Efficiently pull data directly out of a table.
Definition: stream_from.hxx:30
Efficiently write data directly to a database table.
Definition: stream_to.hxx:60
stream_to(transaction_base &, const std::string &table_name)
Create a stream, without specifying columns.
Definition: stream_to.cxx:18
stream_to & operator<<(const Tuple &)
Insert a row of data.
Definition: stream_to.hxx:182
Definition: stream_to.hxx:164
std::string operator()(const T *t) const
Definition: stream_to.hxx:167
Interface definition (and common code) for "transaction" classes.
Definition: transaction_base.hxx:138