hasql-transaction-io-0.2.3.0: Perform IO actions during transactions for Hasql
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasql.TransactionIO.Sessions

Synopsis

Documentation

transactionIO :: IsolationLevel -> Mode -> Deferrable -> TransactionIO a -> Session a Source #

Run a prepared transaction with the given properties

unpreparedTransactionIO :: IsolationLevel -> Mode -> Deferrable -> TransactionIO a -> Session a Source #

Run an unprepared transaction with the given properties

data IsolationLevel Source #

A PostgreSQL transaction isolation level

Instances

Instances details
Show IsolationLevel Source # 
Instance details

Defined in Hasql.Private.Types

Eq IsolationLevel Source # 
Instance details

Defined in Hasql.Private.Types

data Mode Source #

A PostgreSQL transaction mode

Constructors

ReadWrite 
ReadOnly 

Instances

Instances details
Show Mode Source # 
Instance details

Defined in Hasql.Private.Types

Methods

showsPrec :: Int -> Mode -> ShowS #

show :: Mode -> String #

showList :: [Mode] -> ShowS #

Eq Mode Source # 
Instance details

Defined in Hasql.Private.Types

Methods

(==) :: Mode -> Mode -> Bool #

(/=) :: Mode -> Mode -> Bool #

data Deferrable Source #

A PostgreSQL transaction deferrability designation

Constructors

Deferrable 
NotDeferrable 

Instances

Instances details
Show Deferrable Source # 
Instance details

Defined in Hasql.Private.Types

Eq Deferrable Source # 
Instance details

Defined in Hasql.Private.Types