Opens an IndexedDB database and increments the reference count. Handles global object detection and callbacks.
The name of the database to open.
The database version to open.
A function that migrates the database schema, called on onupgradeneeded only.
onupgradeneeded
A promise that resolves to the database instance.
Opens an IndexedDB database and increments the reference count. Handles global object detection and callbacks.