Skip to content

johnhenry/mongo-down

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Mongo-Down

A replacement for LevelDOWN that works using a MongoDB Database. Can be used as a back-end for LevelUP rather than an actual LevelDB store.

##See Also

##Sample Usage

var mongoURL = "<mongo db url>";
var collectionName = "<name of collection>||'collection'";
var levelup = require('levelup');
var db = levelup("what/ev/er",
    {
        db: require('mongo-down')(mongoURL, collectionName)
    }
)
db.put('foo', 'bar', function (err) {
  if (err) throw err
  db.get('foo', function (err, value) {
    if (err) throw err
    console.log('Got foo =', value)
  })
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published