module Hasql.TransactionIO.Sessions (
transactionIO,
unpreparedTransactionIO,
IsolationLevel(..),
Mode(..),
Deferrable(..),
) where
import Hasql.Session (Session)
import Hasql.Private.TransactionIO
import Hasql.Private.Types
transactionIO :: IsolationLevel -> Mode -> Deferrable -> TransactionIO a -> Session a
transactionIO :: forall a.
IsolationLevel
-> Mode -> Deferrable -> TransactionIO a -> Session a
transactionIO IsolationLevel
isolation Mode
mode Deferrable
deferrable TransactionIO a
txio = TransactionIO a
-> IsolationLevel -> Mode -> Deferrable -> Bool -> Session a
forall a.
TransactionIO a
-> IsolationLevel -> Mode -> Deferrable -> Bool -> Session a
run TransactionIO a
txio IsolationLevel
isolation Mode
mode Deferrable
deferrable Bool
True
unpreparedTransactionIO :: IsolationLevel -> Mode -> Deferrable -> TransactionIO a -> Session a
unpreparedTransactionIO :: forall a.
IsolationLevel
-> Mode -> Deferrable -> TransactionIO a -> Session a
unpreparedTransactionIO IsolationLevel
isolation Mode
mode Deferrable
deferrable TransactionIO a
txio = TransactionIO a
-> IsolationLevel -> Mode -> Deferrable -> Bool -> Session a
forall a.
TransactionIO a
-> IsolationLevel -> Mode -> Deferrable -> Bool -> Session a
run TransactionIO a
txio IsolationLevel
isolation Mode
mode Deferrable
deferrable Bool
False