OpenDBCallbacks
§Methods
Called if there are older versions of the database open on the origin, so this version cannot open.
Version of the database that's blocking this one.
The version of the database being blocked (whatever version you provided to openDB
).
The event object for the associated blocked
event.
Called if this connection is blocking a future version of the database from opening.
Version of the open database (whatever version you provided to openDB
).
The version of the database that's being blocked.
The event object for the associated versionchange
event.
Called if the browser abnormally terminates the connection.
This is not called when db.close()
is called.
Called if this version of the database has never been opened before. Use it to specify the schema for the database.
A database instance that you can use to add/remove stores and indexes.
Last version of the database opened by the user.
Whatever new version you provided.
The transaction for this upgrade. This is useful if you need to get data from other stores as part of a migration.
The event object for the associated 'upgradeneeded' event.