1.0.5 • Published 2 years ago

index-db-utils v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

index-db-utils

说明

indexDB 语法糖,更加方便使用 indexDB 做本地存储

安装

npm install index-db-utils

使用方式

import { connectDB, isSupport } from "index-db-utils";
if (isSupport()) {
    connectDB("demo").then(dbModel => {
        dbModel.set(
            "members",
            [{id: 1, name: 'wdz', age: 18}, {id: 2, name: 'pdk', age: 22}],
            "key"
        ).then(() => {
            dbModel.get("members").then(members => {
                console.log('members list', members);
            })
        });

    });
}

Demo

详询 Demo

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago