1.1.1 • Published 8 years ago

mpdb v1.1.1

Weekly downloads
1
License
MPL-2.0
Repository
github
Last release
8 years ago

Mpdb

A persistent in memory database. A database that is kept in memory and immediately persistent.

Install

npm install mpdb --save

API

Mpdb

A initializes the files and directories. Collections are loaded annd kept in memory on demand. The data is stored in a json format.

  • options: Object - name: String The name of the database. Default is 'default'. - sync: String Initalize sync or async. Default is false. - path: String The path to the persistent data. Default is ~/{username}/.mpdb/.

Mpdb.findAll

  • Returns Promise

Mpdb.findOne

  • Returns Promise

Mpdb.removeAll

  • Returns Promise

Mpdb.removeOne

  • Returns Promise

Mpdb.updateAll

  • Returns Promise

Mpdb.updateOne

  • Returns Promise

Mpdb.insertAll

  • Returns Promise

Mpdb.insertOne

  • Returns Promise

Mpdb.collection

  • Returns Promise

Mpdb.collectionLoad

  • Returns Promise

Mpdb.collectionSave

  • Returns Promise

Mpdb.collectionPath

1.1.1

8 years ago

1.1.0

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago