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:
 List of all members.
List of all members.
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:
- Can only dump tables, not views or arbitrary queries
- Has no knowledge of metadata
- Is unable to reorder, rename, omit or enrich fields
- Does not support filtering of records
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 Mon Mar 17 22:59:06 2003 for libpqxx by
 1.3-rc3
1.3-rc3