Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- transaction :: IsolationLevel -> Mode -> Transaction a -> Session a
- unpreparedTransaction :: IsolationLevel -> Mode -> Transaction a -> Session a
- data Mode
- data IsolationLevel
Documentation
transaction :: IsolationLevel -> Mode -> Transaction a -> Session a Source #
Execute the transaction using the provided isolation level and mode.
unpreparedTransaction :: IsolationLevel -> Mode -> Transaction a -> Session a Source #
Execute the transaction using the provided isolation level and mode, and specifying that the generated BEGIN, COMMIT and ABORT statements should not be prepared.
Helps with transaction pooling due to its incompatibility with prepared statements.
Transaction settings
data IsolationLevel Source #
For reference see the Postgres' documentation.