brianc/node-pg-query — pull request #2 by phated (2013-11-26 00:30:19+00:00)
Title: Return a promise if callback is not passed to query - Closes #1

Also, added example to README.

Kept the callback as the fast path (as it is probably the most common case) and don't even create a new deferred unless no callback is passed.