We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I believe "each" has some bugs
Maybe
... req.onsuccess = req.onerror = function(e) { $rootScope.$apply(function(){ if(!e.target.result){ d.resolve(e.target.result); } callback(e.target.result); }); }; ...
should be something like
.. req.onsuccess = req.onerror = function(e) { $rootScope.$apply(function(){ if(e.target.result){ d.resolve(e.target.result); } }); }; ...
with my suggestion things seem to work better but I have no idea is it correct.
What I have is something like
Setup:
var store = db.createObjectStore('fooBar', {keyPath: 'fooBarId', autoIncrement:true}); store.createIndex('keyIndex', ['foo','bar'], {unique:false});
Query:
var store = $indexedDB.objectStore('fooBar'); var key = [ fooValue, barValue ]; var query = $indexedDB.queryBuilder() .$index('keyIndex') .$eq(key) .compile(); return store.each(query).then(function(cursor) { if (cursor.value) { return cursor.value; } });
The text was updated successfully, but these errors were encountered:
Ok now when I look closer, what I posted above is incorrect since I was using example from README but the actual method signature has changed since
Sorry, something went wrong.
Can you please provide a correct example
No branches or pull requests
I believe "each" has some bugs
Maybe
should be something like
with my suggestion things seem to work better but I have no idea is it correct.
What I have is something like
Setup:
Query:
The text was updated successfully, but these errors were encountered: