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

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 Methods

 TableReader (TransactionItf &Trans, PGSTD::string Name)
 ~TableReader ()
TableReader & operator>> (Result &)
TableReader & operator>> (PGSTD::string &)
template<typename TUPLE> TableReader & operator>> (TUPLE &)
 operator bool () const
bool operator! () const
bool GetRawLine (PGSTD::string &Line)
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 &    Trans,
PGSTD::string    Name
) 
 

pqxx::TableReader::~TableReader (    ) 
 


Member Function Documentation

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

pqxx::TableReader::operator bool (    )  const
 

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

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 Tue Dec 3 01:37:36 2002 for libpqxx by doxygen1.3-rc1