Copyright | (c) 2014 Andreas Meingast <ameingast@gmail.com> |
---|---|
License | BSD-style |
Maintainer | andre@andrevdm.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A collection of utilites for database migrations.
Synopsis
- existsTable :: Connection -> String -> IO Bool
- withTransactionRolledBack :: Connection -> IO a -> IO a
Documentation
existsTable :: Connection -> String -> IO Bool Source #
Checks if the table with the given name exists in the database.
withTransactionRolledBack :: Connection -> IO a -> IO a Source #
Executes the given IO monad inside a transaction and performs a roll-back afterwards (even if exceptions occur).