tmp-postgres 0.1.0.5 → 0.1.0.6
raw patch · 4 files changed
+6/−5 lines, 4 filesdep ~base
Dependency ranges changed: base
Files
- README.md +1/−0
- src/Database/Postgres/Temp/Internal.hs +1/−1
- test/Database/Postgres/Temp/InternalSpec.hs +1/−1
- tmp-postgres.cabal +3/−3
README.md view
@@ -27,4 +27,5 @@ ``` $ sudo apt-get install postgresql-VERSION $ echo "export PATH=$PATH:/usr/lib/postgresql/VERSION/bin/" >> /home/ubuntu/.bashrc+$ cabal install tmp-postgres ```
src/Database/Postgres/Temp/Internal.hs view
@@ -16,7 +16,7 @@ localhost <- inet_addr "127.0.0.1" bind s (SockAddrInet aNY_PORT localhost) listen s 1- fromIntegral <$> socketPort s+ fmap fromIntegral $ socketPort s waitForDB :: FilePath -> Int -> IO () waitForDB mainDir port
test/Database/Postgres/Temp/InternalSpec.hs view
@@ -49,7 +49,7 @@ Right x -> return x Left err -> error $ show err conn <- connectPostgreSQL $ BSC.pack $ connectionString db- execute_ conn "create table users (id int)"+ _ <- execute_ conn "create table users (id int)" stop db `shouldReturn` ExitSuccess doesDirectoryExist mainFilePath `shouldReturn` False
tmp-postgres.cabal view
@@ -1,5 +1,5 @@ name: tmp-postgres-version: 0.1.0.5+version: 0.1.0.6 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.@@ -37,7 +37,7 @@ hs-source-dirs: src exposed-modules: Database.Postgres.Temp , Database.Postgres.Temp.Internal- build-depends: base >= 4.7 && < 5+ build-depends: base >= 4.6 && < 5 , temporary , process , unix@@ -60,7 +60,7 @@ , process , postgresql-simple , bytestring- ghc-options: -Wall -Wno-unused-do-bind -threaded -rtsopts -with-rtsopts=-N+ ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N default-language: Haskell2010 source-repository head