libsl3 1.2.41002
A C++ interface for SQLite
Loading...
Searching...
No Matches
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.
 
virtual ~RowCallback () noexcept=default
 Constructor.
 
virtual bool onRow (Columns columns)=0
 Process one row of the result from a SELECT statement.
 
virtual void onStart ()
 Called before a query result will be processed.
 
virtual void onEnd ()
 Called after a query result has been processed.
 

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: