strus  0.17
Public Member Functions | List of all members
strus::DatabaseBackupCursorInterface Class Referenceabstract

Database cursor interface that can be used for backup. More...

#include <databaseBackupCursorInterface.hpp>

Public Member Functions

virtual ~DatabaseBackupCursorInterface ()
 Destructor. More...
 
virtual bool fetch (const char *&key, std::size_t &keysize, const char *&blk, std::size_t &blksize)=0
 Fetches then next block to backup. More...
 

Detailed Description

Database cursor interface that can be used for backup.

Constructor & Destructor Documentation

virtual strus::DatabaseBackupCursorInterface::~DatabaseBackupCursorInterface ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual bool strus::DatabaseBackupCursorInterface::fetch ( const char *&  key,
std::size_t &  keysize,
const char *&  blk,
std::size_t &  blksize 
)
pure virtual

Fetches then next block to backup.

Parameters
[out]keypointer to the key of the block
[out]keysizesize of key in bytes
[out]blkpointer to the value of the block
[out]blksizesize of blk in bytes
Returns
true on success, false, if there is no block left or an error occurred

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