Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
Types
data ReplicantConnection Source #
Instances
Eq ReplicantConnection Source # | |
Defined in Database.PostgreSQL.Replicant.Connection (==) :: ReplicantConnection -> ReplicantConnection -> Bool # (/=) :: ReplicantConnection -> ReplicantConnection -> Bool # |
Constructor
connect :: PgSettings -> IO ReplicantConnection Source #
Connect to the PostgreSQL server in replication mode
unsafeCreateConnection :: Connection -> ReplicantConnection Source #
Unsafe function for wrapping regular libpq Connection. This is unsafe because the Connection needs to be set up to send replication commands. Improperly constructed connections can lead to runtime exceptions.