#include <tablestream.hxx>
Inheritance diagram for pqxx::tablestream:
Public Member Functions | |
tablestream (transaction_base &Trans, const PGSTD::string &Name, const PGSTD::string &Null=PGSTD::string(), const char Classname[]="tablestream") | |
virtual | ~tablestream ()=0 throw () |
virtual void | complete ()=0 |
Finish stream action, check for errors, and detach from transaction. | |
Protected Member Functions | |
const PGSTD::string & | NullStr () const |
bool | is_finished () const throw () |
void | base_close () |
Static Protected Member Functions | |
template<typename ITER> | |
PGSTD::string | columnlist (ITER colbegin, ITER colend) |
Construct a comma-separated column list from given sequence. |
A Tablestream enables optimized batch read or write access to a database table using PostgreSQL's COPY TO STDOUT and COPY FROM STDIN commands, respectively. These capabilities are implemented by its subclasses tablereader and tablewriter.
A Tablestream exists in the context of a transaction, and no other streams or queries may be applied to that transaction as long as the stream remains open.
|
|
|
|
|
|
|
Construct a comma-separated column list from given sequence.
|
|
Finish stream action, check for errors, and detach from transaction. It is recommended that you call this function before the tablestream's destructor is run. This function will check any final errors which may not become apparent until the transaction is committed otherwise. As an added benefit, this will free up the transaction while the tablestream object itself still exists. Implemented in pqxx::tablereader, and pqxx::tablewriter. |
|
|
|
|