Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides a low-level effectful API dealing with the connections to the database.
- data Connection
- type ConnectionError = Maybe ByteString
- acquire :: ByteString -> IO (Either ConnectionError Connection)
- release :: Connection -> IO ()
Documentation
data Connection Source
A single connection to the database.
type ConnectionError = Maybe ByteString Source
Possible details of the connection acquistion error.
acquire :: ByteString -> IO (Either ConnectionError Connection) Source
Acquire a connection using the provided settings encoded according to the PostgreSQL format.
release :: Connection -> IO () Source
Release the connection.