W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2009

Re: [webstorage] deleting a database

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 26 Nov 2009 00:10:43 +0000 (UTC)
To: João Eiras <joaoe@opera.com>
Cc: public-webapps@w3.org
Message-ID: <Pine.LNX.4.62.0911260009040.10133@hixie.dreamhostps.com>
On Tue, 30 Jun 2009, João Eiras wrote:
> The webstorage specification needs an API to delete a database, because
> there's no such way to do it currently.
> Something like deleteDatabase(name) would be good. And after calling it, all
> open transactions would be marked as invalid.
> The user agent could then delete the data on disk and do all the necessary
> clean up.

Deleting all the data in the database (i.e. dropping all the tables) 
should be sufficient, no? There's nothing to store if you don't have any 
data in the database (in particular, there's no reason to store the 
version as far as I can tell -- you can just act as if the user deleted 
the database as soon as the database is empty).

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 26 November 2009 00:11:20 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:21 UTC