|
lintel 0.2.0
|
#include <Result.h>
Classes | |
| class | ConstIterator |
| class | Iterator |
Public Member Functions | |
| Iterator | begin () |
| Iterator | end () |
| ConstIterator | begin () const |
| ConstIterator | end () const |
| Result ()=default | |
| ~Result () | |
| Result (std::shared_ptr< postgresql::Result > result) | |
| Result (std::shared_ptr< sqlite::Result > result) | |
| std::string | getValue (int row, int attribute) const |
| Arguments & | of (std::size_t pos) |
| const Arguments & | of (std::size_t pos) const |
| int | getNumOfAttributes () const |
| int | getSize () const |
Unified query result wrapping either a PostgreSQL or SQLite result. Supports random-access iteration over rows, each row being an Arguments object.
|
default |
Default constructor.
| lintel::db::Result::~Result | ( | ) |
Destructor.
|
explicit |
Constructs a result wrapping a PostgreSQL result.
| result | the PostgreSQL result shared pointer |
|
explicit |
Constructs a result wrapping an SQLite result.
| result | the SQLite result shared pointer |
|
inline |
|
inline |
|
inline |
|
inline |
| int lintel::db::Result::getNumOfAttributes | ( | ) | const |
| int lintel::db::Result::getSize | ( | ) | const |
Retrieves a value at the given row and attribute.
| row | the row index |
| attribute | the attribute (column) index |
| Arguments & lintel::db::Result::of | ( | std::size_t | pos | ) |