Re: [w3c/IndexedDB] Return number of records deleted (#32)

The way we currently delete, we iterate over a union of our 'pending' changes and the current database entries, and either update our pending change or create a new pending change with the status of 'deleted'.  So all we need to do (for our implementation) is count the number of items where we either created a new 'pending' entry, or if there was already a pending entry that wasn't marked as deleted.

So we're basically adding an if statement and incrementing a counter.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/32#issuecomment-223101770

Received on Wednesday, 1 June 2016 19:39:41 UTC