treojs / treo

Consistent API to IndexedDB
http://treojs.com
MIT License
258 stars 18 forks source link

Support index.count() #30

Open lpschz opened 9 years ago

lpschz commented 9 years ago

Not sure if it's added in the features to add in the new release, but would be a nice to have as well!

lpschz commented 9 years ago

Actually I meant something like index.count(IDBKeyRange), would be a nice abstraction to have! Maybe a plugin?

alekseykulikov commented 9 years ago

It's the part of new release #29. Most of the methods will be able to accept optional range:

index.count([range])
index.getAll([range])
store.count([range])
store.getAll([range])

The main problem now, that I have to pass all this features in indexeddbshim env... which is hard :)