Skip to content

1 Configuration

David Grill edited this page Jun 2, 2017 · 1 revision

Database

c.f. Dexie.js

Schemas

c.f. Dexie.js

Options

For each schemas you've set, you can specify some other important options to enable good state managment.

  • type: can be list or biglist default list
  • primary: the primary key default id
  • label: the label field default label
  • updated_at: last update field
  • deleted_at: delete date field

Api

You can give some api to sync data with your backend

  • all: get the list from the server (the last update date will be sent as parameter)
  • add: add call to your backend (the object will be passed as parameter)
  • update: update call to your backend (the object will be passed as parameter)
  • remove: remove call to your backend (the object will be passed as parameter)
Clone this wiki locally