#include <result.h>
Public Types | |
typedef Result_size_type | size_type |
Public Member Functions | |
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 |
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.
|
|
|
|
|
|
|
|
|
|
|
|
Number of given column, or -1 if it does not exist.
|
|
Number of given column, or -1 if it does not exist.
|
|
|
|
|
|
|
|
If command was INSERT of 1 row, return oid of inserted row. Returns InvalidOid otherwise. |
|
|
|
|
|
|
|
|
|
|
|
|