add end to client

This commit is contained in:
brianc 2010-10-25 21:24:17 -05:00
parent a7aef7fa51
commit c3f69a8be7
2 changed files with 7 additions and 1 deletions

View File

@ -78,6 +78,10 @@ p.query = function(config) {
return query;
};
p.end = function() {
this.connection.end();
};
Client.md5 = function(string) {
return crypto.createHash('md5').update(string).digest('hex');
};
@ -107,6 +111,9 @@ p.submit = function(connection) {
self.emit('end');
});
};
// var intParser = {
// fromDbValue: parseInt
// };

View File

@ -13,5 +13,4 @@ test("selects rows", function() {
client.end();
});
});