Re: [IndexedDB] Need a method to clear an object store

2010-11-08 Thread Jonas Sicking
On Wed, Aug 4, 2010 at 10:35 AM, Pablo Castro wrote: > > From: public-webapps-requ...@w3.org [mailto:public-webapps-requ...@w3.org] On > Behalf Of Jonas Sicking > Sent: Tuesday, August 03, 2010 12:21 PM > >>> On Tue, Aug 3, 2010 at 12:09 PM, ben turner wrote: >>> > Hi folks, >>> > >>> > Currentl

RE: [IndexedDB] Need a method to clear an object store

2010-08-04 Thread Pablo Castro
From: public-webapps-requ...@w3.org [mailto:public-webapps-requ...@w3.org] On Behalf Of Jonas Sicking Sent: Tuesday, August 03, 2010 12:21 PM >> On Tue, Aug 3, 2010 at 12:09 PM, ben turner wrote: >> > Hi folks, >> > >> > Currently there are only two ways to clear an object store of all >> > dat

Re: [IndexedDB] Need a method to clear an object store

2010-08-04 Thread Jeremy Orlow
On Tue, Aug 3, 2010 at 11:02 PM, ben turner wrote: > On Tue, Aug 3, 2010 at 12:20 PM, Jonas Sicking wrote: > > I think there is a bug in the above proposal though. clear() should > > return a IDBRequest. However the .result of the request should likely > > be null. > > Yes, definitely. My finger

Re: [IndexedDB] Need a method to clear an object store

2010-08-03 Thread ben turner
On Tue, Aug 3, 2010 at 12:20 PM, Jonas Sicking wrote: > I think there is a bug in the above proposal though. clear() should > return a IDBRequest. However the .result of the request should likely > be null. Yes, definitely. My fingers were too fast for my brain. -Ben

Re: [IndexedDB] Need a method to clear an object store

2010-08-03 Thread Jonas Sicking
On Tue, Aug 3, 2010 at 12:09 PM, ben turner wrote: > 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 ID