Efficiently pull data directly out of a table.
More...
#include <stream_from.hxx>
Efficiently pull data directly out of a table.
◆ stream_from() [1/3]
pqxx::stream_from::stream_from |
( |
transaction_base & |
tb, |
|
|
std::string_view |
table_name |
|
) |
| |
◆ stream_from() [2/3]
template<typename Columns >
pqxx::stream_from::stream_from |
( |
transaction_base & |
tb, |
|
|
std::string_view |
table_name, |
|
|
Columns const & |
columns |
|
) |
| |
◆ stream_from() [3/3]
template<typename Iter >
pqxx::stream_from::stream_from |
( |
transaction_base & |
tb, |
|
|
std::string_view |
table_name, |
|
|
Iter |
columns_begin, |
|
|
Iter |
columns_end |
|
) |
| |
◆ ~stream_from()
pqxx::stream_from::~stream_from |
( |
| ) |
|
|
noexcept |
◆ complete()
void pqxx::stream_from::complete |
( |
| ) |
|
Finish this stream. Call this before continuing to use the connection.
Consumes all remaining lines, and closes the stream.
This may take a while if you're abandoning the stream before it's done, so skip it in error scenarios where you're not planning to use the connection again afterwards.
◆ get_raw_line()
bool pqxx::stream_from::get_raw_line |
( |
std::string & |
line | ) |
|
◆ iter()
template<typename... TYPE>
auto pqxx::stream_from::iter |
( |
| ) |
|
Iterate over this stream. Supports range-based "for" loops.
Produces an input iterator over the stream.
Do not call this yourself. Use it like "for (auto data : stream.iter())".
◆ operator bool()
pqxx::stream_from::operator bool |
( |
| ) |
const |
|
noexcept |
◆ operator!()
bool pqxx::stream_from::operator! |
( |
| ) |
const |
|
noexcept |
◆ operator>>() [1/2]
template<typename... Vs>
stream_from& pqxx::stream_from::operator>> |
( |
std::variant< Vs... > & |
| ) |
|
|
delete |
Doing this with a std::variant
is going to be horrifically borked.
◆ operator>>() [2/2]
template<typename Tuple >
stream_from & pqxx::stream_from::operator>> |
( |
Tuple & |
t | ) |
|
The documentation for this class was generated from the following files: