Class: StoreIndexedDB
@web3-storage/access.StoreIndexedDB
Store implementation for the browser.
Usage:
import { StoreIndexedDB } from '@web3-storage/access/stores/store-indexeddb'
Hierarchy
IndexedDBDriver
↳
StoreIndexedDB
Constructors
constructor
• new StoreIndexedDB(dbName
, options?
)
Parameters
Name | Type |
---|---|
dbName | string |
options? | Object |
options.autoOpen | undefined | boolean |
options.dbStoreName | undefined | string |
options.dbVersion | undefined | number |
Inherited from
IndexedDBDriver.constructor
Defined in
packages/access-client/src/drivers/indexeddb.js:46
Properties
#autoOpen
• Private
#autoOpen: boolean
Inherited from
IndexedDBDriver.#autoOpen
Defined in
packages/access-client/src/drivers/indexeddb.js:37
#db
• Private
#db: undefined
| IDBDatabase
Inherited from
IndexedDBDriver.#db
Defined in
packages/access-client/src/drivers/indexeddb.js:34
#dbName
• Private
#dbName: string
Inherited from
IndexedDBDriver.#dbName
Defined in
packages/access-client/src/drivers/indexeddb.js:25
#dbStoreName
• Private
#dbStoreName: string
Inherited from
IndexedDBDriver.#dbStoreName
Defined in
packages/access-client/src/drivers/indexeddb.js:31
#dbVersion
• Private
#dbVersion: undefined
| number
Inherited from
IndexedDBDriver.#dbVersion
Defined in
packages/access-client/src/drivers/indexeddb.js:28
Methods
#getOpenDB
▸ Private
#getOpenDB(): Promise
<IDBDatabase
>
Returns
Promise
<IDBDatabase
>
Inherited from
IndexedDBDriver.#getOpenDB
Defined in
packages/access-client/src/drivers/indexeddb.js:54
close
▸ close(): Promise
<void
>
Returns
Promise
<void
>
Inherited from
IndexedDBDriver.close
Defined in
packages/access-client/src/drivers/indexeddb.js:86
load
▸ load(): Promise
<undefined
| AgentDataExport
>
Returns
Promise
<undefined
| AgentDataExport
>
Inherited from
IndexedDBDriver.load
Defined in
packages/access-client/src/drivers/indexeddb.js:118
open
▸ open(): Promise
<void
>
Returns
Promise
<void
>
Inherited from
IndexedDBDriver.open
Defined in
packages/access-client/src/drivers/indexeddb.js:63
reset
▸ reset(): Promise
<void
>
Returns
Promise
<void
>
Inherited from
IndexedDBDriver.reset
Defined in
packages/access-client/src/drivers/indexeddb.js:142
save
▸ save(data
): Promise
<void
>
Parameters
Name | Type |
---|---|
data | AgentDataExport |
Returns
Promise
<void
>
Inherited from
IndexedDBDriver.save