|
|
|
@ -16,8 +16,8 @@ class Persistence { |
|
|
|
|
/** |
|
|
|
|
* Create a new Persistence object for database options.db |
|
|
|
|
* @param {Datastore} options.db |
|
|
|
|
* @param {Boolean} options.nodeWebkitAppName Optional, specify the name of your NW app if you want options.filename to be relative to the directory where |
|
|
|
|
* Node Webkit stores application data such as cookies and local storage (the best place to store data in my opinion) |
|
|
|
|
* @param {Number} [options.corruptAlertThreshold] Optional, threshold after which an alert is thrown if too much data is corrupt |
|
|
|
|
* @param {string} [options.nodeWebkitAppName] Optional, specify the name of your NW app if you want options.filename to be relative to the directory where Node Webkit stores application data such as cookies and local storage (the best place to store data in my opinion) |
|
|
|
|
*/ |
|
|
|
|
constructor (options) { |
|
|
|
|
this.db = options.db |
|
|
|
|