[IndexedDB] Need a method to clear an object store

Hi folks,

Currently there are only two ways to clear an object store of all
data: (i) remove the object store and recreate it, or (ii) open a
cursor and call remove for all entries. I propose a third, simpler
approach:

interface IDBObjectStore
{
  ...
  void clear();
  ...
};

Any thoughts?

-Ben

Received on Tuesday, 3 August 2010 19:09:55 UTC