lib/db.js
function connect(uri, cb) {
  pg.connect(uri, function(err, client, done) {
    // Backwards compatibility with pg
    if(typeof done === 'undefined') { done = noop; }
    if(err) {
      cb(err, null, done);
    } else {
      cb(null, client, done);
    }
  });
}
function connect(uri, cb) {
  pg.connect(uri, function(err, client, done) {
    // Backwards compatibility with pg
    if(typeof done === 'undefined') { done = noop; }
    if(err) {
      cb(err, null, done);
    } else {
      cb(null, client, done);
    }
  });
}
function connect ( uri , cb ) { pg . connect ( uri , function ( err , client , done ) { // Backwards compatibility with pg if ( typeof done === 'undefined' ) { done = noop ; } if ( err ) { cb ( err , null , done ) ; } else { cb ( null , client , done ) ; } } ) ; }
Connects to database at `uri`

@param {String} uri
@param {Function} cb
Connects to database at uri