Safe Haskell | None |
---|---|
Language | Haskell2010 |
- withConnection :: Strategy -> (Connection -> IO a) -> Connection -> IO a
Documentation
withConnection :: Strategy -> (Connection -> IO a) -> Connection -> IO a Source #
Connection wrapper that cleans up the database using the strategy specified.