some thoughts about cursors, nothing special yet

This commit is contained in:
Blue 2023-08-07 18:27:44 -03:00
parent 69bf1fcc3d
commit 5fba60f7f0
Signed by: blue
GPG key ID: 9B203B252A63EE38
4 changed files with 144 additions and 11 deletions

View file

@ -54,7 +54,10 @@ LMDBAL::Storage<K, V>::Storage(const std::string& _name, Base* parent):
* \brief Destroys a storage
*/
template<class K, class V>
LMDBAL::Storage<K, V>::~Storage() {}
LMDBAL::Storage<K, V>::~Storage() {
for (Cursor<K, V>* cursor : cursors)
delete cursor;
}
/**
* \brief Adds a key-value record to the storage