#include <row.h>
Inheritance diagram for pqxxobject::row< Row >:
Public Types | |
typedef std::auto_ptr< Row > | row_ptr |
Row object pointer. | |
Public Member Functions | |
row () | |
The constructor. | |
row (row_state status, bool modified=false) | |
The constructor. | |
virtual | ~row () |
The destructor. | |
Static Public Member Functions | |
row_ptr | create (pqxx::result::const_iterator row, pqxxobject::transaction &tran) |
Create a new row object from an SQL result set. |
The class represents a single row in a database table (or result set). This class should be derived from by your own row class. For example:
class Address : public libpqxxobject::row<Address> { private: libpqxx::column<int> m_id; // Primary key libpqxx::column<std::string> name; // Name libpqxx::column<std::string> street; // Street [...] }
static row_ptr create(pqxx::result::const_iterator row, pqxxobject::transaction& tran);
Definition at line 80 of file row.h.
|
Row object pointer.
Definition at line 84 of file row.h. Referenced by pqxxobject::row< Row >::create(). |
|
The constructor.
|
|
The constructor.
|
|
The destructor.
|
|
Create a new row object from an SQL result set.
Definition at line 111 of file row.h. References pqxxobject::row< Row >::row_ptr, and pqxxobject::row_base::STATE_INITIALISED. |