This needs issue #65 to be fixed first.
For this to happen we need a client pool that allows clients to be marked as non-reclaimable (node-postgres can do this), and "lock" the client for the duration of the transaction block. This would probably require a way to pass a client instance (which was generated at init-transaction time) to the query functions, and a callback to mark the transaction as done.
This needs issue #65 to be fixed first.
For this to happen we need a client pool that allows clients to be marked as non-reclaimable (node-postgres can do this), and "lock" the client for the duration of the transaction block. This would probably require a way to pass a client instance (which was generated at init-transaction time) to the query functions, and a callback to mark the transaction as done.