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

interface IDBObjectStore
  void clear();

Any thoughts?

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:10 UTC