Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

pqxx::TableWriter Class Reference

Efficiently write data directly to a database table. More...

#include <tablewriter.h>

Inheritance diagram for pqxx::TableWriter:

pqxx::TableStream List of all members.

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

Detailed Description

Efficiently write data directly to a database table.

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.


Member Typedef Documentation

typedef unsigned pqxx::TableWriter::size_type
 


Constructor & Destructor Documentation

pqxx::TableWriter::TableWriter TransactionItf   Trans,
const PGSTD::string &    WName
 

pqxx::TableWriter::~TableWriter  
 


Member Function Documentation

template<typename TUPLE>
PGSTD::string pqxx::TableWriter::ezinekoT const TUPLE &    const
 

template<typename IT>
PGSTD::string pqxx::TableWriter::ezinekoT IT    Begin,
IT    End
const
 

"Untokenize" a tuple of data to a string in DBMS-specific format. This is not portable between databases.

template<typename TUPLE>
void pqxx::TableWriter::insert const TUPLE &   
 

template<typename IT>
void pqxx::TableWriter::insert IT    Begin,
IT    End
 

pqxx::TableWriter & pqxx::TableWriter::operator<< TableReader  
 

template<typename TUPLE>
TableWriter & pqxx::TableWriter::operator<< const TUPLE &   
 

template<typename TUPLE>
void pqxx::TableWriter::push_back const TUPLE &   
 

template<typename IT>
void pqxx::TableWriter::push_back IT    Begin,
IT    End
 

void pqxx::TableWriter::reserve size_type   
 


The documentation for this class was generated from the following files:
Generated on Fri Feb 28 19:23:33 2003 for libpqxx by doxygen1.3-rc3