Pqi: Making "libpq" a choice, not a requirement

Today I’m releasing pqi. It makes libpq a choice rather than a hard dependency for PostgreSQL drivers: write against one interface, then swap a single dependency to pick your transport - battle-tested C, or an experimental pure-Haskell adapter. I’m already migrating “hasql” to it. Should be easy to migrate “postgresql-simple” too.

Here’s my blog post about it all: pqi: Making "libpq" a Choice, Not a Requirement – Functional programming debugs you

19 Likes

This is great work, and seems like a really sensible way to implement things. I’ve always been a fan of your work Nikita, and seeing the thought you put into making things simple for users should be an example for others. I just wish I was working on something that needed Postgres these days, I used to love working with Hasql and would love to try out pGenie.

2 Likes