packages feed

tmp-postgres 0.1.0.4 → 0.1.0.5

raw patch · 3 files changed

+33/−2 lines, 3 files

Files

README.md view
@@ -11,3 +11,20 @@      -- 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+```
src/Database/Postgres/Temp.hs view
@@ -16,6 +16,14 @@ The start methods use a config based on the one used by [pg_tmp](http://ephemeralpg.org/), but can be overriden by in different values to the first argument of the start functions. +WARNING!!+Ubuntu's PostgreSQL installation does not put @initdb@ on the @PATH@. We need to add it manually.+The necessary binaries are in the @\/usr\/lib\/postgresql\/VERSION\/bin\/@ directory, and should be added to the @PATH@++ > echo "export PATH=$PATH:/usr/lib/postgresql/VERSION/bin/" >> /home/ubuntu/.bashrc+++ -} {-# LANGUAGE RecordWildCards, LambdaCase, ScopedTypeVariables #-} module Database.Postgres.Temp
tmp-postgres.cabal view
@@ -1,5 +1,5 @@ name:                tmp-postgres-version:             0.1.0.4+version:             0.1.0.5 synopsis: Start and stop a temporary postgres for testing description:  This module provides functions greating a temporary postgres instance on a random port for testing.@@ -14,8 +14,14 @@  The are few different methods for starting @postgres@ which provide different  methods of dealing with @stdout@ and @stderr@.  .- The start methods use a config based on the one used by [pg_tmp](http://ephemeralpg.org/), but can be overriden+ The start methods use a config based on the one used by pg_tmp (http://ephemeralpg.org/), but can be overriden  by in different values to the first argument of the start functions.+ .+ WARNING!!+ Ubuntu's PostgreSQL installation does not put @initdb@ on the @PATH@. We need to add it manually. The necessary binaries are in the @\/usr\/lib\/postgresql\/VERSION\/bin\/@ directory, and should be added to the @PATH@+ .+ > echo "export PATH=$PATH:/usr/lib/postgresql/VERSION/bin/" >> /home/ubuntu/.bashrc+ . homepage:            https://github.com/jfischoff/tmp-postgres#readme license:             BSD3 license-file:        LICENSE