#include <result.hxx>
| Public Types | |
| typedef result_size_type | size_type | 
| Public Member Functions | |
| result () throw () | |
| result (const result &rhs) throw () | |
| ~result () | |
| result & | operator= (const result &) throw () | 
| const_iterator | begin () const | 
| const_iterator | end () const | 
| size_type | size () const | 
| bool | empty () const | 
| size_type | capacity () const | 
| void | swap (result &other) throw () | 
| const tuple | operator[] (size_type i) const throw () | 
| const tuple | at (size_type) const throw (PGSTD::out_of_range) | 
| void | clear () throw () | 
| tuple::size_type | columns () const throw () | 
| Number of columns in result. | |
| tuple::size_type | column_number (const char ColName[]) const | 
| Number of given column (throws exception if it doesn't exist). | |
| tuple::size_type | column_number (const PGSTD::string &Name) const | 
| Number of given column (throws exception if it doesn't exist). | |
| const char * | column_name (tuple::size_type Number) const | 
| Name of column with this number (throws exception if it doesn't exist). | |
| oid | column_type (tuple::size_type ColNum) const | 
| Type of given column. | |
| oid | column_type (const PGSTD::string &ColName) const | 
| Type of given column. | |
| oid | column_type (const char ColName[]) const | 
| Type of given column. | |
| oid | inserted_oid () const | 
| If command was INSERT of 1 row, return oid of inserted row. | |
| size_type | affected_rows () const | 
| If command was INSERT, UPDATE, or DELETE, return number of affected rows. | |
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]);
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| If command was INSERT, UPDATE, or DELETE, return number of affected rows. 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| Name of column with this number (throws exception if it doesn't exist). 
 | 
| 
 | 
| Number of given column (throws exception if it doesn't exist). 
 | 
| 
 | 
| Number of given column (throws exception if it doesn't exist). 
 | 
| 
 | 
| Type of given column. 
 | 
| 
 | 
| Type of given column. 
 | 
| 
 | 
| Type of given column. 
 | 
| 
 | 
| Number of columns in result. 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| If command was INSERT of 1 row, return oid of inserted row. Returns oid_none otherwise. | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
 1.3.8
 1.3.8