Wow - this looks really really similar to my wrapper library (pgwrap [1]). See comment below [2]<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;paulchakravarti&#x2F;pgwrap" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;paulchakravarti&#x2F;pgwrap</a>
[2] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11054944" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11054944</a>