W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2007

[whatwg] SQL API and changeVersion() with no callbacks

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 25 Oct 2007 22:53:13 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0710252219470.10579@hixie.dreamhostps.com>
On Thu, 25 Oct 2007, Brady Eidson wrote:
>
> One of the changeVersion variants is -
> 
> void changeVersion(in DOMString oldVersion, in DOMString newVersion);
> 
> This allows an asynchronous version change with no way at all to 
> determine success or failure of the operation.
> 
> I'm just curious what the motivation is.  Is it necessary to support 
> this?

I added it for the same reason we have executeSql() with no callbacks. I 
can remove it if desired. I expected it to be used in cases where you want 
to change the version (e.g. from '' to '1.0') without changing the schema, 
but where you simply don't really have any good thing to do if it goes 
wrong. I can remove it if you don't think it'll be important, but then we 
might as well remove the one with just the first callback, since I can 
definitely see use cases for changing the version number without doing 
anything else.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 25 October 2007 15:53:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:37 UTC