Refactor PSQLRowStream to make async/await easier
This patch was authored and released by @fabianfett.
Motivation
PSQLRowStream
's current implementation is interesting. It should be better tested and easier to follow for async/await support later.
Changes
- Make
PSQLRowStream
's implementation more sensible - Add unit tests for
PSQLRowStream
Result
Adding async/await support becomes easier.