Represents a server side cursor. More...
#include <Cursor.h>
Public Member Functions | |
Cursor (Database &db, std::string const &name, Statement< BTypes, RTypes > const &s) | |
Construct a cursor for given statement. | |
template<typename... Args> | |
void | open (Args...a) |
Opens a cursor. | |
std::vector< typename RTypes::RowType > const & | get_buffer () |
void | fetch (int count) |
Fetch next count rows from cursor. | |
virtual | ~Cursor () |
Cursor (Cursor const &) | |
Cursor & | operator= (Cursor const &) |
Cursor () | |
Constructs an empty cursor. | |
Cursor (Cursor &&other) | |
Move constructs a Cursor from other Cursor. | |
Cursor & | operator= (Cursor &&other) |
Move assigns from other Cursor. | |
void | close () |
Closes the cursor. |
Represents a server side cursor.
BTypes and RTypes specify types of arguments to statement execution and types of rows returned respectively.
psql::Cursor< BTypes, RTypes >::Cursor | ( | Database & | db, |
std::string const & | name, | ||
Statement< BTypes, RTypes > const & | s | ||
) | [inline] |
virtual psql::Cursor< BTypes, RTypes >::~Cursor | ( | ) | [inline, virtual] |
psql::Cursor< BTypes, RTypes >::Cursor | ( | Cursor< BTypes, RTypes > const & | ) |
psql::Cursor< BTypes, RTypes >::Cursor | ( | ) | [inline] |
psql::Cursor< BTypes, RTypes >::Cursor | ( | Cursor< BTypes, RTypes > && | other | ) | [inline] |
void psql::Cursor< BTypes, RTypes >::close | ( | ) | [inline] |
void psql::Cursor< BTypes, RTypes >::fetch | ( | int | count | ) | [inline] |
std::vector<typename RTypes::RowType> const& psql::Cursor< BTypes, RTypes >::get_buffer | ( | ) | [inline] |
void psql::Cursor< BTypes, RTypes >::open | ( | Args... | a | ) | [inline] |
Cursor& psql::Cursor< BTypes, RTypes >::operator= | ( | Cursor< BTypes, RTypes > const & | ) |
Cursor& psql::Cursor< BTypes, RTypes >::operator= | ( | Cursor< BTypes, RTypes > && | other | ) | [inline] |