mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
add end to client
This commit is contained in:
parent
a7aef7fa51
commit
c3f69a8be7
@ -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
|
||||
// };
|
||||
|
||||
@ -13,5 +13,4 @@ test("selects rows", function() {
|
||||
client.end();
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user