rmapi-js
    Preparing search index...

    Class IndexedDbStore

    a Store in IndexedDB, for a browser: each call is one transaction, so a batch is stored whole or not at all

    One opened with open is the account's own database, which a retain that keeps nothing, as on signing out, deletes.

    Implements

    Index
    • Parameters

      • db: IDBDatabase

        an open database

      • name: string = "blobs"

        the object store blobs go in, by hash, with no key path

      Returns IndexedDbStore

    • a blob, or undefined if it is not held

      Parameters

      • hash: string

      Returns Promise<Uint8Array<ArrayBufferLike> | undefined>

    • whether each blob is held, in the order asked

      Parameters

      • hashes: string[]

      Returns Promise<boolean[]>

    • stores every blob under its hash, all of them or none

      Parameters

      • blobs: [string, Uint8Array<ArrayBufferLike>][]

      Returns Promise<void>

    • deletes every blob keep does not name, and the account's database when it keeps nothing

      Parameters

      • keep: string[]

      Returns Promise<void>