Created
March 18, 2014 18:56
-
-
Save qcom/9626932 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pg = require(‘pg’), connString = ‘***’; | |
function DB(cb) { | |
var that = this; | |
pg.connect(connString, function(err, client, done) { | |
if (err) return cb(err); | |
that.client = client; | |
cb(null, that); | |
}); | |
} | |
DB.protoytpe.getUser = function(email, cb) { }; | |
DB.prototype.getCompany = function(id, cb) { }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment