hasql-transaction-io-0.2.2.0: Perform IO actions during transactions for Hasql
Safe HaskellNone
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
Eq IsolationLevel Source # 
Instance details

Defined in Hasql.Private.Types

Show IsolationLevel Source # 
Instance details

Defined in Hasql.Private.Types

data Mode Source #

A PostgreSQL transaction mode

Constructors

ReadWrite 
ReadOnly 

Instances

Instances details
Eq Mode Source # 
Instance details

Defined in Hasql.Private.Types

Methods

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

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

Show Mode Source # 
Instance details

Defined in Hasql.Private.Types

Methods

showsPrec :: Int -> Mode -> ShowS #

show :: Mode -> String #

showList :: [Mode] -> ShowS #

data Deferrable Source #

A PostgreSQL transaction deferrability designation

Constructors

Deferrable 
NotDeferrable 

Instances

Instances details
Eq Deferrable Source # 
Instance details

Defined in Hasql.Private.Types

Show Deferrable Source # 
Instance details

Defined in Hasql.Private.Types