object IndexedDb
- Companion:
- class
Type members
Classlikes
final case class OpenCallbacks(upgradeNeeded: VersionChange => Callback, versionChange: VersionChange => Callback, closed: Callback)
Callbacks to install when opening a DB.
Callbacks to install when opening a DB.
Note 1: On versionChange
, the DB connection will be closed automatically.
Note 2: There's no blocked
handler because we currently don't allow blocking. To quote the idb spec:
if "there are open connections that don’t close in response to a versionchange event, the request will be
blocked until all they close".
final case class VersionChange(db: DatabaseInVersionChange, oldVersion: Int, newVersion: Option[Int])