api documentation for nedb (v1.8.0)

File-based embedded data store for node.js

table of contents

  1. module nedb
    1. function nedb (options)
    2. function nedb.cursor (db, query, execFn)
    3. function nedb.datastore (options)
    4. function nedb.executor ()
    5. function nedb.persistence (options)
    6. function nedb.super_ ()
    7. object nedb.commonUtilities
    8. object nedb.cursor.prototype
    9. object nedb.customUtils
    10. object nedb.datastore.prototype
    11. object nedb.executor.prototype
    12. object nedb.model
    13. object nedb.persistence.prototype
    14. object nedb.storage
  2. module nedb.commonUtilities
    1. function nedb.commonUtilities.findDocs (d, n, profiler, cb)
    2. function nedb.commonUtilities.findDocsWithIn (d, n, profiler, cb)
    3. function nedb.commonUtilities.findOneDocs (d, n, profiler, cb)
    4. function nedb.commonUtilities.getConfiguration (benchDb)
    5. function nedb.commonUtilities.getRandomArray (n)
    6. function nedb.commonUtilities.insertDocs (d, n, profiler, cb)
    7. function nedb.commonUtilities.loadDatabase (d, n, profiler, cb)
    8. function nedb.commonUtilities.prepareDb (filename, cb)
    9. function nedb.commonUtilities.removeDocs (options, d, n, profiler, cb)
    10. function nedb.commonUtilities.updateDocs (options, d, n, profiler, cb)
  3. module nedb.cursor
    1. function nedb.cursor (db, query, execFn)
  4. module nedb.cursor.prototype
    1. function nedb.cursor.prototype._exec (_callback)
    2. function nedb.cursor.prototype.exec ()
    3. function nedb.cursor.prototype.limit (limit)
    4. function nedb.cursor.prototype.project (candidates)
    5. function nedb.cursor.prototype.projection (projection)
    6. function nedb.cursor.prototype.skip (skip)
    7. function nedb.cursor.prototype.sort (sortQuery)
  5. module nedb.customUtils
    1. function nedb.customUtils.uid (len)
  6. module nedb.datastore
    1. function nedb.datastore (options)
    2. function nedb.datastore.super_ ()
  7. module nedb.datastore.prototype
    1. function nedb.datastore.prototype._insert (newDoc, cb)
    2. function nedb.datastore.prototype._insertInCache (preparedDoc)
    3. function nedb.datastore.prototype._insertMultipleDocsInCache (preparedDocs)
    4. function nedb.datastore.prototype._remove (query, options, cb)
    5. function nedb.datastore.prototype._update (query, updateQuery, options, cb)
    6. function nedb.datastore.prototype.addToIndexes (doc)
    7. function nedb.datastore.prototype.count (query, callback)
    8. function nedb.datastore.prototype.createNewId ()
    9. function nedb.datastore.prototype.ensureIndex (options, cb)
    10. function nedb.datastore.prototype.find (query, projection, callback)
    11. function nedb.datastore.prototype.findOne (query, projection, callback)
    12. function nedb.datastore.prototype.getAllData ()
    13. function nedb.datastore.prototype.getCandidates (query, dontExpireStaleDocs, callback)
    14. function nedb.datastore.prototype.insert ()
    15. function nedb.datastore.prototype.loadDatabase ()
    16. function nedb.datastore.prototype.prepareDocumentForInsertion (newDoc)
    17. function nedb.datastore.prototype.remove ()
    18. function nedb.datastore.prototype.removeFromIndexes (doc)
    19. function nedb.datastore.prototype.removeIndex (fieldName, cb)
    20. function nedb.datastore.prototype.resetIndexes (newData)
    21. function nedb.datastore.prototype.update ()
    22. function nedb.datastore.prototype.updateIndexes (oldDoc, newDoc)
  8. module nedb.executor
    1. function nedb.executor ()
  9. module nedb.executor.prototype
    1. function nedb.executor.prototype.processBuffer ()
    2. function nedb.executor.prototype.push (task, forceQueuing)
  10. module nedb.model
    1. function nedb.model.areThingsEqual (a, b)
    2. function nedb.model.checkObject (obj)
    3. function nedb.model.compareThings (a, b, _compareStrings)
    4. function nedb.model.deepCopy (obj, strictKeys)
    5. function nedb.model.deserialize (rawData)
    6. function nedb.model.getDotValue (obj, field)
    7. function nedb.model.isPrimitiveType (obj)
    8. function nedb.model.match (obj, query)
    9. function nedb.model.modify (obj, updateQuery)
    10. function nedb.model.serialize (obj)
  11. module nedb.persistence
    1. function nedb.persistence (options)
    2. function nedb.persistence.ensureDirectoryExists (dir, cb)
    3. function nedb.persistence.getNWAppFilename (appName, relativeFilename)
  12. module nedb.persistence.prototype
    1. function nedb.persistence.prototype.compactDatafile ()
    2. function nedb.persistence.prototype.loadDatabase (cb)
    3. function nedb.persistence.prototype.persistCachedDatabase (cb)
    4. function nedb.persistence.prototype.persistNewState (newDocs, cb)
    5. function nedb.persistence.prototype.setAutocompactionInterval (interval)
    6. function nedb.persistence.prototype.stopAutocompaction ()
    7. function nedb.persistence.prototype.treatRawData (rawData)
  13. module nedb.storage
    1. function nedb.storage.appendFile (path, data, options, callback_)
    2. function nedb.storage.crashSafeWriteFile (filename, data, cb)
    3. function nedb.storage.ensureDatafileIntegrity (filename, callback)
    4. function nedb.storage.ensureFileDoesntExist (file, callback)
    5. function nedb.storage.exists (path, callback)
    6. function nedb.storage.flushToStorage (options, callback)
    7. function nedb.storage.mkdirp (p, opts, f, made)
    8. function nedb.storage.readFile (path, options, callback_)
    9. function nedb.storage.rename (oldPath, newPath, callback)
    10. function nedb.storage.unlink (path, callback)
    11. function nedb.storage.writeFile (path, data, options, callback_)

