Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data TransactionIO a
- statement :: params -> Statement params result -> TransactionIO result
- sql :: ByteString -> TransactionIO ()
Documentation
data TransactionIO a Source #
A mixture of Hasql statements and arbitrary IO that is all performed during a single transaction
Instances
statement :: params -> Statement params result -> TransactionIO result Source #
Like statement
but in a TransactionIO
. It should not attempt any statements that cannot be safely run inside a transaction.
sql :: ByteString -> TransactionIO () Source #
Like sql
but in a TransactionIO
. It should not attempt any statements that cannot be safely run inside a transaction.