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

q = new ydn.db.Query() undefined #8

Closed neerajjoshi closed 10 years ago

neerajjoshi commented 10 years ago

Hello I am using code in the example folder from the link below

https://github.com/yathit/ydn-db

but when I tried to use q = new ydn.db.Query(); it give undefined error should include other js files too as it using only ydn.db-dev.js file

also I want to know how to get the out of line auto incremented primary key in for loop since other indexes are fetched by their index name but this key has no name so how to get it.

yathit commented 10 years ago

Download file that has query module here http://dev.yathit.com/index/downloads.html

To get primary key use

db.keys('db name')

No need looping, it is same for inline or outline keys.