hasql-0.14.0.2: A very efficient PostgreSQL driver and a flexible mapping API

Safe HaskellNone
LanguageHaskell2010

Hasql.Connection

Description

This module provides a low-level effectful API dealing with the connections to the database.

Synopsis

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.