marcello3d / node-mongolian

[project inactive] Mongolian DeadBeef is an awesome Mongo DB driver for node.js
https://groups.google.com/group/node-mongolian
zlib License
350 stars 50 forks source link

Close mongo / mongolian connection right after opening it? #107

Open reggi opened 11 years ago

reggi commented 11 years ago

Can't close connection right after opening it tried both db.server.close() and server.close()

var Mongolian = require("mongolian");
var server = new Mongolian;
var db = server.db("database");
var shops = db.collection("collection");
db.server.close();
server.close();

stackoverflow