agentultra / postgresql-replicant

A streaming PostgreSQL logical replication client library for Haskell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add unsafe constructor for `ReplicantConnection`

agentultra opened this issue · comments

Users may want to hand off connection management to another library that only works with libpq's Connection type. If they know what they're doing they should be able to re-wrap the Connection value to get a ReplicantConnection. Having an unsafeReplicantConnection (maybe work on the name) should give users fair warning without hampering their ability to manage such crucial resources.