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 (transaction_base &, const PGSTD::string &RName)
 ~tablereader ()
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 transaction_base  ,
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 &   
 

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


The documentation for this class was generated from the following files:
Generated on Sat Jun 7 00:49:36 2003 for libpqxx by doxygen1.3-rc3