1.1.0 • Published 1 month ago
index-db-package v1.1.0
Index-db-package
介绍
对浏览器数据库indexedDB进行了封装
安装教程
npm install index-db-package
使用说明
import IndexDB from 'index-db-package'
const database = new IndexDB('dabtabase')
const data = [
{ name: "Sales", max: 6500 },
{ name: "Administration", max: 16000 },
{ name: "Information Technology", max: 30000 },
{ name: "Customer Support", max: 38000 },
{ name: "Development", max: 52000 },
{ name: "Marketing", max: 25000 },
];
const indexArr = [{ key: "max", unique: false }];
const createArr = [
{
storeName: "customers",
createType: "manual",
DBType: "readwrite",
primaryKey: "name",
indexArr: indexArr,
},
{
storeName: "customers2",
createType: "automatic",
},
];
database.open().then(()=>{
database.createDataSheet(createArr).then(()=>{
database.set("customers", data).then(() => {})
})
})
文档
服务 | 地址 |
---|---|
文档 | https://github.com/FuloliyaLansfroya/index-db/ |
1.1.0
1 month ago
1.0.21
1 month ago
1.0.20
1 month ago
1.0.19
1 month ago
1.0.2
1 month ago
1.0.18
1 month ago
1.0.17
1 month ago
1.0.16
1 month ago
1.0.9
1 month ago
1.0.8
1 month ago
1.0.7
1 month ago
1.0.6
1 month ago
1.0.5
1 month ago
1.0.4
1 month ago
1.0.3
1 month ago
1.0.11
1 month ago
1.0.10
1 month ago
1.0.15
1 month ago
1.0.14
1 month ago
1.0.13
1 month ago
1.0.12
1 month ago
1.0.1
3 months ago
1.0.0
2 years ago