W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

[IndexedDB] Need a method to clear an object store

From: ben turner <bent.mozilla@gmail.com>
Date: Tue, 3 Aug 2010 12:09:22 -0700
Message-ID: <AANLkTikJtWhBnB9DNHSETTS3w3bf5iYLh8Pb8oaN3cVE@mail.gmail.com>
To: public-webapps WG <public-webapps@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:40 GMT