# Code coverage report for node-mongoskin/lib/mongo_client.js

## Statements: 100% (11 / 11) Branches: 100% (0 / 0) Functions: 100% (1 / 1) Lines: 100% (11 / 11) Ignored: none

All files » node-mongoskin/lib/ » mongo_client.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    161
    1
    1

    1

    1
    1

    1
    1
    1
    1
    1

     var mongodb = require('mongodb');
    var MongoClient = mongodb.MongoClient;
    var utils = require('./utils');

    var SkinDb = require('./db').SkinDb;

    var SkinMongoClient = utils.makeSkinClass(MongoClient, true);
    exports.SkinMongoClient = SkinMongoClient;

    SkinMongoClient.connect = function() {
      var args = [].slice.call(arguments);
      var db = new SkinDb();
      db._connect_args = args;
      return db;
    }