Posted on github, then found this channel. Thanks ...
# juul-libraries
s
Posted on github, then found this channel. Thanks for the indexeddb library. I’m integrating it in a js library and have a couple of queries: 1. How can I use getAll with a key range and a limit? it only seems to allow
Key?
as input. Trying to achieve the equivalent of:
Select * from table where id >= startId limit maxEntries.
I understand that it can be achieved via cursor APIs but getAll is more efficient as its a true bulk read 2. How do we manage db close safely? Would ideally want to get some sort of event/callback based on which I can reopen a database if it closed due to upgrade/etc from other tabs. But see no way to achieve it in existing apis