Vuex-ORM Plugin to sync the data with lowdb.
npm install vuex-orm-lowdb

VuexOrmLowdb is a plugin for the amazing VuexORM that let you sync your Vuex Store with Lowdb
Add the package to your dependencies
``shell`
yarn add vuex-orm-lowdb
Or
`shell`
npm install --save vuex-orm-lowdb
Then you can setup the plugin
` js
import VuexORM from '@vuex-orm/core'
import VuexOrmLowdb from 'vuex-orm-lowdb'
const database = new VuexORM.Database()
VuexORM.use(VuexOrmLowdb, {
database,
dbPath: "/public/data"
})
// ...
export default () => new Vuex.Store({
namespaced: true,
plugins: [VuexORM.install(database)]
})
`
See https://vuex-orm.github.io/vuex-orm/guide/prologue/getting-started.html#create-modules on how to setup the database
This plugin add some vuex actions to load and persist data in an IndexedDB
| Action | Description |
| ------- | ----------- |
| $fetch | Load data from the lowdb store associated to a model and persist them in the Vuex Store |
| $create | Like VuexORM insert, but also persist data to lowdb |update
| $update | Like VuexORM , but also persist changes to lowdb |delete
| $delete | Like VuexORM , but also remove data from lowdb |
`vue
``