diff --git a/lmdb++.h b/lmdb++.h index 601568c..53fadf4 100644 --- a/lmdb++.h +++ b/lmdb++.h @@ -1893,6 +1893,16 @@ class lmdb::cursor { return found; } + /** + * Removes current key/value pair from this database. + * + * @param flags Allows MDB_NODUPDATA if the database was opened with MDB_DUPSORT + * @throws lmdb::error on failure + */ + void del(const unsigned int flags = 0) { + lmdb::cursor_del(handle(), flags); + } + /** * Positions this cursor at the given key. *