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

pqxx::tablereader Class Reference

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

#include <tablereader.hxx>

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> tablereaderoperator>> (TUPLE &)
 operator bool () const throw ()
bool operator! () const throw ()
bool get_raw_line (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::get_raw_line 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 Nov 15 01:49:00 2003 for libpqxx by doxygen 1.3.4