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

getManyEntries #288

Open
alexgleason opened this issue Apr 7, 2024 · 1 comment
Open

getManyEntries #288

alexgleason opened this issue Apr 7, 2024 · 1 comment

Comments

@alexgleason
Copy link

alexgleason commented Apr 7, 2024

I'm experimenting with creating a Deno.Kv wrapper for lmdb-js

Deno.Kv wants to use versions. I can use db.getEntry to get a value with the version. But there's no equivalent for getMany.

EDIT: I might be working off the wrong premise, that "version" means the same thing between the two databases.

@kriszyp
Copy link
Owner

kriszyp commented Apr 8, 2024

I could add this, although it isn't too hard to do this with the existing APIs. getMany is just a call to prefetch followed by (when the callback is called) a get call. So you could just call prefetch and then call getEntry (for each key) when it is done.

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

2 participants