hasql-1.6.4.4: An efficient PostgreSQL driver with a flexible mapping API
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasql.TestingUtils.TestingDsl

Synopsis

Documentation

data Session a #

A batch of actions to be executed in the context of a database connection.

Instances

Instances details
MonadIO Session 
Instance details

Defined in Hasql.Session.Core

Methods

liftIO :: IO a -> Session a #

Applicative Session 
Instance details

Defined in Hasql.Session.Core

Methods

pure :: a -> Session a #

(<*>) :: Session (a -> b) -> Session a -> Session b #

liftA2 :: (a -> b -> c) -> Session a -> Session b -> Session c #

(*>) :: Session a -> Session b -> Session b #

(<*) :: Session a -> Session b -> Session a #

Functor Session 
Instance details

Defined in Hasql.Session.Core

Methods

fmap :: (a -> b) -> Session a -> Session b #

(<$) :: a -> Session b -> Session a #

Monad Session 
Instance details

Defined in Hasql.Session.Core

Methods

(>>=) :: Session a -> (a -> Session b) -> Session b #

(>>) :: Session a -> Session b -> Session b #

return :: a -> Session a #

MonadError QueryError Session 
Instance details

Defined in Hasql.Session.Core

MonadReader Connection Session 
Instance details

Defined in Hasql.Session.Core

data QueryError #

An error during the execution of a query. Comes packed with the query template and a textual representation of the provided params.

Instances

Instances details
Exception QueryError 
Instance details

Defined in Hasql.Errors

Show QueryError 
Instance details

Defined in Hasql.Errors

Eq QueryError 
Instance details

Defined in Hasql.Errors

MonadError QueryError Session 
Instance details

Defined in Hasql.Session.Core

data CommandError #

An error of some command in the session.

Constructors

ClientError (Maybe ByteString)

An error on the client-side, with a message generated by the "libpq" library. Usually indicates problems with connection.

ResultError ResultError

Some error with a command result.

Instances

Instances details
Show CommandError 
Instance details

Defined in Hasql.Errors

Eq CommandError 
Instance details

Defined in Hasql.Errors