W3cubDocs

/Dart 2

changeVersion method

void changeVersion (String oldVersion, String newVersion, [ SqlTransactionCallback callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCallback ])

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:

Implementation

void changeVersion(String oldVersion, String newVersion,
    [SqlTransactionCallback callback,
    SqlTransactionErrorCallback errorCallback,
    VoidCallback successCallback]) native;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-web_sql/SqlDatabase/changeVersion.html