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

Ian Hickson ian at hixie.ch
Thu Oct 25 15:53:13 PDT 2007

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.   `._.-(,_..'--(,_..'`-.;.'

More information about the whatwg mailing list