hasql-transaction-io-0.2.8.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
Show IsolationLevel Source # 
Instance details

Defined in Hasql.Private.Types

Methods

showsPrec :: Int -> IsolationLevel -> ShowS

show :: IsolationLevel -> String

showList :: [IsolationLevel] -> ShowS

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

Methods

showsPrec :: Int -> Deferrable -> ShowS

show :: Deferrable -> String

showList :: [Deferrable] -> ShowS

Eq Deferrable Source # 
Instance details

Defined in Hasql.Private.Types

Methods

(==) :: Deferrable -> Deferrable -> Bool

(/=) :: Deferrable -> Deferrable -> Bool