libsl3  1.1.31001
The convenient C++11 interface for SQLite 3.x
Protected Member Functions | List of all members
sl3::RowCallback Class Referenceabstract

Callback for SQL Select statements. More...

#include <sl3/rowcallback.hpp>

Protected Member Functions

 RowCallback () noexcept=default
 Constructor. More...
 
virtual ~RowCallback () noexcept=default
 Constructor. More...
 
virtual bool onRow (Columns columns)=0
 Process one row of the result from a SELECT statement. More...
 
virtual void onStart ()
 Called before a query result will be processed. More...
 
virtual void onEnd ()
 Called after a query result has been processed. More...
 

Detailed Description

Callback for SQL Select statements.

This interface can be used to process through the result of a SQL statement.

Constructor & Destructor Documentation

◆ RowCallback()

sl3::RowCallback::RowCallback ( )
protecteddefaultnoexcept

Constructor.

◆ ~RowCallback()

virtual sl3::RowCallback::~RowCallback ( )
protectedvirtualdefaultnoexcept

Constructor.

Member Function Documentation

◆ onEnd()

virtual void sl3::RowCallback::onEnd ( )
protectedvirtual

Called after a query result has been processed.

The default implementation does nothing.

◆ onRow()

virtual bool sl3::RowCallback::onRow ( Columns  columns)
protectedpure virtual

Process one row of the result from a SELECT statement.

Parameters
columnsColumns object for accessing values.
Returns
false if processing the query result shall stop
true otherwise

◆ onStart()

virtual void sl3::RowCallback::onStart ( )
protectedvirtual

Called before a query result will be processed.

The default implementation does nothing.


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