hpqtypes-effectful-1.0.0.0: Adaptation of the hpqtypes library for the effectful ecosystem.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Effectful.HPQTypes

Description

Access to a PostgreSQL database via MonadDB.

Synopsis

Effect

data DB :: Effect where Source #

Provide the ability to access a PostgreSQL database via MonadDB.

Instances

Instances details
type DispatchOf DB Source # 
Instance details

Defined in Effectful.HPQTypes

Handlers

runDB Source #

Arguments

:: forall es a. IOE :> es 
=> ConnectionSourceM (Eff es)

Connection source.

-> TransactionSettings

Transaction settings.

-> Eff (DB ': es) a 
-> Eff es a 

Run the DB effect with the given connection source and transaction settings.

Note: this is the effectful version of runDBT.

Re-exports

Orphan instances

DB :> es => MonadDB (Eff es) Source #

Orphan, canonical instance.

Instance details