0.1.4 • Published 2 years ago

vueuseindexeddb v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

vueuseindexeddb

An indexedDB wrapper for Vue3 Composition API

Current version: 0.1.4

Must use with Vue3, as a composition API.

usage: install via npm/yarn:

npm install vueuseindexeddb
or
yarn add vueuseindexeddb

... then in your project

import {useIndexedDB} from "vueuseindexeddb";

const {currentDB: DeepReadonly,
    currentDBName: DeepReadonly,
    currentDBVersion: DeepReadonly,
    getData :function,
    getAllData :function,
    addData :function,
    updateData:function,
    removeData:function} = useIndexedDB();

All functions return Promise, which could be used with async/await syntax.

DBVersion and DBName can be set as the parameter of useIndexedDB(), as follows:

const {currentDBName,currentDBVersion} = useIndexedDB("TestDBNAME",2);

console.log(currentDBName,currentDBVersion);

Much to add yet, but it's usable now as it is :)

Enjoy~

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago