Portability | portable |
---|---|
Stability | experimental |
Maintainer | ex8k.hibino@gmail.com |
Safe Haskell | None |
Bracketed HaskellDB session with MonadCatchIO
.
- hdbcSession :: (MonadCatchIO m, IConnection conn) => SqlGenerator -> IO conn -> (conn -> Database -> m a) -> m a
Documentation
:: (MonadCatchIO m, IConnection conn) | |
=> SqlGenerator | |
-> IO conn | Connect action |
-> (conn -> Database -> m a) | Transaction body |
-> m a |
Run an action on a HDBC IConnection and close the connection.
MonadCatchIO
version.