-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
23 lines (21 loc) · 885 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
* @typedef {Object} MongoDocument
*/
var MongoDb = require('mongodb'),
Connection = require(__dirname + '/lib/connection.js'),
SafeCollection = require(__dirname + '/lib/safe_collection.js'),
CollectionWrapper = require(__dirname + '/lib/collection_wrapper.js'),
CursorWrapper = require(__dirname + '/lib/cursor_wrapper.js'),
DebugCtx = require(__dirname + '/lib/debug_ctx.js'),
ConnectionConfigProvider = require(__dirname + '/lib/connection_config_provider.js'),
SchemaStorage = require(__dirname + '/lib/schema_storage.js');
module.exports = {
Connection: Connection,
SafeCollection: SafeCollection,
CollectionWrapper: CollectionWrapper,
CursorWrapper: CursorWrapper,
ObjectID: MongoDb.ObjectID.bind(MongoDb),
DebugCtx: DebugCtx,
ConnectionConfigProvider: ConnectionConfigProvider,
SchemaStorage: SchemaStorage
};