indexedDbBackend()
Creates an IndexedDB backend for browser environments.
All methods are async (Promise) and do not cross graph layer boundaries.
Import
Section titled “Import”import { indexedDbBackend } from "@graphrefly/ts/storage/browser";Signature
Section titled “Signature”function indexedDbBackend(spec: IndexedDbBackendSpec): NamedIndexedDbBackendParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
spec | IndexedDbBackendSpec | spec value used by the helper. |
Returns
Section titled “Returns”A NamedIndexedDbBackend value.
Example
Section titled “Example”import { indexedDbBackend } from "@graphrefly/ts/storage/browser";Source
Section titled “Source”packages/ts/src/storage/browser.ts