SdbVersionChangeAction enum

What a database does on its own when another connection (another tab, an iframe, or this page) opens it at a higher version or deletes it, the IndexedDB versionchange event, right after SdbOpenDatabaseOptions.onVersionChangeRequest.

Only the browser fires the event: io and memory databases never act.

Inheritance
Available extensions

Values

none → const SdbVersionChangeAction

Nothing: the database stays open and the other connection waits, blocked, until this one is closed by the app.

close → const SdbVersionChangeAction

Close the database (the default): the other connection proceeds, this one is unusable (SdbDatabase.isClosed), the app should reload or open again.

closeAndReload → const SdbVersionChangeAction

Close the database then reload the page (web; close only elsewhere): the page comes back on the new version of the app.

closeAlertAndReload → const SdbVersionChangeAction

Close the database, tell the user (sdbVersionChangeReloadMessage, or sdbVersionChangeDeleteReloadMessage on a delete, a blocking alert) then reload the page (web; close only elsewhere).

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<SdbVersionChangeAction>
A constant List of the values in this enum, in order of their declaration.