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

pqxx::Result Class Reference

Query or command result set. More...

#include <result.h>

List of all members.

Public Types

typedef Result_size_type size_type

Public Methods

 Result ()
 Result (const Result &rhs)
 ~Result ()
Result & operator= (const Result &)
const_iterator begin () const
const_iterator end () const
size_type size () const
bool empty () const
size_type capacity () const
const Tuple operator[] (size_type i) const
const Tuple at (size_type) const
void clear ()
Tuple::size_type Columns () const
Tuple::size_type ColumnNumber (const char Name[]) const
 Number of given column, or -1 if it does not exist.

Tuple::size_type ColumnNumber (const std::string &Name) const
 Number of given column, or -1 if it does not exist.

const char * ColumnName (Tuple::size_type Number) const
Oid InsertedOid () const
 If command was INSERT of 1 row, return oid of inserted row.

size_type AffectedRows () const
 If command was INSERT, UPDATE, or DELETE, return number of affected rows.


Friends

class Result::Field
class Connection
class Cursor


Detailed Description

Query or command result set.

This behaves as a container (as defined by the C++ standard library) and provides random access const iterators to iterate over its tuples. A tuple can also be accessed by indexing a Result R by the tuple's zero-based number:

for (Result::size_type i=0; i < R.size(); ++i) Process(R[i]);


Member Typedef Documentation

typedef Result_size_type pqxx::Result::size_type
 


Constructor & Destructor Documentation

pqxx::Result::Result (    ) 
 

pqxx::Result::Result (  const Result &    rhs ) 
 

pqxx::Result::~Result (    ) 
 


Member Function Documentation

pqxx::Result::size_type pqxx::Result::AffectedRows (    )  const
 

If command was INSERT, UPDATE, or DELETE, return number of affected rows.

const pqxx::Result::Tuple pqxx::Result::at (  size_type    )  const
 

const_iterator pqxx::Result::begin (    )  const
 

size_type pqxx::Result::capacity (    )  const
 

void pqxx::Result::clear (    ) 
 

const char* pqxx::Result::ColumnName (  Tuple::size_type    Number )  const
 

Tuple::size_type pqxx::Result::ColumnNumber (  const std::string &    Name )  const
 

Number of given column, or -1 if it does not exist.

Tuple::size_type pqxx::Result::ColumnNumber (  const char    Name[] )  const
 

Number of given column, or -1 if it does not exist.

Tuple::size_type pqxx::Result::Columns (    )  const
 

bool pqxx::Result::empty (    )  const
 

Result::const_iterator pqxx::Result::end (    )  const
 

Oid pqxx::Result::InsertedOid (    )  const
 

If command was INSERT of 1 row, return oid of inserted row.

Returns InvalidOid otherwise.

pqxx::Result & pqxx::Result::operator= (  const Result &    ) 
 

const Tuple pqxx::Result::operator[] (  size_type    i )  const
 

size_type pqxx::Result::size (    )  const
 


Friends And Related Function Documentation

friend class Connection [friend]
 

friend class Cursor [friend]
 

friend class Result::Field [friend]
 


The documentation for this class was generated from the following files:
Generated on Fri Jan 24 16:36:07 2003 for libpqxx by doxygen1.3-rc2