LiteSQL 0.3.10
litesql::Cursor< T > Class Template Reference

used to iterate results of SQL statement, creates objects of type T from retrieved records. More...

#include <cursor.hpp>

Public Member Functions

 Cursor (const Database &db, Backend::Cursor *c)
 ~Cursor ()
 deletes Backend::Cursor
Cursor< T > & operator++ ()
 steps to next record
Cursor< T > & operator++ (int)
 steps to next record
std::vector< T > dump ()
 returns the rest of the result set in vector
T operator* ()
 returns current record
bool rowsLeft ()
 returns true if there are records left in the result set

Detailed Description

template<class T>
class litesql::Cursor< T >

used to iterate results of SQL statement, creates objects of type T from retrieved records.

See Using Cursor

Member Function Documentation

◆ dump()

template<class T>
std::vector< T > litesql::Cursor< T >::dump ( )

returns the rest of the result set in vector

References operator++().

◆ operator++() [1/2]

template<class T>
Cursor< T > & litesql::Cursor< T >::operator++ ( )

steps to next record

Referenced by dump().

◆ operator++() [2/2]

template<class T>
Cursor< T > & litesql::Cursor< T >::operator++ ( int )
inline

steps to next record

References operator++().

Referenced by operator++().


The documentation for this class was generated from the following file:

SourceForge.net Logo