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

pqxx::TableReader Class Reference

Efficiently pull data directly out of a table. More...

#include <tablereader.h>

Inheritance diagram for pqxx::TableReader:

pqxx::TableStream List of all members.

Public Member Functions

 TableReader (TransactionItf &, const PGSTD::string &RName)
 ~TableReader ()
TableReader & operator>> (Result &)
TableReader & operator>> (PGSTD::string &)
template<typename TUPLE> TableReader & operator>> (TUPLE &)
 operator bool () const throw ()
bool operator! () const throw ()
bool GetRawLine (PGSTD::string &Line)
 Read a line of raw, unparsed table data.

template<typename TUPLE> void Tokenize (PGSTD::string, TUPLE &) const

Detailed Description

Efficiently pull data directly out of a table.

A TableReader provides efficient read access to a database table. This is not as flexible as a normal query using the Result class however:

On the other hand, it can read rows of data and transform them into any container or container-like object that supports STL back-inserters. Since the TableReader has no knowledge of the types of data expected, it treats all fields as strings.


Constructor & Destructor Documentation

pqxx::TableReader::TableReader TransactionItf  ,
const PGSTD::string &    RName
 

pqxx::TableReader::~TableReader  
 


Member Function Documentation

bool pqxx::TableReader::GetRawLine PGSTD::string &    Line
 

Read a line of raw, unparsed table data.

Returns whether a line could be read.

Parameters:
Line is set to the raw data line read from the table.

pqxx::TableReader::operator bool   const throw ()
 

bool pqxx::TableReader::operator!   const throw ()
 

template<typename TUPLE>
pqxx::TableReader & pqxx::TableReader::operator>> TUPLE &   
 

TableReader& pqxx::TableReader::operator>> PGSTD::string &   
 

TableReader& pqxx::TableReader::operator>> Result  
 

template<typename TUPLE>
void pqxx::TableReader::Tokenize PGSTD::string   ,
TUPLE &   
const
 


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