BSD-3-Clause licensed by Jonathan Fischoff
Maintained by [email protected]
This version can be pinned in stack with:tmp-postgres-0.1.0.6@sha256:fb1eb26206bf7785514edbf69989dce4e4a4af6aefe02fd317ee015ccbdb1a28,2402

Module documentation for 0.1.0.6

Used by 1 package in nightly-2017-06-19(full list with versions):

Travis CI Status

tmp-postgres

tmp-postgres is a libary for greating a temporary postgres instance on a random port for testing.

result <- start []
case result of
  Left err -> print err
  Right tempDB -> do
     -- Do stuff
     stop tempDB

#Installation

macOS

$ brew install postgres
$ cabal install tmp-postgres

Ubuntu

Ubuntu’s PostgreSQL installation does not put initdb on the PATH. We need to add it manually.

$ sudo apt-get install postgresql-VERSION
$ echo "export PATH=$PATH:/usr/lib/postgresql/VERSION/bin/" >> /home/ubuntu/.bashrc
$ cabal install tmp-postgres