brianc/node-postgres — pull request #152 by cosmincatalin (2012-07-18 21:39:10+00:00)
Title: callback as complex object

The callback can now be defined as an object containing three
parameters:
- fn - a function defintion where the first parameter is the err, the
second is the resource and the third is an array containing the optional
parameters sent back.
- parameters - an array of values that are sent back to the callback
function
- context - the context scope in which the function is ran

This can be used to send parameters to the callback function, others than the err and the resource.