forked from blue/lmdbal
finally methods that actually do something, some testing of them
This commit is contained in:
parent
5fba60f7f0
commit
8cb1e97e30
9 changed files with 348 additions and 12 deletions
|
@ -277,6 +277,18 @@ void LMDBAL::iStorage::throwDuplicate(const std::string& key) const {
|
|||
void LMDBAL::iStorage::throwNotFound(const std::string& key) const {
|
||||
throw NotFound(key, db->name, name);}
|
||||
|
||||
/**
|
||||
* \brief Throws LMDBAL::CursorNotReady
|
||||
*
|
||||
* Helper function ment to be used in heirs and reduce the code a bit
|
||||
*
|
||||
* \param[in] method - called cursor method name, just to show in std::exception::what() message
|
||||
*
|
||||
* \exception LMDBAL::CursorNotReady thrown everytime
|
||||
*/
|
||||
void LMDBAL::iStorage::throwCursorNotReady(const std::string& method) const {
|
||||
throw CursorNotReady(method, db->name, name);}
|
||||
|
||||
/**
|
||||
* \brief Begins read-only transaction
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue