postgresql-simple-migration-0.1.3.0: PostgreSQL Schema Migrations

Copyright(c) 2014 Andreas Meingast <ameingast@gmail.com>
LicenseBSD-style
Maintainerameingast@gmail.com
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.Simple.Util

Description

A collection of utilites for database migrations.

Synopsis

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).