+

Search Tips | Advanced Search

Skip navigation links

Index Overview

PREV CLASS NEXT CLASS FRAMES (opens in new window)



Class WL.JSONStore

WL.JSONStore



Method Summary
Method Attributes Method Name and Description
 

changePassword(oldPassword, newPassword, username, options)

Changes the password for the internal storage.

 

clearPassword()

Removes the password from memory.

 

closeAll(options)

Locks access to all the collections until

    WL.JSONStore.init is called.
    							
    						
    					
    						
 

commitTransaction()

Commit a transaction.

 

destroy(username, options)

Completely wipes data for all users, destroys the internal storage, and clears security artifacts.

 

documentify(id, data)

Takes an

    _id and a JSON object and creates a JSONStore document.
    							
    						
    					
    						
 

fileInfo()

Returns information about the file used to persist data in the store.

 

get(collectionName)

Provides an accessor to the collection if the collection exists, otherwise it returns undefined.

 

getErrorMessage(errorCode)

Returns the message that is associated with a JSONStore error code.

 

init(collections, options)

Starts one or more collections.

 

initCollection(name, searchFields, options)

Returns an accessor (also known a JSONStoreInstance) to a single collection.

 

QueryPart()

Creates a query for advanced find.

 

rollbackTransaction()

Roll back a transaction.

 

startTransaction()

Initiates a transaction.

 

usePassword(pwd)

Sets the password used to generate keys to encrypt data that is stored locally on the device.

Method Detail

changePassword

{Promise} changePassword(oldPassword, newPassword, username, options)

Changes the password for the internal storage. You must have an initialized collection before calling