I can see that functions like PQsendQuery and PQisBusy are used. But to me it seems that there are some many abstractions that is actually much harder to use or understand than he C-API. The async capability is the main advantage over pqxx, but without any documentation it is not usable. The wait
on the connection is private, what has to be called to make progress?