@arkade-os/sdk Documentation - v0.4.0-next.8
    Preparing search index...

    Function openDatabase

    • Opens an IndexedDB database and increments the reference count. Handles global object detection and callbacks.

      Parameters

      • dbName: string

        The name of the database to open.

      • dbVersion: number

        The database version to open.

      • initDatabase: (db: IDBDatabase) => void

        A function that migrates the database schema, called on onupgradeneeded only.

      Returns Promise<IDBDatabase>

      A promise that resolves to the database instance.