[whatwg] SQL API - SQLVersionChangeCallback vs SQLTransactionCallback

Brady Eidson beidson at apple.com
Thu Oct 25 17:19:51 PDT 2007

changeVersion() takes SQLVersionChangeCallback and  
SQLTransactionErrorCallback arguments.
transaction() takes SQLTransactionCallback and  
SQLTransactionErrorCallback arguments.

SQLVersionChangeCallback and SQLTransactionCallback have identical  

It is understood that a changeVersion() chain opens a transaction to  
perform your version change with, and besides the additional pre/post  
flight steps regarding the version change it operates the same as a  
transaction() chain.

I don't see the point of having a differentiated  
SQLVersionChangeCallback when SQLTransactionErrorCallback is good  
enough for the error case of changeVersion().  I propose we drop  
SQLVersionChangeCallback and modify the full signiture of  
changeVersion from:
void changeVersion(in DOMString oldVersion, in DOMString newVersion,  
in SQLVersionChangeCallback callback, in SQLTransactionErrorCallback  
void changeVersion(in DOMString oldVersion, in DOMString newVersion,  
in SQLTransactionCallback callback, in SQLTransactionErrorCallback  


More information about the whatwg mailing list