|
|
|
@ -22,6 +22,9 @@ var customUtils = require('./customUtils') |
|
|
|
|
* @param {Function} options.afterSerialization/options.beforeDeserialization Optional, serialization hooks |
|
|
|
|
* @param {Number} options.corruptAlertThreshold Optional, threshold after which an alert is thrown if too much data is corrupt |
|
|
|
|
* @param {Function} options.compareStrings Optional, string comparison function that overrides default for sorting |
|
|
|
|
* |
|
|
|
|
* Event Emitter - Events |
|
|
|
|
* * compaction.done - Fired whenever a compaction operation was finished |
|
|
|
|
*/ |
|
|
|
|
function Datastore (options) { |
|
|
|
|
var filename; |
|
|
|
@ -74,6 +77,8 @@ function Datastore (options) { |
|
|
|
|
}); } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
util.inherits(Datastore, require('events')); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Load the database from the datafile, and trigger the execution of buffered commands if any |
|
|
|
|