0.6.3 • Published 11 years ago

continuable-mongo v0.6.3

Weekly downloads
8
License
-
Repository
github
Last release
11 years ago

continuable-mongo

A thin mongo wrapper which exposes mongodb as continuables

Example

var mongo = require("continuable-mongo")

var client = mongo("mongodb://localhost:27017/my_db")

var myCollection = client.collection("my-collection")

myCollection.insert([{
    some: "key",
    value: "pair"
}])(function (err, inserted) {
    // inserted records

    myCollection.findOne({
        some: "key"
    })(function (err, result) {
        // result.value === "pair"

        console.log("result", result)
    })
})

Installation

npm install continuable-mongo

Contributors

  • Raynos

MIT Licenced

0.6.3

11 years ago

0.6.2

11 years ago

0.6.1

11 years ago

0.5.1

11 years ago

0.4.1

11 years ago

0.3.1

11 years ago

0.2.0

11 years ago

0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago