aaronpowell / db.js

db.js is a wrapper for IndexedDB to make it easier to work against
http://aaronpowell.github.com/db.js/
MIT License
818 stars 142 forks source link

How to remove data by filter #186

Open michael2043 opened 8 years ago

michael2043 commented 8 years ago

I want to remove data by filter like below

db.xxx.query().filter(function(){ return xxxxx;//condition }).remove();

how can I use ?

brettz9 commented 8 years ago

Use modify (optionally with filter before it): https://github.com/aaronpowell/db.js#atomic-updates