Closed vweevers closed 3 years ago
Might want to add keys
and values
options before it's too late to change the function signature. We could do:
for await (const key of db.iterator({ values: false }))
But I think I prefer a new API, in which case it's not a blocker:
for await (const key of db.keyIterator())
Or even:
for await (const key of db.keys())
I prefer the last one.
Closes #235. You can now do:
Supersedes #338, which was just a proof of concept and we've since dropped support of legacy runtimes (Level/community#98) which now allows us to use async generators across the board.