Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data Connection Source #
data ConnectionSettings Source #
BackendError !ByteString !ByteString | An erroneous result received from the DB. The components are:
|
DecodingError !Text | Can happen as a result of an incorrect decoder being applied. |
TransportError !Text | Problems with the connection. |
ProtocolError !Text | An unexpected or broken data packet received from the server. Can happen as a result of the server sending an unsupported message or something interfering in the communication channel. This error type is highly unlikely. |
open :: ConnectionSettings -> ByteString -> ByteString -> Maybe ByteString -> (Notification -> IO ()) -> IO (Either Error Connection) Source #
close :: Connection -> IO () Source #