yathit / ydn-db

Javascript database module for Indexeddb, Web SQL and localStorage storage mechanisms supporting version migration, advanced query, SQL and transaction.
Apache License 2.0
503 stars 41 forks source link

list() does not consider offset number #78

Closed Barnadeep closed 9 years ago

Barnadeep commented 9 years ago

Thanks yathit for this great library. Can you please help with the below issue?

As per documentation @ https://dev.yathit.com/api/ydn/db/query.html the list method limits the number of results in a query to n, and if the query is run again would return the next n, then next n and so on.

But this is not working, each time I run a query using list, it returns the first n results. Is there a workaround for this? Can we pass an offset to the list method so that will return n results after ignoring the first m?

yathit commented 9 years ago

Can you show a runnable code that is not working?

I tried in getting started page instruction and working correctly.

image