#include <tablewriter.h>
Inheritance diagram for pqxx::TableWriter:
Public Types | |
typedef unsigned | size_type |
Public Member Functions | |
TableWriter (TransactionItf &Trans, const PGSTD::string &WName) | |
~TableWriter () | |
template<typename IT> void | insert (IT Begin, IT End) |
template<typename TUPLE> void | insert (const TUPLE &) |
template<typename IT> void | push_back (IT Begin, IT End) |
template<typename TUPLE> void | push_back (const TUPLE &) |
void | reserve (size_type) |
template<typename TUPLE> TableWriter & | operator<< (const TUPLE &) |
TableWriter & | operator<< (TableReader &) |
template<typename IT> PGSTD::string | ezinekoT (IT Begin, IT End) const |
template<typename TUPLE> PGSTD::string | ezinekoT (const TUPLE &) const |
A TableWriter provides a Spartan but efficient way of writing data tuples into a table. It provides a plethora of STL-like insertion methods: it has insert() methods, push_back(), an overloaded insertion operator (<<), and it supports inserters created by std::back_inserter(). All of these are templatized so you can use any container type or iterator range to feed tuples into the table. Note that in each case, a container or range represents the fields of a single tuple--not a collection of tuples.
|
|
|
|
|
|
|
|
|
"Untokenize" a tuple of data to a string in DBMS-specific format. This is not portable between databases. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|