mongodown
A MongoDB implementation of the LevelDOWN API
Last updated 4 months ago by dguttman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mongodown 
SYNC missed versions from official npm registry.

MongoDOWN

A drop-in replacement for LevelDOWN that runs on MongoDB. Can be used as a back-end for LevelUP rather than an actual LevelDB store.

Build Status

Installation

npm install mongodown

Example

var levelup = require('levelup')
var mongodown = require('mongodown')

// MongoDB Collection name defaults to 'mongodown'
var db = levelup(mongodown('localhost/my-database'))

// OR pass custom MongoDB collection name
db = levelup(mongodown('localhost/my-database'), { collection:'People_C' })

db.put('name', 'Yuri Irsenovich Kim')
db.put('dob', '16 February 1941')
db.put('spouse', 'Kim Young-sook')
db.put('occupation', 'Clown')

db.readStream()
  .on('data', console.log)
  .on('close', function () { console.log('Show\'s over folks!') })

Limitations

MongoDOWN does not support iterator snapshots

License

MIT

Current Tags

  • 2.0.0                                ...           latest (4 months ago)

9 Versions

  • 2.0.0                                ...           4 months ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (2)
Downloads
Today 0
This Week 1
This Month 54
Last Day 0
Last Week 35
Last Month 47
Dependencies (3)
Dev Dependencies (1)

Copyright 2014 - 2017 © taobao.org |