Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ddgll/vue-idb
https://github.com/ddgll/vue-idb
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ddgll/vue-idb
- Owner: ddgll
- Created: 2017-05-23T22:51:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-27T10:00:41.000Z (over 2 years ago)
- Last Synced: 2024-01-03T23:39:03.961Z (5 months ago)
- Language: JavaScript
- Size: 11.8 MB
- Stars: 82
- Watchers: 7
- Forks: 19
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Lists
- awesome-vue - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Components & Libraries / Utilities)
- awesome-vue - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Components & Libraries / Utilities)
- awesome-vue - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Components & Libraries / Utilities)
- awesome-vue - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Components & Libraries / Utilities)
- awesome-vue - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Components & Libraries / Utilities)
- awesome-vue - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Components & Libraries / Utilities)
- awesome-vue - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Components & Libraries / Utilities)
- awesome-vue - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Components & Libraries / Utilities)
- awesome-vue - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Components & Libraries / Utilities)
- awesome-vue - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Utilities / Persistence)
- awesome-vue - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Utilities / Persistence)
- awesome-vue - vue-idb ★57 - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Utilities / Persistence)
- awesome-vue - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Utilities / Persistence)
- awesome-vue. - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Utilities / Persistence)
- awesome-vue - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Utilities / Persistence)
- awesome-vue - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Utilities / Persistence)
- awesome-vue - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Components & Libraries / Utilities)
- awesome-vuejs - vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules (Utilities / Persistence)
README
# vue-idb
IndexedDB wrapper for Vuejs based on Dexie
## Install
``` bash
npm install vue-idb --save
```
## Usage``` js
import Vue from 'vue'
import VueIdb from 'vue-idb'Vue.use(VueIdb)
const idb = new VueIdb({
version: 1,
database: 'test',
schemas: [
{ tests: 'id, title, created_at, updated_at' },
{ posts: 'id, owner' }
]
})new Vue({
el: '#app',
idb: idb,
render: h => h(App)
})
```
### Query
``` js
idb.test.test.toArray().then(results => (){ // do something here})
```
### Add
``` js
idb.test.test.Add({
id:10, title: 'title', created_at:new Date(), updated_at:new Date()
}).then(r=> (){//do something})
```
### Update
``` js
idb.test.test.Update(10, // the id
{
updated_at:new Date()
}).then(r => () { // do something })
```
# Release Notes
## 0.2.0 BUGFIX
BUGFIX on adding schemas on existing DB
UPDATES dependencies #32## 0.1.11 BUGFIX
ADD xxxReset action
ADD payload to load action## 0.1.10 BUGFIX
RETURN Promise.reject()
BUGFIX #22## 0.1.4 Enhancement
BUGFIX on listSelect vuex action
BUGFIX on toggleSelect vuex action
## 0.1.3 Enhancement
Add Dexie DB version in options## 0.1.2 Enhancement
Add Select action in biglist