It would be very practical if connection_is_transacting was exported in some way. Unfortunately it is not part of any functionality defined in DBI but it could maybe included in dbGetInfo?
If you agree I can open a PR
I want to avoid using unexported functions like that:
RPostgres:::connection_is_transacting(db@ptr)