api documentation (nedb-lite v2016.9.1)

table of contents

module Nedb

function Nedb (options, onError)

function Nedb.Executor ()

function Nedb.Index (options)

function Nedb.Persistence (options)

function Nedb.assert (passed, message)

function Nedb.asyncEachSeries (arr, iterator, callback)

function Nedb.asyncQueue (worker)

function Nedb.avltree (options)

function Nedb.bst (options)

function Nedb.crudOptionsSetDefault (options, defaults)

function Nedb.cursor (db, query, execFn)

function Nedb.dbExport ()

function Nedb.dbImport (tableList, onError)

function Nedb.dbReset (onError)

function Nedb.dbTableCreate (options, onError)

function Nedb.dbTableDrop (options, onError)

function Nedb.executor ()

function Nedb.fsDir ()

function Nedb.indexes (options)

function Nedb.inherits (ctor, superCtor)

function Nedb.isDate (obj)

function Nedb.isRegExp (obj)

function Nedb.jsonStringifyOrdered (element, replacer, space)

function Nedb.listUnique (list)

function Nedb.local (options, onError)

function Nedb.middleware (request, response, nextMiddleware)

function Nedb.middlewareError (error, request, response)

function Nedb.nop ()

function Nedb.persistence (options)

function Nedb.sortCompare (aa, bb)

function Nedb.storeAction (options, onError)

function Nedb.storeClear (onError)

function Nedb.storeGetItem (key, onError)

function Nedb.storeInit ()

function Nedb.storeKeys (onError)

function Nedb.storeLength (onError)

function Nedb.storeRemoveItem (key, onError)

function Nedb.storeSetItem (key, value, onError)

function Nedb.testCase_assertXxx_default (options, onError)

function Nedb.testCase_build_app (options, onError)

function Nedb.testCase_build_doc (options, onError)

function Nedb.testCase_dbExport_default (options, onError)

function Nedb.testCase_dbImport_default (options, onError)

function Nedb.testCase_dbTableCreate_default (options, onError)

function Nedb.testCase_dbTableCreate_error (options, onError)

function Nedb.testCase_dbTableDrop_default (options, onError)

function Nedb.testCase_dbTableFindOneById_default (options, onError)

function Nedb.testCase_dbTableRemoveOneById_default (options, onError)

function Nedb.testCase_jsonStringifyOrdered_default (options, onError)

function Nedb.testCase_webpage_default (options, onError)

module Nedb.customUtils

function Nedb.customUtils.uid (len)

module Nedb.model

function Nedb.model.areThingsEqual (a, b)

function Nedb.model.checkObject (obj)

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)

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.treatRawData (rawData)

module Nedb.prototype

function Nedb.prototype.addToIndexes (doc)

function Nedb.prototype.count (query, callback)

function Nedb.prototype.createNewId ()

function Nedb.prototype.ensureIndex (options, cb)

function Nedb.prototype.export ()

function Nedb.prototype.find (query, projection, callback)

function Nedb.prototype.findOne (query, projection, callback)

function Nedb.prototype.getAllData ()

function Nedb.prototype.getCandidates (query, dontExpireStaleDocs, callback)

function Nedb.prototype.insert ()

function Nedb.prototype.load (options, onError)

function Nedb.prototype.loadDatabase ()

function Nedb.prototype.prepareDocumentForInsertion (newDoc)

function Nedb.prototype.remove ()

function Nedb.prototype.removeFromIndexes (doc)

function Nedb.prototype.removeIndex (fieldName, cb)

function Nedb.prototype.resetIndexes (newData)

function Nedb.prototype.update ()

function Nedb.prototype.updateIndexes (oldDoc, newDoc)