2
exports.BSONPure = require('bson').BSONPure;
3
exports.BSONNative = require('bson').BSONNative;
8
// export the driver version
9
exports.version = require('../../package').version;
11
[ 'commands/base_command'
14
, 'connection/read_preference'
15
, 'connection/connection'
18
, 'connection/repl_set/repl_set'
25
, 'gridfs/gridstore'].forEach(function (path) {
26
var module = require('./' + path);
27
for (var i in module) {
28
exports[i] = module[i];
33
exports.ReplSetServers = exports.ReplSet;
35
exports.Binary = require('bson').Binary;
36
exports.Code = require('bson').Code;
37
exports.DBRef = require('bson').DBRef;
38
exports.Double = require('bson').Double;
39
exports.Long = require('bson').Long;
40
exports.MinKey = require('bson').MinKey;
41
exports.MaxKey = require('bson').MaxKey;
42
exports.ObjectID = require('bson').ObjectID;
43
exports.Symbol = require('bson').Symbol;
44
exports.Timestamp = require('bson').Timestamp;
46
exports.BSON = require('bson').BSONPure.BSON;
48
// Set up the connect function
49
var connect = exports.Db.connect;
51
// Add the pure and native backward compatible functions
52
exports.pure = exports.native = function() {
56
// Map all values to the exports value
57
for(var name in exports) {
58
connect[name] = exports[name];
61
// Set our exports to be the connect function
62
module.exports = connect;