-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Clean database tables automatically around hspec tests -- -- A simple database cleaner library for testing that provides different -- cleanup strategies. @package dbcleaner @version 0.1.2 module Database.DBCleaner.Types data Strategy -- | Wraps all the queries inside a transaction and rollback everything -- once the execution is done. Transaction :: Strategy -- | Truncate all the tables after the execution of the queries. Truncation :: Strategy module Database.DBCleaner.PostgreSQLSimple -- | Connection wrapper that cleans up the database using the strategy -- specified. withConnection :: Strategy -> (Connection -> IO a) -> Connection -> IO a