deephacks / lmdbjni

LMDB for Java
Apache License 2.0
204 stars 28 forks source link

BufferCursor should accept a Transaction #20

Closed krisskross closed 9 years ago

krisskross commented 9 years ago

The current API is broken since any exception thrown in a "try with resources" block will commit the transaction which is not correct. Also, without a "try with resources" block there is no way for the user to abort the transaction or join with parent transaction.