Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Hasql.TransactionIO.Sessions
Synopsis
- transactionIO :: IsolationLevel -> Mode -> Deferrable -> TransactionIO a -> Session a
- unpreparedTransactionIO :: IsolationLevel -> Mode -> Deferrable -> TransactionIO a -> Session a
- data IsolationLevel
- data Mode
- data Deferrable
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
Constructors
ReadCommitted | |
RepeatableRead | |
Serializable |
Instances
Show IsolationLevel Source # | |
Defined in Hasql.Private.Types Methods showsPrec :: Int -> IsolationLevel -> ShowS # show :: IsolationLevel -> String # showList :: [IsolationLevel] -> ShowS # | |
Eq IsolationLevel Source # | |
Defined in Hasql.Private.Types Methods (==) :: IsolationLevel -> IsolationLevel -> Bool # (/=) :: IsolationLevel -> IsolationLevel -> Bool # |
A PostgreSQL transaction mode
data Deferrable Source #
A PostgreSQL transaction deferrability designation
Constructors
Deferrable | |
NotDeferrable |
Instances
Show Deferrable Source # | |
Defined in Hasql.Private.Types Methods showsPrec :: Int -> Deferrable -> ShowS # show :: Deferrable -> String # showList :: [Deferrable] -> ShowS # | |
Eq Deferrable Source # | |
Defined in Hasql.Private.Types |