module nedb

function nedb (options)

function nedb.cursor (db, query, execFn)

function nedb.datastore (options)

function nedb.executor ()

function nedb.persistence (options)

function nedb.super_ ()

module nedb.commonUtilities

function nedb.commonUtilities.findDocs (d, n, profiler, cb)

function nedb.commonUtilities.findDocsWithIn (d, n, profiler, cb)

function nedb.commonUtilities.findOneDocs (d, n, profiler, cb)

function nedb.commonUtilities.getConfiguration (benchDb)

function nedb.commonUtilities.getRandomArray (n)

function nedb.commonUtilities.insertDocs (d, n, profiler, cb)

function nedb.commonUtilities.loadDatabase (d, n, profiler, cb)

function nedb.commonUtilities.prepareDb (filename, cb)

function nedb.commonUtilities.removeDocs (options, d, n, profiler, cb)

function nedb.commonUtilities.updateDocs (options, d, n, profiler, cb)

module nedb.cursor

function nedb.cursor (db, query, execFn)

module nedb.cursor.prototype

function nedb.cursor.prototype._exec (_callback)

function nedb.cursor.prototype.exec ()

function nedb.cursor.prototype.limit (limit)

function nedb.cursor.prototype.project (candidates)

function nedb.cursor.prototype.projection (projection)

function nedb.cursor.prototype.skip (skip)

function nedb.cursor.prototype.sort (sortQuery)

module nedb.customUtils

function nedb.customUtils.uid (len)

module nedb.datastore

function nedb.datastore (options)

function nedb.datastore.super_ ()

module nedb.datastore.prototype

function nedb.datastore.prototype._insert (newDoc, cb)

function nedb.datastore.prototype._insertInCache (preparedDoc)

function nedb.datastore.prototype._insertMultipleDocsInCache (preparedDocs)

function nedb.datastore.prototype._remove (query, options, cb)

function nedb.datastore.prototype._update (query, updateQuery, options, cb)

function nedb.datastore.prototype.addToIndexes (doc)

function nedb.datastore.prototype.count (query, callback)

function nedb.datastore.prototype.createNewId ()

function nedb.datastore.prototype.ensureIndex (options, cb)

function nedb.datastore.prototype.find (query, projection, callback)

function nedb.datastore.prototype.findOne (query, projection, callback)

function nedb.datastore.prototype.getAllData ()

function nedb.datastore.prototype.getCandidates (query, dontExpireStaleDocs, callback)

function nedb.datastore.prototype.insert ()

function nedb.datastore.prototype.loadDatabase ()

function nedb.datastore.prototype.prepareDocumentForInsertion (newDoc)

function nedb.datastore.prototype.remove ()

function nedb.datastore.prototype.removeFromIndexes (doc)

function nedb.datastore.prototype.removeIndex (fieldName, cb)

function nedb.datastore.prototype.resetIndexes (newData)

function nedb.datastore.prototype.update ()

function nedb.datastore.prototype.updateIndexes (oldDoc, newDoc)

module nedb.executor

function nedb.executor ()

module nedb.executor.prototype

function nedb.executor.prototype.processBuffer ()

function nedb.executor.prototype.push (task, forceQueuing)

module nedb.model

function nedb.model.areThingsEqual (a, b)

function nedb.model.checkObject (obj)

function nedb.model.compareThings (a, b, _compareStrings)

function nedb.model.deepCopy (obj, strictKeys)

function nedb.model.deserialize (rawData)

function nedb.model.getDotValue (obj, field)

function nedb.model.isPrimitiveType (obj)

function nedb.model.match (obj, query)

function nedb.model.modify (obj, updateQuery)

function nedb.model.serialize (obj)

module nedb.persistence

function nedb.persistence (options)

function nedb.persistence.ensureDirectoryExists (dir, cb)

function nedb.persistence.getNWAppFilename (appName, relativeFilename)

module nedb.persistence.prototype

function nedb.persistence.prototype.compactDatafile ()

function nedb.persistence.prototype.loadDatabase (cb)

function nedb.persistence.prototype.persistCachedDatabase (cb)

function nedb.persistence.prototype.persistNewState (newDocs, cb)

function nedb.persistence.prototype.setAutocompactionInterval (interval)

function nedb.persistence.prototype.stopAutocompaction ()

function nedb.persistence.prototype.treatRawData (rawData)

module nedb.storage

function nedb.storage.appendFile (path, data, options, callback_)

function nedb.storage.crashSafeWriteFile (filename, data, cb)

function nedb.storage.ensureDatafileIntegrity (filename, callback)

function nedb.storage.ensureFileDoesntExist (file, callback)

function nedb.storage.exists (path, callback)

function nedb.storage.flushToStorage (options, callback)

function nedb.storage.mkdirp (p, opts, f, made)

function nedb.storage.readFile (path, options, callback_)

function nedb.storage.rename (oldPath, newPath, callback)

function nedb.storage.unlink (path, callback)

function nedb.storage.writeFile (path, data, options, callback_)

[ this document was created with utility2 ]