Browse Source

Exposing BSON constructors.

saintedlama/travis-non-legacy
Bjarke Walling 13 years ago
parent
commit
6e8ffb38dc
  1. 11
      index.js

11
index.js

@ -197,6 +197,15 @@ exports.connect = function(url, collections) {
function(next) {
var client = new mongo.Db(url.db, new mongo.Server(url.host, url.port), {native_parser:true});
that.bson = {
Long: client.bson_serializer.Long,
ObjectID: client.bson_serializer.ObjectID,
Timestamp: client.bson_serializer.Timestamp,
DBRef: client.bson_serializer.DBRef,
Binary: client.bson_serializer.Binary,
Code: client.bson_serializer.Code
};
client.open(next);
},
function(db, next) {
@ -259,4 +268,4 @@ exports.connect = function(url, collections) {
}
return that;
};
};

Loading…
Cancel
Save