drycpp / lmdbxx

C++11 wrapper for the LMDB embedded B+ tree database library.
http://lmdbxx.sourceforge.net
The Unlicense
270 stars 89 forks source link

Modify cursor_put so it matches dbi_put. #5

Closed suspend0 closed 7 years ago

suspend0 commented 8 years ago

dbi_put return false if it cannot insert a duplicate value because of MDB_NODUPDATA or MDB_NOOVERWRITE, while cursor_put will raise an exception.

This patch modifies cursor_put so it has the same behavior as dbi_put.

suspend0 commented 8 years ago

This breaks backwards compatibility, so I understand if the PR cannot be accepted.

artob commented 8 years ago

Thanks--I'll have a look this week and get back to you.

suspend0 commented 8 years ago

Bump.

suspend0 commented 7 years ago

closing old PRs