Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use low-level cursor api? #22

Open
akotlar opened this issue Dec 22, 2016 · 1 comment
Open

Use low-level cursor api? #22

akotlar opened this issue Dec 22, 2016 · 1 comment

Comments

@akotlar
Copy link
Contributor

akotlar commented Dec 22, 2016

There is no documentation for a way to use LMDB::Cursor directly (not via LMDB_File object, aka $DB->Cursor). It would be nice to have this feature exposed.

Would invoking LMDB::Cursor::new($txn,$dbi,my $cursor) be the way to do this? However, how would one call mdb_cursor_close, renew, etc ?

I suppose in general it would be nice to have the ability to access basic LMDB methods directly, because this would avoid the need to document all of the syntactic sugar (use LMDB C documentation).

@akotlar
Copy link
Contributor Author

akotlar commented Dec 22, 2016

Confirmed that this does not work. Error after 1st use of cursor is "Not an active transaction".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant