@beeweb/indexeddb
v1.0.9
Published
Lightweight database tool for browser
Downloads
7
Maintainers
Readme
beeweb-indexedDB
Lightweight database tool for browser
Installing
$ yarn add @beeweb/indexeddb
Usage
import BrowserDB from "@beeweb/indexeddb";
const targetIndex = {};
const version = 1;
new BrowserDB("dbName", "storeName", targetIndex, version);
Description
| field | required | type | | | ----------- | -------- | -------------------------- | ----------------------------------------------------------------------------- | | dbName | true | string | | | storeName | true | string | | | targetIndex | false | { [key: string]: boolean } | IDBObjectStore.createIndex key as name & keyPath | value as unique | | version | false | number | default: 1 |