Data Store

The class in the main process for dealing with database and sync.

An instance of this class is always available as the inkdrop.main.dataStore global.

Properties

localPouch

An instance of PouchDB associated with the local database. If the user is not logged in yet, it is undefined.

local

An instance of InkdropDatabase If the user is not logged in yet, it is undefined.

sync

An instance of InkdropDataSync

Methods

getLocalDB()

Returns an instance of InkdropDatabase. Throws an error if it's not loaded yet.

updateFTSIndex()

Triggers updating full-text search index.

Can you help us improve these docs?

The source of these docs is here on GitHub. If you see a way these docs can be improved, please fork us!