postgresql-migration-0.2.1.1: PostgreSQL Schema Migrations
Copyright(c) 2014 Andreas Meingast <ameingast@gmail.com>
LicenseBSD-style
Maintainerandre@andrevdm.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).