changeVersion method
Atomically update the database version to newVersion
, asynchronously
running callback
on the SqlTransaction representing this
changeVersion transaction.
If callback
runs successfully, then successCallback
is called.
Otherwise, errorCallback
is called.
oldVersion
should match the database's current version exactly.
See also:
- Database.changeVersion from W3C.
Implementation
void changeVersion(String oldVersion, String newVersion,
[SqlTransactionCallback callback,
SqlTransactionErrorCallback errorCallback,
VoidCallback successCallback]) native;