OpenCallbacks
final case class OpenCallbacks(upgradeNeeded: VersionChange => Callback, versionChange: VersionChange => Callback, closed: Callback)
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".
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any