mapp.utils.userIndexedDB

The module exports method to store and retrieve objects from a userIndexedDB.

Methods

(inner) add(params) → {Promise}

Parameters:
NameTypeDescription
paramsObject
Properties
NameTypeDescription
params.userstring
params.dbstring
params.storestring
params.keyobject
Returns:

addPromise

Type: 
Promise

(inner) deleteDB()

(inner) get(params) → {Promise}

Parameters:
NameTypeDescription
paramsObject
Properties
NameTypeDescription
params.userstring
params.workspacestring
params.storestring
params.nameobject
Returns:

getPromise

Type: 
Promise

(inner) openDB(params) → {Promise}

The method is called from any transaction method to interact with the userIndexedDB.

A new database will be created when attempting to open a DB which does not exist.

A new store will be created when a new DB is upgraded [on creation].

Parameters:
NameTypeDescription
paramsobject
Properties
NameTypeDescription
params.storestring
params.userstring
params.workspacestring
Returns:

OpenDBPromise

Type: 
Promise

(inner) put(params) → {Promise}

Parameters:
NameTypeDescription
paramsObject
Properties
NameTypeDescription
params.userstring
params.dbstring
params.storestring
params.objobject
Returns:

updatePromise

Type: 
Promise